Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

Navigation

What am I Learning today?

I am learning how to use styling to create a navigation bar
I am learning how to add an image to my page

Knowledge Organiser

×

Lesson

Task 0 - Getting Organised - PowerPoint Click to see more

Getting organised

  1. Set your Learning Objectives to red.

  2. Open up your PowerPoint from last lesson it should be called 'Web Design'.

  3. To download the PowerPoint by clicking on the image below

    Save your PowerPoint as 'Web Design'



Task 1 - Get inline Click to see more

  • We now want to divide our main page into sections so that we can put our text and images together and make them look good
  • control
  • To do that we need to use another style called display: inside of our divider tag style section.
  • The value we need to give to our display style is :inline-block this stops the next tag starting on a new line when we add it.
  • control
  • See my example by clicking on the button below I have made the background of my header box white.
  • Click here

    <div style ="display:inline-block">

    Task 2

    1. Split your main page into three sections and make the French flag

    2. See my example by clicking on the button below (my colours are the wrong way around).

      Click here

      We can use a % for our width rather than pixels that way whatever the size of our outside border it will always chage to fit it.



    Extension- Divide your main section

    • Change your main page so that it is spit into the number of sections you want. Add some text and images into the sections.


    Task 2 - Navigation Click to see more

    In order to complete our web page template we need to have some way of navigating between pages

    Task 1

    1. Create a navigation bar using the code below.

    2. control


      Extension- My Colours

      Change the colours of the buttons to your own colours.


    Task 3 - Putting it all together Click to see more

  • Now that we have created a navigation bar we need to add it to our main page

  • This is where things can get a little tricky as we have created our navigation bar on a seperate page. The reason for this is that things get a little difficult to follow on Edublocks when we have so much code on a single page. So we are going to start using edublocks to create page parts like we did with the navigation bar and then copy them into our main page using the HTML code.

  • Task

    1. Add the navigation bar code to your main page code using the example below to help you.

    2. control
    3. So that it looks like this:

    4. control control
    5. So when you run it your page looks something like this:

    6. control

      Extension

    7. Can you make a copy of your main page and save it as "page2", so you can hyperlink to it?


    Task 4 - Lesson review Click to see more

    Summing it all up

    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

    Learning Outcomes I need to learn how to use styling to create a navigation bar

    • I have a basic understanding of how I can use styling to create a navigation bar with a little help from my teacher
    • I can show my teacher that I can use styling to create a navigation bar without their help.
    • I can use styling to create a navigation bar independently and I can also explain it to others and can complete any extension tasks I am given.

    🠜 Now update your learning objectivesClick on the Assessment image

    My Notes: Web_Design

    Student_Comment_6 not found

    Task Notes/Comments - Add here Click to see more

    Comments/Notes

    Copyright © 2013 - 2026 LearnITwithMrC