Lab 2 - HTML
Sample HTML Tags
This is regular text | This is regular text |
<b>This is bold text</b> | This is bold text |
<i>This is in italics</i> | This is in italics |
<u>This is underlined</u> | This is underlined |
<font size=-2>-2 Sized Font</font> | -2 Sized Font |
<font size=-1>-1 Sized Font</font> | -1 Sized Font |
Regular Sized Font | Regular Sized Font |
<font size=+1>+1 Sized Font</font> | +1 Sized Font |
<font size=+2>+2 Sized Font</font> | +2 Sized Font |
<font size=+3>+3 Sized Font</font> | +3 Sized Font |
For more colors see this page. | |
<font color=#000000>Black</font> | Black |
<font color=#FF0000>Red</font> | Red |
<font color=#00FF00>Green</font> | Green |
<font color=#0000FF>Blue</font> | Blue |
<font color=#FFFF00>Yellow</font> | Yellow |
<font color=#FF00FF>Magenta</font> | Magenta |
<font color=#00FFFF>Cyan</font> | Cyan |
For more colors see this page. | |
<body bgcolor=#000000>...</body> | |
<body bgcolor=#FF0000>...</body> | |
<body bgcolor=#00FF00>...</body> | |
<body bgcolor=#0000FF>...</body> | |
<body bgcolor=#FFFF00>...</body> | |
<body bgcolor=#FF00FF>...</body> | |
<body bgcolor=#00FFFF>...</body> | |
<body background=buzz.gif>...</body> | |
<p align=center>Centered</p> | Centered |
<p align=left>Left Aligned</p> | Left Aligned |
<p align=center>Right Aligned</p> | Right Aligned |
<p align=justify>Justified</p> | Justified |
<ul> <li> Unordered List Item 1 </li>
<li> Unordered List Item 2 </li>
<li> Unordered List Item 3 </li></ul> |
|
<ol> <li> Ordered List Item 1 </li>
<li> Ordered List Item 2 </li>
<li> Ordered List Item 3 </li></ol> |
|
<ul> <li> Unordered List Item 1 </li>
<ol><li> Nested Item 1a </li>
<li> Nested Item 1b </li></ol>
<li> Unordered List Item 2 </li>
<li> Unordered List Item 3 </li></ul> |
|
See the Lab 2 page for more details on forms. | |
<input type=checkbox name=my_checkbox value=1>Checkbox | Checkbox |
<input type=hidden name=my_hidden value=10>Hidden | Hidden |
<input type=radio name=my_radio value=1>Radio 1 | Radio 1 |
<input type=radio name=my_radio value=2>Radio 2 | Radio 2 |
<input type=reset> | |
<input type=submit> | |
<input type=text name=my_text value="enter text"> | |
<textarea name=my_textarea cols=25 rows=5> | |
<pre> | This is pre-formatted t e x t |
<!-- This is a comment within | |
This has a <br> line-break in it. | This has a line-break in it. |
This has a <hr> horizontal-rule in it. | This has a horizontal-rule in it. |