Tuesday, 8 October 2013

Basic HTML Elements!

HTML documents are defined by HTML elements.
An HTML element is everything from the start tag to the end tag:
Start Tag: <HTML>
End Tag: </HTML>
HTML Example:

Write the following code in Notepad: 
<html>
<body>
<p>This is my first paragraph.</p>
</body>
</html>

The <html> element:
The <html> element defines the whole HTML document.
The element has a start tag <html> and an end tag </html>.
The <body> element:
The <body> element defines the body of the HTML document.
The element has a start tag <body> and an end tag </body>.
The <p> element:
The <p> element defines a paragraph in the HTML document.
The element has a start tag <p> and an end tag </p>.

No comments:

Post a Comment