Other tags descibe a particular location within the text. For example ... <hr> draws a horzontal line across the screen at the point it is placed within the text.
Sometimes tags can have their effect further described by an attribute
value. Every tag has a fixed set of attributes that can be set, and
the possible values. For example, <h1 align=center> makes
a centered heading, as opposed to a default heading.
Tag | Function | Example |
<title> | Display a title on the menubar | <title>My page</title> |
<meta author> | Name the author | <meta name="author" content="Keith Parkins"> |
bgcolor | Set the background color | <body bgcolor=#rrggbb> ... </body>
<body bgcolor=green> ... </body> |
background | Install a background image | <body background="http://euclid.acs.nmu.edu/~randy/Pictures/Textures/20.jpg">
Can use any valid picture file anywhere on the web. |
text | Set the text color | <body text=#rrggbb> ... </body>
<body text=green> ... </body> |
<pre> | Text is already preformatted | <pre> .. some text .. </pre> |
<p> | End of paragraph | Note there is no </p> needed. |
<p> | Paragraph with options | <p align=center> .. </p>
</p> is needed with options. |
<center> | Centers text without starting a new paragraph. | <center>Hi!</center> |
<cite> | Emphasis. Usually italics | <cite>Cosmpolitan Magazine</cite> |
<em> | Emphasis. Usually italics. | <em>do NOT press the button</em> |
<b> | Bold | <b>Hi!</b> |
<strike> | Strikeout. Generates |
<strike>not</strike>.
Some browsers don't do this well. |
<font size> | Describes the font | <font size=+1>NO</font> |
<sub> | Subscripts | N<sub>2</sub> |
<sup> | Superscripts | N<sup>2</sup> |
Link | <a href=> | <a href="http://whitehouse.gov">the white house</a> |
Image | <img src= | <img src=http://euclid.acs.nmu.edu/~randy/Pictures/Explosions/badger.jpg
width=300 height=400> Optional attributes include width and height and many others. |
Char | Special Code |
> | > |
< | < |
& | & |