Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

HTML Elements are meant up of start and end tag with content written in between.

<Tagname>——content——-</Tagname>

Everything in HTML starts with the start tag and ends with end tag with a forward slash.

Example:

<p>This is the paragraph tag </p>

<h1> This is the heading tag</h1>

<br> This is break tag and do not have end tag.

<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Explanation: 

<html> defines document type of the file.

<body> starts and ends with </body> which has two elements <h1> & <p>.

here <h1> tag is heading tag and <p> is paragraph tag

Do not forget to end the tag </html> ends html document.

Note: HTML is not case sensitive, you can write code in upper and lower case both.

overall we have tried to use lower case for code.

2 thoughts on “HTML Elements

Comments are closed.