# Html(elements)

In this blog, we are going to have a brief look at the HTML tags. We are not going to discuss each and every one of them but only the most used ones. So, let's get started...🚀

### Headings:

Headings are used to add titles or subtitles to content. It is denoted by &lt;h1&gt;&lt;/h1&gt;, &lt;h2&gt;&lt;/h2&gt; .....&lt;h5&gt;&lt;/h5&gt;.

```xml
<h1>My first heading</h1>
```

### Paragraphs:

A paragraph is denoted by &lt;p&gt;&lt;/p&gt; tags. A paragraph always starts on a new line.

```xml
<p>This is my first paragraph</p>
```

### Text formatting elements:

There are several elements for defining text with a special meaning.

```xml
<p>Hello this is my <strong>second</strong> paragraph</p>
<p>This is a <em>emphasiezed</em> text</p>
```

### Blockquote:

This is used for citation.

```xml
<blockquote cite="">
This is a demo quote
</blockquote>
```

### Links:

Links are denoted by &lt;a&gt;(anchor) tags. This tag has one href attribute which contains the destination web address after clicking the hyperlink.

```xml
<a href="">link</a>
```

### Comments:

Comments are used to explain code snippets or exclude a code block from execution. It is denoted by &lt;!-- --&gt;.

```xml
<!-- this part is excluded-->
```

### Images:

In Html, you can attach images using &lt;img&gt; tag. It uses src(the file path of the image) and alt(the alternate text for the image) attributes mostly.

```xml
<img src="che.jpg" alt="che">
```

### Tables:

Tables are used to add data in the form of rows and columns.

```xml
<table>
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>
```

### Lists:

In Html, we can add ordered lists (like cooking instructions) and unordered lists(like bullet points) using &lt;li&gt;&lt;/li&gt; tags enclosed within &lt;ol&gt;&lt;/ol&gt; or &lt;ul&gt;&lt;/ul&gt; tag.

```xml
<ul>
  <li>list 1</li>
  <li>list 2</li>
</ul>
```

### Iframes:

Iframes are used to display a webpage within a webpage.

```xml
<iframe src="" title="description"></iframe>
```

For the actual demonstration, you can visit my [GitHub repo](https://github.com/barun10/fsjs2.0-barun-/tree/main/Html%20files).
