Datasheet

Below the heading element, you see a <p> element, which is used to denote a paragraph. All text within
the pair of
<p> tags is considered part of the paragraph. By default, a browser renders a paragraph with
some additional margin spacing at the bottom, although you can override that behavior.
Many tags are available in HTML; too many to cover them all here. The following table lists some of the
most important tags and describes how they can be used. For a complete list of all HTML elements, take
a look at the web site of the organization that maintains HTML:
www.w3.org/TR/html401/index/
elements.html
.
Continued
Ta g Description Example
<html>
Used to denote the start
and end of the entire page.
<html>
...All other content goes here
</html>
<head>
<title>
Used to denote a special sec-
tion of the page that con-
tains data about the page,
including its title.
<head>
<title>Welcome to my site</title>
</head>
<body>
Used to denote the start and
end of the body of the page.
<body>
Page body goes here
</body>
<a>
Used to link one web page
to another.
<a href=”http://www.wrox.com”>Visit the
Wrox site</a>
<img>
Used to embed images in
a page.
<img src=”Logo.gif” />
<b>
<i>
<u>
Used to format text in a
bold, italic, or underline
font.
This is <b>bold text</b> while <i>this
text is in italic</i>
<form>
<textarea>
<select>
<input>
Used for input forms that
allow users of a web site to
submit information to the
server.
<input type=”text” value=”Some Text” />
<table>
<tr>
<td>
These tags are used to cre-
ate a layout with a table.
The
<table> tag defines
the entire table, while the
<tr> and <td> are used
to define rows and cells,
respectively.
<table>
<tr>
<td>This is a Cell in Column 1</td>
<td>This is a Cell in Column 2</td>
</tr>
</table>
11
Chapter 1: Getting Started with ASP.NET 3.5
87593c01.qxd:WroxPro 1/25/08 9:05 AM Page 11