| Option | Description | Example | Result | Avail |
|---|---|---|---|---|
| <body> tag options | ||||
| background= | Specifies an image to tile as the page's background. | <body background=marble.gif> | (marble.gif in background) | 2 |
| bgcolor= | Sets the page's background colour. | <body bgcolor=#ff0000> | (Bright red background) | 2 |
| bgproperties= | Lets you fix the page's background like a 'watermark'. | <body bgproperties=fixed> | Non-scrolling background bitmap | MS |
| text= | Specifies the colour for text on this page. | <body text=#000000> | Black text. | 2 |
| link= | Specifies the colour for hypertext links on this page. | <body link=#ffff00> | Bright yellow links. | 2 |
| alink= | Specifies the colour for anchor hypertext links on this page. | <body link=#808080> | Middle grey links. | 2 |
| vlink= | Specifies the colour for seen hypertext links on this page. | <body link=#0080ff> | Bright blue links. | 2 |
| <img> tag options | ||||
| src= | Specifies which image to show. | <img src=bullet.gif> | ![]() |
1 |
| alt= | Text to show if the image can't be shown. | <img src=bullet.gif alt="Text"> | ![]() |
1 |
| align= | Image alignment: left, center, right, top, middle, bottom, texttop, absmiddle, baseline, absbottom. | -- <img src=bullet.gif align=top> -- <img src=bullet.gif align=bottom> -- | -- -- -- |
2 |
| hspace= | Horizontal space to leave for the image. | L<img src=bullet.gif hspace=30>R | L R |
2 |
| vspace= | Vertical space to leave for the image. | Left <img src=bullet.gif vspace=20> Right |
Left Right |
2 |
| border= | Draws an optional border around the graphic. | <img src=bullet.gif border=2> | ![]() |
2 |
| dynsrc= | Specifies an animation to play; uses src if can't play animation. | <img dynsrc=test.avi start=mouseover loop=infinite src=bullet.gif> | ![]() |
MS |
| start= | Specifies when to start a dynsrc animation. | See dynsrc. | See dynsrc. | MS |
| loop= | In a dynsrc animation, specifies how many times to play it (or 'infinite'). | See dynsrc. | See dynsrc. | MS |
| width= | Tells the browser how wide the image is. | <img width=32 height=32> | No visual effect. | 2 |
| height= | Tells the browser how high the image is. | <img width=32 height=32> | No visual effect. | 2 |
| <table> tag options | ||||
| border= | Controls the border around the table. Just "border" gives you a border, "border=3" gives you a 3 pixel border, "border=0" removes the border. | <table border=3> | This table has a 3 pixel border. | 2 |
| cellspacing= | How far apart the cells are. | <table cellspacing=3> | 3 Pixels between each cell. | 3 |
| cellpadding= | Determines each cell's inner margin. | <table cellpadding=3> | A 3 pixel margin. | 3 |
| <td, tr, th> tag options | ||||
| bgcolor= | Sets the background colour for a single cell in a table. | <td bgcolor=#00ff00> | This cell has a green background. | MS |
| colspan= | Makes a wide cell in a table. | <td colspan=5> (this cell is 2 cells wide) | 3 | |
| rowspan= | Makes a tall cell in a table. | <td rowspan=2> | This cell is 2 rows high (the next row is empty). | 3 |
| align= | Controls horizontal text alignment; values are left, center, and right. | <td align=right> At<br>The<br>Right |
At The Right. |
3 |
| valign= | Sets the background colour for a single cell in a table. | <td valign=bottom> Bottom |
Bottom | 3 |
| width= | Cell size specifier - can be in pixels or percent. | <td width=20> | A 20 pixel wide cell | 3 |
| height= | Cell size specifier - can be in pixels or percent. | <td height=20> | A 20 pixel high cell | 3 |
| <dl> tag options | ||||
| compact | Uses a tighter rendering for definition lists. | <dl compact> <dt>Header <dd>Body </dl> |
|
1 |
| <frameset> tag options | ||||
| rows= | Specifies vertical sections and sizes, asterisk means remaining space. | <frameset rows=20%,*,10%> | Example | 3 |
| cols= | Like rows= but for horizontal sections. | <frameset cols="*,*"> | Example | 3 |
| <frame> tag options | ||||
| src= | URL to place in frame cell. | <frame src=test.html> | Example | 3 |
| name= | Window name to use for this frame. _blank, _self, _parent, _top are special names. | <frame name=fred> | Example | 3 |
| marginwidth= | Set the blank space in pixels around the content. | <frame marginwidth=4> | Example | 3 |
| marginheight= | Set the blank space in pixels around the content. | <frame marginheight=4> | Example | 3 |
| scrolling= | Set to yes, no, or auto. Controls scrollbar presence. | <frame src=fred.html scrolling=no> | Example | 3 |
| noresize | Disables frame edge dragging so users can't resize them. | <frame src=fred.html noresize> | Example | 3 |
| <p> tag options | ||||
| align= | Align paragraph text: left, right, or center. | <p align=left>Left aligned.</p> <p align=right>Right aligned.</p> |
Left aligned. Right aligned. |
3 |
| <h1> tag options | ||||
| align= | Align header text: left, right, or center. | <h4 align=left>Left aligned.</p> <h4 align=right>Right aligned.</p> |
Left aligned.Right aligned. |
3 |
| <hr> tag options | ||||
| width= | Specify ruler width in pixels or percent. | <hr width=50%> | NS, MS | |
| align= | Align ruler: left, right, or center. | <hr width=50% align=right> <hr width=50% align=left> |
NS, MS | |
| size= | Specifies ruler height in pixels. | <hr size=10> | NS, MS | |
| noshade | Turns off the 'shadow' under the line. | <hr><hr noshade> | NS, MS | |
| <embed> tag options | ||||
| src= | Specifies URL with content. | <embed src=cmx.cmx> | NS | |
| width= | Specifies width for embedded object. | <embed src=cmx.cmx width=40> | NS | |
| height= | Specifies height for embedded object. | <embed src=cmx.cmx height=40> | NS | |