Searching...
Saturday, 22 September 2012

Html Attributes

9:57 pm

Html attributes 

Html attributes 

1.       Html elements can have attributes.
2.       Attributes provide additional information about the element.
3.       Attributes always specify in the start tag.
4.       Attributes comes in name/value pairs like.
Name = “value”
Html comments starts with   <--  and ends with -->
5.       Html headings are defined with the <h1> to <h6> tags.
6.       Html paragraphs are defined with <p> tag.
7.       Html links are defined with <a> tag.
<html>
<head>
<title> --::INDIA::--</title>
<meta http-equiv = “refresh” content=”6sec; url=one.php”>
</head>
<body style =”background-color:cyan”>
<h1 style = “text-align:center; color:red;background-color:yellow”>India</h1>
<h2 align=”center”>INDIA</h2>
<p style =”font-family:verdana ; font-size:18px; text-height:2; text-align:justify”>
…………………………………………………………………………………………………………………………..
…………………………………………………………………………………………………………………</p>
</body>
</html>

Text formatting tags :

<b>  : bold text
<big>  : big text
<em>  : emphasized text
<i>  : italic
<small>  : small text
<strong> :  strong text
<sub>  : subscripted text
<sup>  : superscripted text
<ins >  : inserted text
<del> : deleted text
Eg:       <html>
           <body>
              <b>india</b>
              <i> india</i>
              <ins> india</ins>
            <del> india</del>
           <h1> H<sub>2</sub>o</h1>
</body>
</html>

Computer output tags :

<code>   :  computer code text
<kbd>    : keyboard text
<samp>  : sample computer code
<tt>   : teletype text
<var>  : a variable
<pre>   preformatted text.

0 comments:

Post a Comment

01 03 06 02 03a 04 05 7 8 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Click to see the code!
To insert emoticon you must added at least one space before the code.