Académique Documents
Professionnel Documents
Culture Documents
Name
Code Example
Browser View
comme <!--This can be viewed in the HTML Nothing will show (Tip) nt part of a document--> <a anchor href="http://www.domain.com/"> Visit Our Site</a> bold big (text) <b>Example</b> <big>Example</big>
<a -
<b> <big>
Example
Example (Tip)
body of HTML <body>The content of your HTML <body> docum page</body> ent
<br>
line break
The contents of your web page The contents of your web page
<dd>
Definition Term <dl> Definition of definiti <dt>Definition Term</dt> the term on <dd>Definition of the term</dd> descrip <dt>Definition Term</dt> Definition Term tion <dd>Definition of the term</dd> Definition of </dl> the term definiti <dl> on list <dt>Definition Term</dt> Definition Term Definition of the
<dl>
<dd>Definition of the term</dd> <dt>Definition Term</dt> <dd>Definition of the term</dd> </dl> <dl> <dt>Definition Term</dt> definiti <dd>Definition of the term</dd> on <dt>Definition Term</dt> term <dd>Definition of the term</dd> </dl> empha This is an <em>Example</em> of sis using the emphasis tag
term Definition Term Definition of the term Definition Term Definition of the term Definition Term Definition of the term This is an Example of using the emphasis tag
<dt>
<em>
(Tip)
<embed src="yourfile.mid" autostart="true" hidden="false" <embed embed loop="false"> > object <noembed><bgsound src="yourfile.mid" loop="1"></noembed>
Music will begin playing when your page is loaded and will only play one time. A control panel will be displayed to enable your visitors to stop the music. Example (Tip)
<font>
font
<font face="Times New Roman">Example</font> <font face="Times New Roman" size="4">Example</font> <font face="Times New Roman" size="+3" color="#ff0000">Example</font> <form action="mailto:you@yourdomain.co m">
<font>
font
Example (Tip)
<font>
font
Example
(Tip)
Top of Form
<form> form
Name:
(Tip)
Name: <input name="Name" value="" size="10"><br> Email: <input name="Email" value="" size="10"><br> <center><input type="submit"></center> </form> headin g1 headin g2 headin g3 headin g4 headin g5 headin g6
Email:
Bottom of Form
1 2 3 4 5 6
headin g of <head>Contains elements <head> HTML describing the document</head> docum ent
<hr>
Contents of your web page (Tip) Contents of your web page Contents of your web page Contents of your web page Contents of your web page
<hr>
<hr>
Contents of your web page <hr> (Internet Explorer ) <hr> (Internet Explorer ) Contents of your web page Contents of your web page Contents of your web page horizon <hr width="25%" color="#6699ff" tal rule size="6" /> Contents of your web page
<html> <head> hypert <meta> ext <title>Title of your web page</title> Contents of your web <html> markup </head> page langua <body>HTML web page contents ge </body> </html> <i> italic <i>Example</i> <img src="Earth.gif" width="41" height="41" border="0" alt="text describing the image" /> Example 1: <form method=post action="/cgibin/example.cgi"> <input type="text" size="10" maxlength="30"> <input type="Submit" value="Submit"> </form> Example 2: <form method=post action="/cgiTop of Form
Example
<img>
image
(Tip)
<input>
input field
Example 1: (Tip)
Bottom of Form
Top of Form
Example 2: (Tip)
bin/example.cgi"> <input type="text" style="color: #ffffff; font-family: Verdana; fontweight: bold; font-size: 12px; background-color: #72a4d2;" size="10" maxlength="30"> <input type="Submit" value="Submit"> </form> Example 3:
Bottom of Form
<input>
input field
<form method=post action="/cgibin/example.cgi"> <table border="0" cellspacing="0" Top of Form cellpadding="2"><tr><td Example 3: (Tip) bgcolor="#8463ff"><input type="text" size="10" maxlength="30"></td><td bgcolor="#8463ff" valign="Middle"> <input type="image" Bottom of Form name="submit" src="yourimage.gif"></td></tr> </table> </form> Example 4: <form method=post action="/cgiTop of Form bin/example.cgi"> Example 4: (Tip) Enter Your Comments:<br> <textarea wrap="virtual" name="Comments" rows=3 cols=20 maxlength=100></textarea><br> <input type="Submit" value="Submit"> <input type="Reset" Bottom of Form value="Clear"> </form> Example 5: <form method=post action="/cgibin/example.cgi">
Top of Form
<input>
input field
<center> Select an option: <select> <option >option 1</option> <option selected>option 2</option> <option>option 3</option> <option>option 4</option> <option>option 5</option> <option>option 6</option> </select><br> <input type="Submit" value="Submit"></center> </form> Example 6:
Bottom of Form
<input>
input field
Top of Form <form method=post action="/cgiExample 6: (Tip) bin/example.cgi"> Select an option:<br> Select an option: <input type="radio" name="option"> Option 1 Option 1 <input type="radio" name="option" checked> Option 2 <input type="radio" Option 2 name="option"> Option 3 <br> Option 3 <br> Select an option:<br> Select an option: <input type="checkbox" name="selection"> Selection 1 <input type="checkbox" Selection 1 name="selection" checked> Selection 2 Selection 2 <input type="checkbox" name="selection"> Selection 3 Selection 3 <input type="Submit" Bottom of Form value="Submit"> </form>
<li>
list item
Example 1: <menu> <li type="disc">List item 1</li> <li type="circle">List item 2</li>
<li type="square">List item 3</li> </MENU> Example 2: <ol type="i"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> <head> <link rel="stylesheet" type="text/css" href="style.css" /> </head>
Example 2:
i. List item 1 ii. List item 2 iii. List item 3 iv. List item 4
<link>
link
<marquee bgcolor="#cccccc" loop="-1" scrollamount="2" width="100%">Example Marquee</marquee> (Tip) <menu> <li type="disc">List item 1</li> <li type="circle">List item 2</li> <li type="square">List item 3</li> </menu> <meta name="Description" content="Description of your site"> <meta name="keywords" content="keywords describing your site">
<meta> meta
<meta> meta
<meta HTTP-EQUIV="Refresh" CONTENT="4;URL=http://www.yourd Nothing will show (Tip) omain.com/"> <meta http-equiv="Pragma" content="no-cache"> <meta name="rating" Nothing will show (Tip) Nothing will show (Tip)
content="General"> <meta> meta <meta name="robots" content="all"> <meta name="robots" content="noindex,follow"> Nothing will show (Tip)
Nothing will show (Tip) Numbered 1. List item 1 2. List item 2 3. List item 3 4. List item 4
ordere Numbered d list <ol> <li>List item <li>List item <li>List item <li>List item </ol>
Numbered Special Start <ol start="5"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> Lowercase Letters
Lowercase Letters
a. List item 1 b. List item 2 c. List item 3 d. List item 4
Capital Letters
A. List item 1 B. List item 2 C. List item 3 D. List item 4
<ol type="a"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> Capital Letters <ol type="A"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> Capital Letters Special Start <ol type="A" start="3"> <li>List item 1</li>
<li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> Lowercase Roman Numerals <ol type="i"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> Capital Roman Numerals <ol type="I"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol> Capital Roman Numerals Special Start <ol type="I" start="7"> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> <li>List item 4</li> </ol>
<form method=post action="/cgibin/example.cgi"> <center> Select an option: <select> <option>option 1</option> <option selected>option <option listbox 2</option> > option <option>option 3</option> <option>option 4</option> <option>option 5</option> <option>option 6</option> </select><br> </center> </form>
Top of Form
This is an example displaying the use of the paragraph tag. <p> This will This is an example create a line break and a space displaying the use of the between lines.
paragraph tag.
Attributes: <p align="left"> Example 1:<br /> <br /> This is an example<br> displaying the use<br> paragr of the paragraph tag.</p> aph <p align="right"> Example 2:<br> <br> This is an example<br> displaying the use<br> of the paragraph tag.</p> <p align="center"> Example 3:<br> <br> This is an example<br> displaying the use<br> of the paragraph tag.</p> small (text) <small>Example</small>
This will create a line break and a space between lines. Attributes: Example 1: This is an example displaying the use of the paragraph tag. Example 2: This is an example displaying the use of the paragraph tag. Example 3: This is an example displaying the use of the paragraph tag.
<p>
Example (Tip)
Example
Example
<table> table
<table border="4" cellpadding="2" cellspacing="2" width="100%"> Example 2: (Tip) <tr> <td>Column 1</td> Column 1 Column 2 <td>Column 2</td> </tr>
</table> Example 2: (Internet Explorer) <table border="2" bordercolor="#336699" cellpadding="2" cellspacing="2" width="100%"> <tr> <td>Column 1</td> <td>Column 2</td> </tr> </table> Example 3: <table cellpadding="2" cellspacing="2" width="100%"> <tr> <td bgcolor="#cccccc">Column 1</td> <td bgcolor="#cccccc">Column 2</td> </tr> <tr> <td>Row 2</td> <td>Row 2</td> </tr> </table> <table border="2" cellpadding="2" cellspacing="2" width="100%"> <tr> <td>Column 1</td> <td>Column 2</td> </tr> </table>
Example 3: (Tip)
Column 1 Row 2 Column 2 Row 2
<td>
table data
Column 1 Column 2
<th>
table <div align="center"> header <table> <tr> <th>Column 1</th> <th>Column 2</th> <th>Column 3</th>
</tr> <tr> <td>Row <td>Row <td>Row </tr> <tr> <td>Row <td>Row <td>Row </tr> <tr> <td>Row <td>Row <td>Row </tr> </table> </div>
<title>
docum <title>Title of your HTML ent page</title> title <table border="2" cellpadding="2" cellspacing="2" width="100%"> <tr> <td>Column 1</td> <td>Column 2</td> </tr> </table>
Title of your web page will be viewable in the title bar. (Tip) Column 1 Column 2
<tr>
table row
<tt>
teletyp <tt>Example</tt> e underli <u>Example</u> ne unorde Example 1:<br> red list <br> <ul> <li>List item 1</li> <li>List item 2</li> </ul> <br>
Example
<u> <ul>
Example 2:
List item 1
Example 2:<br> <ul type="disc"> <li>List item 1</li> <li>List item 2</li> <ul type="circle"> <li>List item 3</li> <li>List item 4</li> </ul> </ul>