The <!DOCTYPE> Declaration

The <!DOCTYPE html> declaration defines the document type and version of HTML. For HTML5, it is simply:

<!DOCTYPE html>

HTML Headings

Headings are important for the semantic structure of web pages. They range from <h1> to <h6>:

<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<h3>This is a Heading 3</h3>

HTML Paragraphs

Paragraphs are defined with the <p> tag. This is how a paragraph of text appears on a webpage.

<p>This is a paragraph of text. Here, you can see how text appears in block format within a webpage.</p>

HTML Links

Links are created with the <a> tag. The href attribute holds the URL we link to:

<a href="https://www.example.com">This is a link to example.com</a>

HTML Images

Images are inserted using the <img> tag. The src attribute points to the image URL, and the alt attribute provides alternative text.

<img src="image.jpg" alt="Description of the image"<