Introduction to HTML

HTML, or HyperText Markup Language, is a markup language used to create the structure and content of web pages. It consists of a series of tags that surround content and provide formatting. Web pages written in HTML are interpreted by web browsers and displayed to the user.

HTML Tags

HTML tags are the fundamental building blocks of a web page. They start with an opening angle bracket < and end with a closing angle bracket >. Tags are used to define the structure and content of the page.

Example of a basic tag:

<p>This is a paragraph of text.</p>
Header Elements

Header elements (<h1>, <h2>, <h3>, <h4>, <h5>, <h6>) are used to define headers and subheaders in a web page. <h1> is the main header, and <h6> is the least important.

<h1>Main Header</h1> <h2>Subheader</h2>
Paragraphs and Line Breaks

Paragraphs are created with the <p> tag, and line breaks with the <br> tag.

<p>this is a paragraph.</p> <p>Another paragraph.</p> This is on a different line.<br>
Lists

HTML supports two types of lists: ordered lists (<ol>) and unordered lists (<ul>).

Ordered list:

<ol> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol>

Unordered list

<ul> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ul>
Images

Images are embedded in a web page using the <img>> tag. The src attribute specifies the image's path.

<img img src="image.jpg" alt="Image description">
Conclusion

HTML forms the foundation of most web pages. This documentation provides only a basic introduction to HTML and its essential elements. You can learn more about HTML by exploring online tutorials and resources and by practicing the creation of web pages.