HTML ELEMENTS

HTML ELEMENTS 

An HTML element is a type of HTML (HyperText Markup Language) document component, one of several types of HTML nodes (there are also text nodes, comment nodes and others).he first used version of HTML was written by Tim Berners-Lee in 1993 and there have since been many versions of HTML




All HTML documents consist of nested HTML elements.

The following example contains four HTML elements (<html>, <body>, <h1> and <p>)


<!DOCTYPE html>

 <html>

 <body>

 <h1>My First Heading</h1> 

<p>My first paragraph.</p> 

</body> 

</html>


The <html> element is the root element and it defines the whole HTML document.

 It has a start tag <html> and an end tag </html>. 

Then, inside the <html> element there is a <body> element:



The <body> element defines the document's body. 

It has a start tag <body> and an end tag </body>. 

Then, inside the <body> element there are two other elements: <h1> and <p>

No comments:

Post a Comment

How To Use Audio In Html

 How To Use Audio In Html  Friends, if you want to put a  <audio>  in html, then you have to use the audio tag. Some examples are giv...