HTML
HTML Introduction
HTML Element
HTML Attributes
HTML Heading
HTML Paragraph
HTML Style
HTML Format
HTML Color
HTML Link
HTML Image
HTML Table
HTML List
HTML Symbols
HTML Emojis
HTML Forms
Elements of HTML
The HTML element is everything from the start tag to the end tag:
<tagname>Content goes here...</tagname>
Example is :
<h1>First Heading</h1>
Explaination:
The Starting tag is <h1>
The Element Content is First Heading
The End tag is </h1>
Nested Element of HTML
All HTML documents consist of nested HTML elements.
The following example contains four HTML elements like html, body, h1 and p tag
<!DOCTYPE html>
Explaination of Given
The following example contains four HTML elements like html, body, h1 and p tag
Example
<!DOCTYPE html>
<html>
<head>
<title>Example </title>
</head>
<body>
<h1> Heading</h1>
<p> Paragraph </h1>
</body>
</html>
- It has a start tag <html > and an end tag < /html >
- Then inside the <html > element there is a < body > element
- It has a start tag < body > and an end tag < /body >
- Then inside the < body > element there is a < h1 > and < p > element
- The <h1 > element defines a large heading
- The <p>element defines a paragraph