HTML Basic
HTML Basic
</body>
</html>
Various HTML Tags
Heading Tags
<h1> </h1> to <h6> </h6>
<hr> : Horizontal Row
<center> </center> : Centralized the Text
Formating Tags
<br> : Line Break
<p> </p> : Paragraph
<b> </b> : To Make Contents Bold
Formatting Tags
<big> </big> :To specify big size & Bold
<small> </small>: To Specify small size
<Font size: color: face:> </font>: To specify Size, color &
font face of text
<pre> </pre>: For Predefine format of text same as in
code.
<em> </em>: To emphasis a text same as Italic
<strong> </strong>: Strong Emphasis bold text
<blockquote> </blockquote>:To quote text different from
rest of the document.
<i> </i> : To make contents Italic
<u> </u> : To underline the contents
<Basefont color: size: face: > </basefont>:Is used to set
standard face, color & size for text of the document.Unless
they are overridden by the another font or basefont
element.
Image
<img>:Tag used to display image
Attributes are : src, align, alt, border, height, width
Src :Points to the URL of the graphic file to be
displayed.
Align : alignment of the image.
Values:top,bottom,left,right,center
Border: border thickness in pixels.
Alt : alternative text for the users who use text based
browsers.
Hspace : horizontal white space around the image
Vspace : Vertical white space around the image
Hyperlinks
Ordered List
<ol> <li> </li></ol>: To create an ordered list.
Example:1,2,3…… a,b,c….I,II, III
Attributes:
Type: type of listing values(a,A,1,i,I)
Start: Initial value for the list.
Unordered List
<ul> <li> </li></ul>
Menu List
Menu list is same as unordered list the difference
lies in the fact that this list is used for HTML
identification, means <a > tag can be used with
this listing.
<menu>
<li> </li>
</menu>
Directory List
This tag is intented to display items like file,
directories in a row.
<dir> <li> </li></dir>
Defination List: This list item can be used as dictionary.
<dl>
<dt>
<dd>
<dt>
<dd>
<dl>
Table
Table tag is used to create table in HTML
document.
<table> </table>
Attributes:
Border: size of the border around the table.
Cellspacing: value in pixels, its space between
cells in table.
Cellpadding: value in pixels , its space between
celldata & cellwall.
Width: Width of the table
Height: Height of the table.
align: Horizontal Positioning of table in respect
of page, values: left, right , center
valign:vertical positioning of the table in
respect of page. Value: top, bottom
Bgcolor: background color of table.
Bordercolor: bordercolor of table.
Bordercolorlight: used in three dimesion table.
color in top & left
Bordercolordark: used in three dimesion table.
Color in bottom & right
Background: to display image as background of
table.
<caption> </caption>: specifies caption of table,
appears inside the table but outside rows or cells.
<th> </th>
<tr> </tr>
Attributes:
Align:
Valign:
Bgcolor:
Bordercolor:
Bordercolorlight:
Bordercolordark:
<td> </td>
Attributes:
Align:
Valign:
Width:
Height:
Colspan:No. of columns cell can span
Rowspan:No of rows cell can span
Bgcolor:
MailTo Tag
</select>
Style Tag
The <style> tag in HTML helps us to modify our
text, viewed in the page. This modification
includes changing font size, font family, font color
etc. Not only the texts but also we can change the
style of a body ar part of a page. Now let’s look at
various attributes of style and what else the tag
supports.
Syntax