Ok so this week we had our first test and I got 15/20. I know I did make a few minor errors but mi proud lol. Anyways, this week we went in depth with CSS. We learnt about the block element- this puts information to be in a line and doesn't allow anything else (any other line) to be beside it. It has to come after. Also, we learnt that there are 3 types of DOC TYPE namely: strict, transitional, and frame set.<p> and <h1> are block elements. We also learnt about in-line elements for e.g. strong and emphasis. It allows sentences to be adjacent to other sentences on a page. div (a block element) and span ( a in-line element) are used for organization on a page.
Finally we learnt how to add a header and footer to our page and how to make things on the page float left and right.
<div id= "header"> is used to add a header on the page.
<div id= "footer"> is used to add a footer on the page.
<div id= "left"> is used to float things to the left on the page.
<div id= "right"> is used to float things to the right on the page.
We learnt how to add colour, width, height etc. to our headers, footers. For e.g.
#header
{
background-color:red; height:80px;
}
P.S When writing html codes <!doc-type html> should be at the top our page.
Hey Yanikee
ReplyDeleteKeep those blog post coming!
So just that you under what happened last class.
1) <div id= "header"> is used to add a header on the page.
Ans: You said that in your blog post but it's not entirely correct. The html code, <div id="header">, just added a division element on the page with an id attribute value header. We could have called it top, head or bottom. Bottom? Yes Bottom. You see, the value of the id attribute doesn't determine where the element will be positioned it's the CSS that does that.
So we just give the div element and id header so we could identify it easily in the CSS and apply CSS to it. #header {color:white;}. So its not he attribute that makes it a header we just named it that way so we can remember it is the header.
Get me? Let me know if that sunk in. If not I am willing to sit with you in class and plant this concept deeper in your brain.
In the meantime, Read Week 4 and Week 5. Please they are very very very good.
Until we meet again,
Take good care of yourself.
Your teacher,
Dwight.
p.s. Practicing out of class time helps too. Feel free to email me and ask me questions and the like.