Monday, May 30, 2011

Markup tags and their use

Markup Tags are normally known as HTML Tags. These are actually keywords surrounded by angle brackets like <html>.

Tag is used as pair like <html> and </html>, where <html> represents start and </html> represents end. Start tag is known as Opening tag and End tag is known as Closing Tag.

Markup tags are not case sensitive. There is a term used in HTML document, doctype. If no any doctype is defined when creating an HTML document, Markup tags defined in Upper or Lower. But It is recommended for all of you to practice it in small case like <span>, not like <SPAN>.

We'll focus on contents of HTML document related basic Markup tags commonly used:
All these tags will be used within <body>...</body> tag, so that it can be displayed on browser.

For Text Headings:
<h1>...</h1>
<h2>...</h2>
<h3>...</h3>
<h4>...</h4>
<h5>...</h5>
<h6>...</h6>

For Text Paragraphs:
<p>...</p>

For Page Division or Making Sections:
<span>...</span>
<div>...</div>

For representing contents in the form of rows & columns on HTML page:
<table>...</table>

For linking one Web page with another (Hyperlink):
<a>...</a>

For making Forms:
<input />
<form>...</form>



For placing photos:
<img />


For lists:

<ul>...</ul>
<ol>...</ol>


There are many other tags available but will learn when we need it.
In next coming posts, we'll learn deeply the use of each commonly used tags with examples.


No comments:

Post a Comment