HTML Tags
HTML Tags
<img src="planets.gif"
width="145" height="126"
alt="Planets"
usemap="#planetmap" />
<map name="planetmap">
<area shape="rect"
coords="0,0,82,126" alt="Sun"
href="sun.htm" />
<area shape="circle"
coords="90,58,3" alt="Mercury"
href="mercur.htm" />
<area shape="circle"
coords="124,58,8" alt="Venus"
href="venus.htm" />
</map>
</body>
</html>
</body>
</html>
</html>
<br /> Defines a single line This text <html> To break
break contains<br />a <body>
line break. lines
<p> in a
To break<br />lines<br />in a<br
/>paragraph,<br />use the br element. paragraph,
</p> use the br elem
</body>
</html>
</body>
</html>
</html>
<h1> to <h6> Defines HTML <h1>This is <html>
headings heading
1</h1>
<body> This is
<h2>This
heading
is <h1>This
<h2>This
is
is
heading
heading
1</h1>
2</h2> heading
2</h2> <h3>This is heading 3</h3>
<h3>This is <h4>This is heading 4</h4>
heading <h5>This is heading 5</h5> This is headin
3</h3> <h6>This is heading 6</h6>
<h4>This is This is headin
heading <p>
4</h4> Use heading tags only for headings.
<h5>This is Don't use them just to make something This is heading
bold. Use other tags for that.
heading
</p> This is heading
5</h5>
<h6>This is
</body>
heading This is heading 6
</html>
6</h6>
Use heading tags
headings. Don't u
just to make som
bold. Use other ta
that.
</html>
<hr /> Defines a horizontal <p>This is <html>
line some <body>
text.</p>
<hr /> <p>This is some text.</p>
<p>This is <hr />
some <p>This is some text.</p>
text.</p>
</body>
</html>
</html>
<iframe> Defines an inline <iframe <html>
frame src="html_int <body>
ro.asp"
width="100%" <iframe src="/default.asp"
height="300"> width="100%" height="300">
<p>Your <p>Your browser does not support
browser does iframes.</p>
not support </iframe>
iframes.</p>
</iframe> </body>
</html>
</body>
</html>
</body>
</html>
</body>
</html>
</html>
<noscript> Defines an alternate <html> <html>
content for users
that do not support <frameset <frameset cols="25%,50%,25%">
client-side scripts cols="25%,50% <frame src="frame_a.htm" />
,25%"> <frame src="frame_b.htm" />
<frame <frame src="frame_c.htm" />
src="frame_a. <noframes>
htm" /> Sorry, your browser does not handle
<frame frames!
src="frame_b. </noframes>
htm" /> </frameset>
<frame
src="frame_c. </html>
htm" />
<noframes>
Sorry, your
browser does
not handle
frames!
</noframes>
</frameset>
</html>
<object> Defines an <object <html>
embedded object width="400" <body>
height="400"
data="hellowo <object width="400" height="400"
rld.swf"></ob data="helloworld.swf">
ject> </object>
</body>
</html>
for i = 1 to 1
print i
next i
<q> Defines a short <q> <!DOCTYPE HTML PUBLIC Here comes a sho
quotation Here is a "-//W3C//DTD HTML 4.01
quotation: This is
short Transitional//EN"
quotation "http://www.w3.org/TR/html4/loose.dtd quotation
here is a ">
short <html> Notice that the br
quotation <body>
</q>
<p>Here comes a short quotation:
inserts quotation
<q>This is a short quotation</q></p> around the quota
</body>
</html>
<p>Version </body>
2.0 is </html>
<strike>not
yet
available!
</strike> now
available!
</p>
<script> Defines a client-side <script <html> Hello World!
script type="text/ja <body>
vascript">
document.writ <script type="text/javascript">
e("Hello document.write("Hello World!")
World!") </script>
</script>
</body>
</html>
<select> Defines a select list <select> <html>
(drop-down list) <option <body>
value="volvo"
>Volvo</optio <select>
n> <option>Volvo</option>
<option <option>Saab</option>
value="saab"> <option>Mercedes</option>
Saab</option> <option>Audi</option>
<option </select>
value="merced
es">Mercedes< </body>
/option> </html>
<option
value="audi">
Audi</option>
</select>
<body>
</body>
</html>
<style> Defines style <html> <html>
information for a <head> <head>
document <style <style type="text/css">
type="text/cs h1 {color:red;}
s"> p {color:blue;}
h1 </style>
{color:red;} </head>
p
{color:blue;} <body>
</style> <h1>Header 1</h1>
</head> <p>A paragraph.</p>
</body>
<body>
</html>
<h1>Header
1</h1>
<p>A
paragraph.</p
>
</body>
</html>
</body>
</html>
</body>
</html>
</body>
</html>
</body>
</html>
</html>
<tr> Defines a row in a <table <html>
table border="1"> <body>
<tr>
<th>Month</th <table border="1">
> <tr>
<th>Savings</ <th>Month</th>
th> <th>Savings</th>
</tr> </tr>
<tr> <tr>
<td>January</ <td>January</td>
td> <td>$100</td>
<td>$100</td> </tr>
</tr> </table>
</table>
</body>
</html>