Friday, 3 June 2011

HTML col Tag


The <col> tag defines attribute values for one or more columns in a table.

The <col> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.

The <col> tag can only be used inside a table or a colgroup element.

Example:
<table width="100%" border="1">
  <col align="left" />
  <col align="left" />
  <col align="right" />
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
</table>









HTML center Tag


The <center> tag is used to align the text to center.

Example
<center>This text will be centered.</center>




HTML caption Tag


The <caption> tag defines a table caption.

The <caption> tag must be inserted immediately after the <table> tag. You can specify only one caption per table. Usually the caption will be centered above the table.

Example
<table border="1">
  <caption>Monthly savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>









HTML button Tag


The <button> tag defines a push button.

Inside a button element you can put content, like text or images. This is the difference between this element and buttons created with the input element.

Always specify the type attribute for the button. The default type for Internet Explorer is "button", while in other browsers (and in the W3C specification) it is "submit".

Example
<button type="button">Click Me!</button>







HTML br Tag


The <br> tag inserts a single line break. 
The <br> tag is an empty tag which means that it has no end tag.

Example
This text contains<br />a line break.







HTML body Tag


The body element defines the document's body.
The body element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.

Example

<html>
<head>
<title>Title of the document</title>
</head>


<body>
The content of the document......
</body>


</html>

HTML blockquote Tag


The <blockquote> tag defines a long quotation.
A browser inserts white space before and after a blockquote element. It also insert margins for the blockquote element.
Example

<blockquote>
Here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation.
</blockquote>