Tags
Tags
BLOCK LEVEL
LIST
ORDERED LIST
<ol>
<il></il>
</ol>
UNORDERED LIST
<ul>
<li><li>
</ul>
DEFINITION LIST
<dl>
<dt>term</dt>
<dd>description</dd>
</dl>
INLINE
<b></b> = boldface
<i></i> = italicized
<span></span> = generic online element
ATTRIBUTE
<element attribute1=”value1”attribute2=”value2”…>content</element>
STYLE
style=”name1:value1;name2:value2; …”
Style=”text-align: alignment” = text alignment
Style=”color:color” = text color
EMPTY Elements
Line Break - <br />
Horizontal Rule - <hr />
Inserting an Inline Image
<img src=”file” alt=”text” />
TABLE Structure
<table>rows</table> = mark web table
<tr>cells</tr> = mark table row
ADD Border
<table border=”value”>…</table> = to add border
SPANNING Cell
colspan="value" = table cell that spans several columns
rowspan="value" = table cell that spans several rows
TABLE Caption
<caption>content</caption> = table caption
ROW GROUPS
Row group consisting of header rows:
<thread>
rows
</thread>
COLUMN GROUPS
Column Group:
<colgroup>
columns
</colgroup>
Define Column with a column group:
<col span=”value” />
CELL PADDING:
<table cellpadding=”value”>…</table>
CELL SPACE:
<table cellspacing=”value”>…</table>
FIELD SET
<fields id = “id”>
controls
</fieldset>
<legend></legend> = insert legend
<input type = “type” name = “name” id = “id”/> = text input box control
<label for = “id”>label text</label> = fields labels
<label for = “id”>label text</label> = explicitly associate text label with a
control elements
<label>
label text
control
</label> = implicitly associate a text label with a control element
FORM STYLES
Option Buttons
<input type = “radio” name = “name” id = “id1” value = “value1”/>
<input type = “radio” name = “name” id = “id2” value = “value2”/>
<input type = “radio” name = “name” id = “id3” value = "value3" />
checked = "checked" = to specify defaul option
SELECTION LIST
<select name = “name” id = “id”>
<option value = “value1”> text1</option>
<option value = “value2”> text2</option>
…..
</select>
CHECKBOX
<input type = “checkbox” name=”name” id=”id” value=”value” = create checkbox
checked = “checked” = specify that the checkbox is selected by default
TEXT AREA
<textarea name = “name” id = “id”>
text
</textarea>
rows=”value” cols=”value” = specify dimension of the box
FORM BUTTONS
<input type=”button” value=”text”/> = command button
<input type =”submit” value=”text”/> = submit
<input type=”reset” value=”text”/> = reset
RELATIVE
<a href=”pictures.html”>Pics</a>
ABSOLUTE
<a href=http://www.Yourdomain.com/pictures.html>Pics</a>
FRAMESET
<frameset> = tag announces that the current document is a frame document and
specifies how many frames it is creating.
COLS= how many cols in the frameset
ROWS= how many rows in the frameset
FRAMEBOARDER= if the frames should have borders
FRAMESPACING= space between the frames
BORDER= space between frames
BORDERCOLOR= color of frame borders
<frame /> = tag specifies the document that is to be included in each frame