Saturday, October 9, 2010

Nested HTML Elements

Most HTML elements can be nested, all html documents consist of nested of HTML elements & tags.

please see below example for Nested HTML elements.


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

The example above contains 3 HTML elements.(html, body & p).

<p> defines for paragraph. The element has a start tag <p> and an end tag </p>. p elements content is This is my first paragraph. 

<body> defines body of the HTML document.

<html> defines above document in HTML.

No comments:

Post a Comment