Академический Документы
Профессиональный Документы
Культура Документы
1. Standard tags
• Formatting text
• Default web page
2. Multimedia
• Image
• Horizontal rule
HTML guide
• Embed media
• Sound
3. Tables
4. Forms
• Form
• Button
• Checkbox
• Radiobutton
• Listbox
• Combobox
• Textbox
• Password box
• Text area (multi line)
5. Anchors
• Anchor
• Link to location
• Link inside document
• Link to email
• Picture as a link
• Button link
6. Lists
• Unordered list
• Ordered list
• Definition list
7. Frames
• Iframe
• Frame
8. Some cool things
• Address
Standard formatting
Format Tag
Bold <b>Text here</b>
Italics <i>Text here</i>
Underline <u>Text here</u>
Center <center>Text here</center>
Right <right>Text here</right>
Left <left>Text here</left>
Font <font face=”” size=”-1 to 4” color=”color name”>Text here</font>
Superscript <sup>Text here</sup>
Subscript <sub>Text here</sub>
H1-H6 <h1>Text here</h1> 1-6 6 being largest and boldest
Strike through <strike>Text here</strike>
Teletype <tt>Text here</tt>
Smaller font <small>Text here</small>
Larger font <big>Text here</big>
Blink <blink>Text here</blink> Only supported on netscape as far as I know
Pre formatted <pre>Text here</pre> Allows you to type in html code without the browser seing it
text as code if you want to show hoe to do something in html on your page
Remark <!---Your text that you don't want on the web page goes here--->
1. You can add name=”” class=”” and id=”” to any of these tags to identify them name and class is
the ones I usually use and sometimes id
2.
Default HTML empty file
---------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title> <!---The title that will be on the top in the title bar--->
</style>
</head>
<body>
</script>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------------------
Note: CSS must be declared in the hed tags, Script can be declared either in the head tags or in the body bags
Multimedia
Images
Image tag
<img src="" alt="" align="" border="0">
Image map
<MAP NAME="map1">
<AREA
HREF="contacts.html" ALT="Contacts" TITLE="Contacts"
SHAPE=RECT COORDS="6,116,97,184">
<AREA
HREF="products.html" ALT="Products" TITLE="Products"
SHAPE=CIRCLE COORDS="251,143,47">
<AREA
HREF="new.html" ALT="New!" TITLE="New!"
SHAPE=POLY COORDS="150,217, 190,257, 150,297,110,257">
</MAP>
<IMG SRC="testmap.gif"
ALT="map of GH site" BORDER=0 WIDTH=300 HEIGHT=300
USEMAP="#map1"><BR>
Horizontal rule
<hr size="3" width="75%" color="blue">
Marquee
<marquee align="" behavior="scroll|slide|alternate" bgcolor="" height="" width="" direction="left|right"
loop="infinite|value" scrollamount="" scrolldelay="" title=""></marquee>
Embed media
<embed src="file" hidden="true|false" type="mimetype" width="" height="" alt="" name=""></embed>
Background sound
<bgsound src="" balance="" loop="infinite" volume="">
Table
<table cellspacing="2" cellpadding="2" width="22%" height="75%" “align=center” bgcolor=”yellow”
border=”3”>
<th>This is the teablehead</th>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tfoot align="" bgcolor="" title="">This is the footer</tfoot>
</table>
• Cellspacing and cellpadding indicate the cushion of information between the text and the border. More
padding and spacing makes the cells bigger to allow more padding
• width is the width of the table height is the height of the table. If you leave these blank the cells will
automatically space by the text making all cells equal in size
• <th> is the table heading. This text would be at the top of the table kind of like a heading
• <tf> is the table footer if you want to put something at the bottom of the table like a chart number or
something. Bgcolor stands for background colot
• <tr> is table row. Use this everytime you want to start another row
• <td> is the table cell that you write the information of the table in
Forms
If you use a control and want to get information with a script it must be in a form with a name. All of these
should also include a name and a class and id inside the tag for instance name=”” class=”” id=””. This allows
you to call it from a script. You can also include a javascript event with a button like OnClick to make the button
do something.
Some things that all these ask is value which means label or if you make a button and you want the button to
read Save you would fill value as Save or value=”Save”
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>
Ordered list
This is a numbered list
<ol>
<li>List item 1</li>
<li>List item 2</li>
</ol>
Definition list
This would be like If you wanted to make a glossary like a dictionary and show a word and the meaning
<dt>
<dt title="">The term
<dd title="">Definition of the term
</dt>
Frames
Regular frame