Forex Trading

Tuesday, May 26, 2009

Nested HTML Elements

Most HTML elements can be nested (can contain other HTML elements).
HTML documents consist of nested HTML elements.
HTML Document Example

<html>


<body>

<p>This is my first paragraph</p>

</body>


</html>




The example above contains 3 HTML elements.
Example Explained
The <p> element:

<p>This is my first paragraph</p>
The <p> element defines a paragraph in the HTML document
The element has a start tag <p> and an end tag </p>The element content is: This is my first paragraph
The <body>element:
<body>

<p>This is my first paragraph</p>

</body>
The <body> element defines the body of the HTML document

The element has a start tag <body> and an end tag </body>

The element content is another HTML element (a paragraph)

No comments:

Post a Comment