Also see: this in the Midterm Study Guide
here for the 147 CSS 2 Color Names
click here for the 147 CSS 2 Color Names
<pre> 1 2 3 4 5 6 7 8 9 0 abc def ghi 1 2 3 4 5 jlk mno pqr abc def ghi </pre>
...some text then we<p>
insert this content inside a break tag before and after this content<p>
then we have more text...
...some text then we<br>
insert this content inside a break tag before and after this content<br>
then we have more text...
makes this horizontal line:
<hr width="100">
makes this horizontal line that is exactly 100 pixels wide:
<ul> <li> first list item <li> second list item <li> third list item </ul>looks like this:
Nested lists change the type of bullet used at each level (first disc, then circles, then squares thereafter)
<ul> <li> first list item (1st level) <ul> <li> first list item (2nd level) <li> second list item (2nd level) <ul> <li> first list item (3rd level) <ul> <li> first list item (4th level) <li> second list item (4th level) <li> third list item (4th level) </ul> <li> second list item (3rd level) <li> third list item (3rd level) </ul> <li> third list item (2nd level) </ul> <li> second list item (1st level) <li> third list item (1st level) </ul>
looks like this:
You can specify any bullet type by using the type attribute. like this:
<ul type="disc">
or
<ul type="circle">
or
<ul type="square">
Default order lists use the <ol> tag like this:
<ol> <li> first list item (1st level) <ol> <li> first list item (2nd level) <li> second list item (2nd level) <ol> <li> first list item (3rd level) <ol> <li> first list item (4th level) <li> second list item (4th level) <li> third list item (4th level) </ol> <li> second list item (3rd level) <li> third list item (3rd level) </ol> <li> third list item (2nd level) </ol> <li> second list item (1st level) <li> third list item (1st level) </ol>
looks like this:
Alternatively, you can order the lists by using:
<ol type="a"> to get list that order in lower case alphabetic order
<ol type="A"> to get list that order in upper case alphabetic order
<ol type="i"> to get list that order in lower case Roman numeral order
<ol type="I"> to get list that order in upper case Roman numeral order
like this:
<ol type="A"> <li> first list item (1st level) <ol type="a"> <li> first list item (2nd level) <li> second list item (2nd level) <ol type="I"> <li> first list item (3rd level) <ol type="i"> <li> first list item (4th level) <li> second list item (4th level) <li> third list item (4th level) </ol> <li> second list item (3rd level) <li> third list item (3rd level) </ol> <li> third list item (2nd level) </ol> <li> second list item (1st level) <li> third list item (1st level) </ol>
looks like this:
Further, you can change the starting number by using the start attribute like this:
<ol start=7"> <li> first list item (1st level) <ol start="17"> <li> first list item (2nd level) <li> second list item (2nd level) <ol start="27"> <li> first list item (3rd level) <ol start="37"> <li> first list item (4th level) <li> second list item (4th level) <li> third list item (4th level) </ol> <li> second list item (3rd level) <li> third list item (3rd level) </ol> <li> third list item (2nd level) </ol> <li> second list item (1st level) <li> third list item (1st level) </ol>
looks like this:
The start attribute does NOT apply to alphabetic or Roman numeral ordering.
Also see this in the Midterm Study Guide
table tag attributes:
<table border="2" width="200" bgcolor="rgb(204,204,204)" border="1" bordercolor="rgb(255,0,0)" cellspacing="5" cellpadding="5">
<tr><td>cell 1,1</td><td>cell 1,2</td></tr>
<tr><td>cell 2,1</td><td>cell 1,2</td></tr>
</table>
makes this:
cell 1,1 | cell 1,2 |
cell 2,1 | cell 1,2 |
table row tag attributes:
table cell tag attributes:
Table tag attributes are over-ridden by table row attributes which are over-ridden by table cell attributes
<table border="1" width="400"> <tr width="200" bgcolor="rgb(204,204,0)" align="right"> <td> cell 1,1<br>some text<br>some more text</td> <td valign="top"> cell 1,2<br>some text</td> <td> cell 1,3<br>some text</td> <td valign="bottom">cell 1,4<br>some text</td> </tr> <tr bgcolor="rgb(204,204,204)" align="center"> <td> cell 2,1<br>some text<br>some more text</td> <td valign="top"> cell 1,2<br>some text</td> <td> cell 2,3<br>some text</td> <td valign="bottom">cell 1,4<br>some text</td> </tr> <tr bgcolor="rgb(0,204,204)"> <td> cell 3,1<br>some text<br>some more text</td> <td valign="top"> cell 3,2<br>some text</td> <td> cell 3,3<br>some text</td> <td valign="bottom">cell 1,4<br>some text</td> </tr> </table>
makes this:
cell 1,1 some text some more text |
cell 1,2 some text |
cell 1,3 some text |
cell 1,4 some text |
cell 2,1 some text some more text |
cell 1,2 some text |
cell 2,3 some text |
cell 1,4 some text |
cell 3,1 some text some more text |
cell 3,2 some text |
cell 3,3 some text |
cell 1,4 some text |
Usage is:
...<td rowspan="number of rows spanned by this cell" colspan="number of columns spanned by this cell">
<table border="1" width="400"> <tr> <td colspan="4" align="center">cell 1,1 spans 4 columns</td> </tr> <tr> <td rowspan="3" align="center">cell 2,1<br>spans<br>3<br>rows</td> <td>cell 2,2</td> <td>cell 2,3</td> <td>cell 2,4</td> </tr> <tr> <td>cell 3,2</td> <td colspan="2" rowspan="2" align="center">cell 3,3<br>spans 2 rows<br>and<br>2 columns</td> </tr> <tr> <td>cell 4,2</td> </tr> </table>
makes this:
cell 1,1 spans 4 columns | |||
cell 2,1 spans 3 rows |
cell 2,2 | cell 2,3 | cell 2,4 |
cell 3,2 | cell 3,3 spans 2 rows and 2 columns |
||
cell 4,2 |
can be used as an attribute if the BODY, TD, TR, and TABLE tags
<table bgcolor="red" border="1"> <tr> <td>cell 1,1</td> <td>cell 1,2</td> <td>cell 1,3</td> </tr> <tr bgcolor="yellow"> <td>cell 1,1</td> <td>cell 1,2</td> <td>cell 1,3</td> </tr> <tr> <td bgcolor="blue">cell 1,1</td> <td>cell 1,2</td> <td bgcolor="green">cell 1,3</td> </tr> </table>
makes this:
cell 1,1 | cell 1,2 | cell 1,3 |
cell 2,1 | cell 2,2 | cell 2,3 |
cell 3,1 | cell 3,2 | cell 3,3 |
Also see this in the Midterm Study Guide
<img src="captsm.gif">
make this:
We can add attributes:
<img src="captsm.gif width="50">
OR
<img src="captsm.gif height="50">
OR
<img src="captsm.gif height="50" width="20">
OR
<img src="captsm.gif height="20" width="50">
make these:
<img src="captsm.gif border="2">
makes this bordered image:
<a href="http://www.uh.edu">UH Homepage</a>
makes this link:
You can also use an image rather than text to make a link. Like this:
<a href="http://www.bauer.uh.edu/parks/mis3371.htm"><img src="captsm.gif"></a>
make this clickable image:
Can be either: a number (normally means the location in the ASCII table) or an entity name.
For example, the copyright symbol: © can be &#169; (an ASCII table location number) or an entity name &copy;