HTML Tips
HTML = Hypertext Markup Language
Html has been the standard language of web pages for years. It is still the basis
of newer, standards-compliant web languages like XHTML and XML. Eventually, all
pages will be written in XHTML and later in XML. These languages are still being
refined but will eventually make webpages standardized so they look and act the
same in all browsers and on all platforms.
All tags must be enclosed in tag markers <>
Example: <b>
All tags must have a beginning and an ending (well most of
them . . . )
Example: <b>this is bold text</b>
(A couple exceptions are <br> and <hr> which don’t require ending
tags)
When using more than one tag, keep them nested
Example: <b><i>this is bold italic text</i></b> These
must be in order.
All tags should be in lowercase
Example: <font size=”2”>This is small text</font>
Not <FONT size=”2”>this is small text</FONT>
or <font size=”2”>This is small text</FONT>
Most tags can have additional attributes to specify details about
the text
Example: <font size=”2” color=”#669933”>
Keep all attributes in quotation marks
Example: <font size=”2” color=”#669933”>
Save your html pages with the .html or .htm extension.
These are the standards although there are a few others you can use for different
purposes
Test, Test, Text your html pages
Different browsers and operating systems read pages differently. This can make
your pages look different to different browsers. It’s important to test
your pages in as many browsers and operating systems as possible.
Use HTML Validators
Validators check your code and alert you to any html errors or issues.
|