Nagging Reminder TURN IN convert.txt
!!!
I am going to make your grade look crummy by putting a 0 in it. Once I get
at least half of the first.html
assignments, I will start grading
them. It's due next Wed.
Reading Read up to and including "the document tree" in wd0.pdf. Monday's quiz will feature reading questions. Since Monday is Friday, your quiz will actually be on Tuesday. 😃 I will tell you where the reading ends on Thurs.
Grammar Hammer Time
You need to know the rules of HTML grammar. Proper grammar makes your page render as you intended it to. Improper grammar slows page loading and can lead to mysterious problems when using CSS and JS.
Parts of Speech
- tags: they look like < .... >. They bound elements. That is, they say where elements begin and end.
- attributes: these modify or specify the behavior of a tag.
- text: The words you are putting on a page.
There are three types of tags.
- opening tags: they look like
<foo>
. The specify where an element starts. - closing tags: they look like
</foo>
. The specify where an element ends. - self-closing tags: they look like
<foo/>
. The specify where an an empty element.
Rules of Syntax Tags must close in the reverse order that they open.
This violates the rules.
<p><a href="www.foo.com">foo</p></a>
Inspecting Elements
Using the Validator
Copy your first.html
to firstCorrected.html
.
Use the validator to make your page well-formed.
All of your HTML pages should validate.