Translate

Friday, May 2, 2014

4.Elements and Attributes

HTML Element is generally started by Tag (start tag) and ending with Tag Element close (closing tag). 
 what you want to display the text was written between Tag and Tag closed 
Examples Element <p>
1
2
3
4
5
6
7
<!DOCTYPE html>
<html>
<body>
    <p>This is my first paragraph.</p>
</body>
</html>
In HTML we can write elements in the elements
1
2
3
4
5
<b>
  <i>
     <u>This is Using Nested Tag in Tag</u>
  </i>
</b>
The above example we write Tag <u> Tag <i> Tag <i> <b>
Attributes 
• Attributes: is used for writing in addition to the Elements. 
• Attributes: usually written in the Tag of the Elements 
• Attributes: value (Value) each Attributes.
See the example below
1
<p align=”center”>This is using paragraph</p>

0 comments:

Post a Comment