A brief introduction to HTML
|
There's a little bit more to it than this
-
Some tags need attributes - extra bits of
information
- An attribute has a name and a value
- It's written name="value"
- Inside the angle brackets of the opening tag
- You don't have to repeat it in the closing tag
-
Some tags are 'empty'
- they don't enclose any text
- they don't need a closing tag
-
in XHTML they are marked with a trailing slash before
the right angle bracket
- At the beginning of the document you need a document type
declaration and a header