Adding pages and content
Creating Your web site
Finishing Your web site
Set your Learning Objectives to red.
Open up your PowerPoint from last lesson it should be called 'Web Design'.
Save your PowerPoint as 'Web Design'
Create a folder for you web pages.
We are going to look at how we can use the block coding tool Edublocks to help us on our HTML journey.
Use your school email and password to create an account with the microsoft button
When you have logged in you can use the link below to create your initial html page
See if you can work out how to use these two tags and what they might be used for.
One of the best ways we can layout our page is to use dividers. Dividers or divs enable us to split up and style different areas of our page.
Let's create the outline area for our page.
To do that we are going to use a divider <div> tag and style it with a border so we can see it.
Your code should look like code below:
Your web page should look like this
See what happens to your red box if you add some more text to your blue paragraph tag
Now let's change the size of the divider so it will be the full size of our page. To do that we need to add the styles Height and Width into our styling for our divider.
However this makes the styling in the blocks a little cumbersome and more difficult to reuse. So instead of doing the styling inside of our divider, we are going to style our divider in the Head of our web page.
To do that we have to give our style a name. Then we can use that name in our divider and it will do all the styling we use here inside our divider.
Change your code so it now looks like this:
We can have as many styles as we want in a class.
The border has 3 properties the first is its width in pixels(px), in our case that is 1px the second is it's style which we have chosen as solid and the third is its colour we have chosen red
We can do that to our page by adding a style called margin
However what we want to do can't be done with the margin block in edublocks, so we need to use the plain text block and type our code into it
If we set the properties of the margin to 0 auto then it will automatically centre our divider(div) on the page
Add this to the end of your divider style: margin: 0 auto;
see example below
Click on the button below to see what your code would look in a web browser. Click here
Screenshot your centred web page layout and your HTML code into your PowerPoint
We now need ready to turn our code into a web page you can view in your web browser.
Firstly we need to make sure we have a folder to store our web page
In order to create our web page we need to use a text editor
Copy your HTML code from Edublocks into your notepad++ file.
Save your file
Now either go back to your file explorer page double click on your index.html file and it will open up in a web browser for you to see
Or do the following in notepad++
Copy your code to your notepad file and save it and then refresh your browser and your page should now look something like this.
Screenshot your code into your PowerPoint
Lets look at the learning outcomes and decide which one best describes our current level of understanding :
Tick the one you feel is closest to your level