Monday, April 4, 2011

6th Blog Post

This week we learnt Css. Firstly,we learnt how to write a comment in CSS which is:<!-- comment goes here --> (this doesn't show on the page).
Secondly, we were taught that we use div id elements to divide up a page and this can be advantageous in terms of applying different styling to the different sections of a page for eg colour, text, postion etc. If we wanted to create  a div for a paragraph it would be written like this...<div id="paragraph">. So, when styling it in CSS you wouldsimply write...#paragraph (to identify that specific paragraph.
Also, we learnt to apply padding,width, positioning,background-color,border-style etc. to a web page.
Apart from div id's, we learnt about class id's as well. It basically is the same as the div id but it is more specific and in CSS is represented like this: .page.

1 comment:

  1. Hey Yanikee,

    Some clarification.

    <div id="paragraph"></div> doesn't not mean that this div is for the paragraph. It actually means that the div created has an id (or a 'name') that identifies or differentiates it from all other divs (and other html elements too.

    So that code by itself really has nothing to do with the <p> html tag.

    Get it?

    ReplyDelete