Common HTML Tags

The following table lists some of the most common HTML tags that you'll use to build your website. After you've worked in HTML for a little while, these tags will become second nature to you.







































































































TagNameCode Example
<aclass="code">>anchor<a class="code">href="class="code">http://www.yourdomain.com/class="code">">class="code">Click Hereclass="code"></a>
<b>bold<b>class="code">Bold Typeclass="code"></b>
<body>body of document<body>class="code">All of the contents of your Web page.class="code"></body>
<br>line breakSoft line breakclass="code"><br />Soft line
break
<center>center<center>class="code">Center your contentclass="code"></center>
<font>font<font class="code">face="class="code">Times New Roman"class="code">>class="code">Exampleclass="code"></font>
<form>form<form class="code">action="class="code">mailto:you@yourdomain.comclass="code">">class="code">

Name: <input name=class="code">"Nameclass="code">" value=class="code">"" size=class="code">"10class="code">" />class="code">

</form>
<h1>heading 1<h1>class="code">Heading 1 Exampleclass="code"></h1>
<h2>heading 2<h2>class="code">Heading 2 Exampleclass="code"></h2>
<h3>heading 3<h3>class="code">Heading 3 Exampleclass="code"></h3>
<head>heading of document<head>class="code">Contains elements describing the documentclass="code"></head>
<html>hypertext markup language<html>class="code"><head><meta><title>Title of your
webpage</title></head><body>Webpage
contents</body>class="code"></html>
<iclass="code">>italic<class="code">iclass="code">>Italic
Type
</class="code">iclass="code">>
<li>list item<ol type=class="code">"iclass="code">">class="code">

<li>class="code">List item 1class="code"></li>

<li>class="code">List item 2class="code"></li>

<li>class="code">List item 3class="code"></li>

<li>class="code">List item 4class="code"></li>

</ol>
<meta>meta<meta class="code">name="class="code">Description" class="code">content="class="code">Description of your siteclass="code">" class="code">/>

<meta class="code">name="class="code">keywords" class="code">content="class="code">keywords describing your siteclass="code">" class="code">/>
<ol>ordered list<ol>class="code">

<li>List item
1</li>


<li>List item
2</li>


<li>List item
3</li>


<li>List item
4</li>


</ol>
<p>paragraph<p> class="code">This creates class="code">a line break and a space between lines.class="code"></p>
<title>document title<title>class="code">Title of your webpageclass="code"></title>
<ul>unordered list<ul>class="code">

<li>List item
1</li>


<li>List item
2</li>


</ul>








dummies

Source:http://www.dummies.com/how-to/content/common-html-tags.navId-397649.html

No comments:

Post a Comment