# Learn Web Dev

HTML:-

An HTML document consists of two basic building blocks: 1. Tags 2. Attribute

Tags:- Tags are part of HTML. Text that appears on web browsers is all written within a tag. You have to use HTML tags for creating an HTML document.

Example of tags:

&lt;html&gt; &lt;/html&gt;

&lt;body&gt; &lt;/body&gt;

&lt;img&gt; &lt;/img&gt;

&lt;p&gt; &lt;/p&gt;

&lt;h1&gt; &lt;/h1&gt;

Every HTML tag has its closing tag except some self-closing tags.

Some self-closing HTML tags:

&lt;img&gt; , &lt;br&gt; , &lt;hr&gt; etc.
