HTML Document
All HTML documents and websites are started with the doctype HTML tag. This HTML tag help the browser to understand that this is a hTML website.
Note - This tag is not case sensitive.
<!DOCTYPE html>
<html>
<head> </head>
<body> </body>
</html>
This tag does not have an ending tag and only used once in a website or webpage.
Headings
In HTML5 the headings are defined with <h1>, <h2> till <h6>. Each tag have a different height, font and display properties where <h1> is defined as the most important heading with the largest font size and <h6> is defined as the least important and the smallest heading font size. Each of them is used to tell Browser which heading is important and which is not.
<!DOCTYPE html>
<html>
<body>
<h1>This is heading h1</h1>
<h2>This is heading h2</h2>
<h3>This is heading h3</h3>
<h4>This is heading h4</h4>
<h5>This is heading h5</h5>
<h6>This is heading h6</h6>
</body>
</html>
Output
Paragraphs
In HTML5 the paragraph are defined with <p> and </p>. All the text between the stats will be considered as the paragraph. For example
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<p>Guidater is a website which provide the best HTML blogs.</p>
</body>
</html>
Output
HTML links
<a> is used to define link in HTML5. With the help of which tag you can create a link on text, video and image.
<!DOCTYPE html>
<html>
<body>
<a href="https://guidater.blogspot.com">Guidater</a>
</body>
</html>
Href is used to define the web address that you want to link to your content.
Output
HTML Image
With the help of HTML5 you can embed an image into your web page by giving its source in an <img> tag. You can also define the weight and the height of the image by simply giving the values in pixels. For example:
<img src="html.jpg" alt="HTML" width="104" height="142">
Note - The ALT tag is used to define what all the image is about. It help me search engine to read the image and also help disable people to understand it. If the image does not display due to incompatibility off the device is alt text will be shown instead of image.