# WEB

# Most common Tags

# <span style="font-weight:400;">DESCRIPTIONS</span>

## **DOCTYPE &amp; HTML TAGS**

- <span style="font-weight:400;">The opening tag for the element is placed right after the</span><span style="font-weight:400;"> &lt;!DOCTYPE&gt;</span><span style="font-weight:400;"> declaration at the beginning of the HTML document.</span>

- <span style="font-weight:400;">The </span><span style="font-weight:400;">&lt;html&gt; </span><span style="font-weight:400;">tags are used to define the root element of an HTML file. See the example below.</span>

*<span style="font-weight:400;">&lt;!DOCTYPE html&gt;</span>*

*<span style="font-weight:400;">&lt;html&gt;</span>*

*<span style="font-weight:400;">&lt;head&gt;</span>*

*<span style="font-weight:400;">&lt;title&gt;Your document title&lt;/title&gt;</span>*

*<span style="font-weight:400;">&lt;/head&gt;</span>*

*<span style="font-weight:400;">&lt;body&gt;</span>*

*<span style="font-weight:400;">  
</span><span style="font-weight:400;">&lt;h1&gt; Heading&lt;/h1&gt;</span>*

*<span style="font-weight:400;">&lt;p&gt;Paragraph content.&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/body&gt;</span>*

*<span style="font-weight:400;">&lt;/html&gt;</span>*

## **HEAD TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;head&gt;</span><span style="font-weight:400;"> element contains important information (metadata) of your web page document. This metadata is only visible to the browser and not to the end-user. See the example below.</span>

```html
<head>

  <meta charset="UTF-8">

  <meta name="keywords" content="Puerto Rican, Minimalism, Cartoons">

  <meta name="author" content="Michael Rivera-Cruz">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

</head>
```

## **BODY TAGS**

- <span style="font-weight:400;">HTML </span><span style="font-weight:400;">&lt;body&gt;</span><span style="font-weight:400;"> element holds the content of your web pages. The </span><span style="font-weight:400;">&lt;body&gt;</span><span style="font-weight:400;"> element goes after </span><span style="font-weight:400;">&lt;html&gt;</span><span style="font-weight:400;"> element. See example below.</span>

```html
<html>

<head>



<title>Your document title</title>



</head>

<body>

  <h1>Hello World</h1>

  <p>This is my awesome website.</p>

</body>

</html>
```

## **STYLE TAGS**

- <span style="font-weight:400;">Used within </span><span style="font-weight:400;">&lt;head&gt;</span><span style="font-weight:400;"> or </span><span style="font-weight:400;">&lt;body&gt;</span><span style="font-weight:400;">, HTML style tags define internal styling for elements. This styling information contains CSS. See the example in the head area.</span>

```html


<html>

<head>



<title>Your document title</title>

<style>



/* This is internal styling */

h1 {

    color: black;

}



p {

    color: red;

}



</style>



</head>

<body>



<h1> Heading</h1>

<p>Paragraph content.</p>



</body>

</html>
```

## **SCRIPT TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;script&gt; </span><span style="font-weight:400;">element is used to insert executable code or data; usually, this is used to insert or refer to JavaScript code. See the examples below.</span>

```html


<html>

<head>



<title>Your document title</title>



<script src="javascript.js"></script>



</head>



<!-- Generated by the server to execute data -->

<script id="data" type="application/json">{"userId":1234,"userName":"John Doe","memberSince":"2000-01-01T00:00:00.000Z"}</script>



<!-- Static -->

<script>

  const userInfo = JSON.parse(document.getElementById("data").text);

  console.log("User information: %o", userInfo);

</script>
```

## **HEADER TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;header&gt;</span><span style="font-weight:400;"> may include a title, a brand logo, or information about the website. See the example below.</span>

```html


<html>

<head>



<title>Your document title</title>



</head>

<body>



<header>

<img src="logo.png" alt="My awesome website logo" >

    <h1>Welcome to my awesome website</h1>

    <p>Paragraph content.</p>

  </header>



<h2> Sub-heading</h2>

<p>Paragraph content.</p>



</body>

</html>
```

## **MAIN TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;main&gt;</span><span style="font-weight:400;"> tag represents the primary (main) content of your website page document or web application. You can only use &lt;main&gt; once. See the example below.</span>

```html


<html>

<head>



<title>Your document title</title>



</head>

<body>



<header>

<img src="logo.png" alt="My awesome website logo" >

    <h1>Welcome to my awesome website</h1>

    <p>Paragraph content.</p>

  </header>



<main>

<h2> Sub-heading</h2>

<p>Paragraph content.</p>

</main>



</body>

</html>
```

## **SECTION TAGS**

- <span style="font-weight:400;">Within a web page, HTML </span><span style="font-weight:400;">&lt;section&gt;</span><span style="font-weight:400;"> tags are use to structure content. Also, you can use as many </span><span style="font-weight:400;">&lt;section&gt; </span><span style="font-weight:400;">tags within your website page. See the example below.</span>

*<span style="font-weight:400;">&lt;!DOCTYPE html&gt;</span>*

*<span style="font-weight:400;">&lt;html&gt;</span>*

*<span style="font-weight:400;">&lt;head&gt;</span>*

*<span style="font-weight:400;">&lt;title&gt;Your document title&lt;/title&gt;</span>*

*<span style="font-weight:400;">&lt;/head&gt;</span>*

*<span style="font-weight:400;">&lt;body&gt;</span>*

*<span style="font-weight:400;">&lt;header&gt;</span>*

*<span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span>*

*<span style="font-weight:400;"> &lt;h1&gt;Welcome to my awesome website&lt;/h1&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Paragraph content.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;/header&gt;</span>*

*<span style="font-weight:400;">&lt;main&gt;</span>*

*<span style="font-weight:400;">&lt;section&gt;</span>*

*<span style="font-weight:400;"> &lt;h2&gt;Section Heading&lt;/h2&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;The section tag can contain any elements.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;img src="image.png" alt="Image example"&gt;</span>*

*<span style="font-weight:400;">&lt;/section&gt;</span>*

*<span style="font-weight:400;">&lt;/main&gt;</span>*

*<span style="font-weight:400;">&lt;/body&gt;</span>*

*<span style="font-weight:400;">&lt;/html&gt;</span>*

## **ASIDE TAGS**

- <span style="font-weight:400;">HTML </span><span style="font-weight:400;">&lt;aside&gt;</span><span style="font-weight:400;"> contains information that is not directly related to a web page's principal purpose or idea. </span><span style="font-weight:400;">In HTML </span><span style="font-weight:400;">&lt;aside&gt;</span><span style="font-weight:400;">, details of the author, definitions, related information, ads, etc. can be included. See the example below.</span>

*<span style="font-weight:400;">&lt;!DOCTYPE html&gt;</span>*

*<span style="font-weight:400;">&lt;html&gt;</span>*

*<span style="font-weight:400;">&lt;head&gt;</span>*

*<span style="font-weight:400;">&lt;title&gt;Your document title&lt;/title&gt;</span>*

*<span style="font-weight:400;">&lt;/head&gt;</span>*

*<span style="font-weight:400;">&lt;body&gt;</span>*

*<span style="font-weight:400;">&lt;header&gt;</span>*

*<span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span>*

*<span style="font-weight:400;"> &lt;h1&gt;Welcome to my awesome website&lt;/h1&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Paragraph content.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;/header&gt;</span>*

*<span style="font-weight:400;">&lt;main&gt;</span>*

*<span style="font-weight:400;">&lt;section&gt;</span>*

*<span style="font-weight:400;"> &lt;h2&gt;Section Heading&lt;/h2&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;The section tag can contain any elements.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;img src="image.png" alt="Image example"&gt;</span>*

*<span style="font-weight:400;">&lt;/section&gt;</span>*

*<span style="font-weight:400;">&lt;aside&gt;</span>*

*<span style="font-weight:400;"> &lt;h3&gt;Usefull ideas&lt;/h3&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Ideas are...&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/aside&gt;</span>*

*<span style="font-weight:400;">&lt;/main&gt;</span>*

*<span style="font-weight:400;">&lt;/body&gt;</span>*

*<span style="font-weight:400;">&lt;/html&gt;</span>*

## **ARTICLE TAGS**

- <span style="font-weight:400;">The </span><span style="font-weight:400;">&lt;article&gt; </span><span style="font-weight:400;">tags can hold blog entries, news articles, comments, etc. See the example below.</span>

*<span style="font-weight:400;">&lt;!DOCTYPE html&gt;</span>*

*<span style="font-weight:400;">&lt;html&gt;</span>*

*<span style="font-weight:400;">&lt;head&gt;</span>*

*<span style="font-weight:400;">&lt;title&gt;Your document title&lt;/title&gt;</span>*

*<span style="font-weight:400;">&lt;/head&gt;</span>*

*<span style="font-weight:400;">&lt;body&gt;</span>*

*<span style="font-weight:400;">&lt;header&gt;</span>*

*<span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span>*

*<span style="font-weight:400;"> &lt;h1&gt;Welcome to my awesome website&lt;/h1&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Paragraph content.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;/header&gt;</span>*

*<span style="font-weight:400;">&lt;main&gt;</span>*

*<span style="font-weight:400;">&lt;section&gt;</span>*

*<span style="font-weight:400;"> &lt;h2&gt;Section Heading&lt;/h2&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;The section tag can contain any elements.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;img src="image.png" alt="Image example"&gt;</span>*

*<span style="font-weight:400;">&lt;/section&gt;</span>*

*<span style="font-weight:400;">&lt;aside&gt;</span>*

*<span style="font-weight:400;"> &lt;h3&gt;Usefull ideas&lt;/h3&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Ideas are...&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/aside&gt;</span>*

*<span style="font-weight:400;">&lt;article&gt;</span>*

*<span style="font-weight:400;"> &lt;h3&gt;Interesting Fact&lt;/h3&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Most facts on the Internet are interesting.&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/article&gt;</span>*

*<span style="font-weight:400;">&lt;/main&gt;</span>*

*<span style="font-weight:400;">&lt;/body&gt;</span>*

*<span style="font-weight:400;">&lt;/html&gt;</span>*

## **FOOTER TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;footer&gt;</span><span style="font-weight:400;"> tags leave a footer for its nearest content or root item to the segment. Also, it is used inside individual blocks in a website document (apart from the website document's main footer content).</span>

*<span style="font-weight:400;">&lt;!DOCTYPE html&gt;</span>*

*<span style="font-weight:400;">&lt;html&gt;</span>*

*<span style="font-weight:400;">&lt;head&gt;</span>*

*<span style="font-weight:400;">&lt;title&gt;Your document title&lt;/title&gt;</span>*

*<span style="font-weight:400;">&lt;/head&gt;</span>*

*<span style="font-weight:400;">&lt;body&gt;</span>*

*<span style="font-weight:400;">&lt;header&gt;</span>*

*<span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span>*

*<span style="font-weight:400;"> &lt;h1&gt;Welcome to my awesome website&lt;/h1&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Paragraph content.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;/header&gt;</span>*

*<span style="font-weight:400;">&lt;main&gt;</span>*

*<span style="font-weight:400;">&lt;section&gt;</span>*

*<span style="font-weight:400;"> &lt;h2&gt;Section Heading&lt;/h2&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;The section tag can contain any elements.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;img src="image.png" alt="Image example"&gt;</span>*

*<span style="font-weight:400;">&lt;/section&gt;</span>*

*<span style="font-weight:400;">&lt;aside&gt;</span>*

*<span style="font-weight:400;"> &lt;h3&gt;Usefull ideas&lt;/h3&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Ideas are...&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/aside&gt;</span>*

*<span style="font-weight:400;">&lt;/main&gt;</span>*

*<span style="font-weight:400;">&lt;footer&gt;</span>*

*<span style="font-weight:400;"> &lt;address&gt;</span>*

*<span style="font-weight:400;"> Postal Address: No. 37, Street, City, NZ.</span>*

*<span style="font-weight:400;"> &lt;/address&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;My Awesome Website, Copyright © 2020 All rights reserved.&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/footer&gt;</span>*

*<span style="font-weight:400;">&lt;/body&gt;</span>*

*<span style="font-weight:400;">&lt;/html&gt;</span>*

## **NAV TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;nav&gt;</span><span style="font-weight:400;"> element defines a block of navigational links leading to the main sections of a website.</span>

*<span style="font-weight:400;">&lt;!DOCTYPE html&gt;</span>*

*<span style="font-weight:400;">&lt;html&gt;</span>*

*<span style="font-weight:400;">&lt;head&gt;</span>*

*<span style="font-weight:400;">&lt;title&gt;Your document title&lt;/title&gt;</span>*

*<span style="font-weight:400;">&lt;/head&gt;</span>*

*<span style="font-weight:400;">&lt;body&gt;</span>*

*<span style="font-weight:400;">&lt;header&gt;</span>*

*<span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span>*

*<span style="font-weight:400;"> &lt;h1&gt;Welcome to my awesome website&lt;/h1&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Paragraph content.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;/header&gt;</span>*

*<span style="font-weight:400;">&lt;nav&gt;</span>*

*<span style="font-weight:400;"> &lt;ul&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;&lt;a href="#"&gt;HOME&lt;/a&gt;&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;&lt;a href="#"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;&lt;a href="#"&gt;SERVICES&lt;/a&gt;&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;&lt;a href="#"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;/ul&gt;</span>*

*<span style="font-weight:400;">&lt;/nav&gt;</span>*

*<span style="font-weight:400;">&lt;main&gt;</span>*

*<span style="font-weight:400;">&lt;section&gt;</span>*

*<span style="font-weight:400;"> &lt;h2&gt;Section Heading&lt;/h2&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;The section tag can contain any elements.&lt;/p&gt;</span>*

*<span style="font-weight:400;"> &lt;img src="image.png" alt="Image example"&gt;</span>*

*<span style="font-weight:400;">&lt;/section&gt;</span>*

*<span style="font-weight:400;">&lt;aside&gt;</span>*

*<span style="font-weight:400;"> &lt;h3&gt;Usefull ideas&lt;/h3&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;Ideas are...&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/aside&gt;</span>*

*<span style="font-weight:400;">&lt;/main&gt;</span>*

*<span style="font-weight:400;">&lt;footer&gt;</span>*

*<span style="font-weight:400;"> &lt;address&gt;</span>*

*<span style="font-weight:400;"> Postal Address: No. 37, Street, City, NZ.</span>*

*<span style="font-weight:400;"> &lt;/address&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;My Awesome Website, Copyright © 2020 All rights reserved.&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/footer&gt;</span>*

*<span style="font-weight:400;">&lt;/body&gt;</span>*

*<span style="font-weight:400;">&lt;/html&gt;</span>*

## **IMAGE TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;img&gt;</span><span style="font-weight:400;"> tag defines an image in an HTML page. To link an image to another document, use the </span><span style="font-weight:400;">&lt;img&gt;</span><span style="font-weight:400;"> inside </span><span style="font-weight:400;">&lt;a&gt;</span><span style="font-weight:400;"> tags. See the example below.</span>

*<span style="font-weight:400;">&lt;a href="#"&gt;</span><span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span><span style="font-weight:400;">&lt;/a&gt;</span>*

## **ANCHOR TAGS**

- <span style="font-weight:400;">The </span><span style="font-weight:400;">&lt;a&gt; </span><span style="font-weight:400;">HTML element links a page within the website or an image to a document, and another website page. See the examples below.</span>

*<span style="font-weight:400;">&lt;a href="#"&gt;</span><span style="font-weight:400;">HOME</span><span style="font-weight:400;">&lt;/a&gt;</span>*

*<span style="font-weight:400;">&lt;a href="#"&gt;</span><span style="font-weight:400;">&lt;img src="logo.png" alt="My awesome website logo" &gt;</span><span style="font-weight:400;">&lt;/a&gt;</span>*

*<span style="font-weight:400;">&lt;a href="</span>*[*<span style="font-weight:400;">https://www.yoobee.ac.nz</span>*](https://www.yoobee.ac.nz)*<span style="font-weight:400;">"&gt;</span><span style="font-weight:400;">YOOBEE COLLEGES</span><span style="font-weight:400;">&lt;/a&gt;</span>*

## **DIV TAGS**

- <span style="font-weight:400;">HTML </span><span style="font-weight:400;">&lt;div&gt;</span><span style="font-weight:400;"> element is for content division. It organizes content and simplifies the process of styling information with attributes and CSS. See the example below.</span>

*<span style="font-weight:400;">&lt;div </span><span style="font-weight:600;">style="background-color: #333; color: white; padding: 10px;</span><span style="font-weight:400;">"</span><span style="font-weight:400;">&gt;</span>*

*<span style="font-weight:400;"> &lt;h3&gt;This header is colour with CSS styles&lt;/h3&gt;</span>*

*<span style="font-weight:400;"> &lt;p&gt;This paragraph is colour with CSS styles&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/div&gt;</span>*

## **HEADING TAGS**

- <span style="font-weight:400;">The HTML defines headings in a web document by using the six HTML heading elements from </span><span style="font-weight:400;">&lt;h1&gt;</span><span style="font-weight:400;"> to </span><span style="font-weight:400;">&lt;h6&gt;</span><span style="font-weight:400;">.</span>

*<span style="font-weight:400;">&lt;h1&gt;</span><span style="font-weight:400;">Heading text</span><span style="font-weight:400;">&lt;/h1&gt;</span>*

*<span style="font-weight:400;">&lt;h2&gt;</span><span style="font-weight:400;">Heading text</span><span style="font-weight:400;">&lt;/h2&gt;</span>*

*<span style="font-weight:400;">&lt;h3&gt;</span><span style="font-weight:400;">Heading text</span><span style="font-weight:400;">&lt;/h3&gt;</span>*

*<span style="font-weight:400;">&lt;h4&gt;</span><span style="font-weight:400;">Heading text</span><span style="font-weight:400;">&lt;/h4&gt;</span>*

*<span style="font-weight:400;">&lt;h5&gt;</span><span style="font-weight:400;">Heading text</span><span style="font-weight:400;">&lt;/h5&gt;</span>*

*<span style="font-weight:400;">&lt;h6&gt;</span><span style="font-weight:400;">Heading text</span><span style="font-weight:400;">&lt;/h6&gt;</span>*

## **PARAGRAPH TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;p&gt;</span><span style="font-weight:400;"> tag specifies the beginning of a paragraph.</span>

*<span style="font-weight:400;">&lt;p&gt;</span><span style="font-weight:400;">Paragraph content.</span><span style="font-weight:400;">&lt;/p&gt;</span>*

## **BOLD TAGS**

- <span style="font-weight:400;">The element </span><span style="font-weight:400;">&lt;b&gt; </span><span style="font-weight:400;">converts standard text into a bold text in HTML without adding special significance. See the example below.</span>

*<span style="font-weight:400;">&lt;p&gt;Normal text or </span><span style="font-weight:400;">&lt;b&gt;</span><span style="font-weight:400;">text in bold</span><span style="font-weight:400;">&lt;/b&gt;</span><span style="font-weight:400;">.</span><span style="font-weight:400;">&lt;/p&gt;</span>*

## **EM TAGS**

- <span style="font-weight:400;">HTML </span><span style="font-weight:400;">&lt;em&gt;</span><span style="font-weight:400;"> feature responds to the HTML query of how to italicize. Also, you can use </span><span style="font-weight:400;">&lt;i&gt; </span><span style="font-weight:400;">to italicize too. See the example below. </span>

*<span style="font-weight:400;">&lt;h2&gt;My</span>* *<span style="font-weight:400;">&lt;em&gt;</span><span style="font-weight:400;">awesome</span><span style="font-weight:400;">&lt;/em&gt;</span><span style="font-weight:400;">website&lt;/h2&gt;</span>*

*<span style="font-weight:400;">&lt;h2&gt;My</span>* *<span style="font-weight:400;">&lt;i&gt;</span><span style="font-weight:400;">awesome</span><span style="font-weight:400;">&lt;/i&gt;</span><span style="font-weight:400;">website&lt;/h2&gt;</span>*

## **FIGURE TAGS**

- <span style="font-weight:400;">The </span><span style="font-weight:400;">&lt;figure&gt;</span><span style="font-weight:400;"> element usually represents images, diagrams, and illustrations. See the example below.</span>

*<span style="font-weight:400;">&lt;figure&gt;</span>*

*<span style="font-weight:400;"> &lt;figcaption&gt;My awesome website logo&lt;/figcaption&gt;</span>*

*<span style="font-weight:400;"> &lt;img src="logo-image.png" alt="Logo"&gt;</span>*

*<span style="font-weight:400;">&lt;/figure&gt;</span>*

## **HORIZONTAL LINE TAGS**

- <span style="font-weight:400;">This element creates a horizontal line, making a division within the content. The HTML </span><span style="font-weight:400;">&lt;hr&gt;</span><span style="font-weight:400;"> tag has no closing tag since it does not contain any content. See the example below.</span>

*<span style="font-weight:400;">&lt;p&gt;Paragraph content&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;hr&gt;</span>*

*<span style="font-weight:400;">&lt;h2&gt;Heading&lt;/h2&gt;</span>*

*<span style="font-weight:400;">&lt;p&gt;Paragraph content&lt;/p&gt;</span>*

## **FORM TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;form&gt;</span><span style="font-weight:400;"> tag groups elements and sends their data to a web server. See the search form example below.</span>

*<span style="font-weight:400;">&lt;form</span><span style="font-weight:400;"> action="search" method="GET"&gt;</span>*

*<span style="font-weight:400;"> Search Term: &lt;input type="text" name="search\_query"&gt;</span>*

*<span style="font-weight:400;"> &lt;input type="submit" value="Search"&gt;</span>*

*<span style="font-weight:400;">&lt;/form&gt;</span>*

## **AUDIO TAGS**

- <span style="font-weight:400;">The item HTML </span><span style="font-weight:400;">&lt;audio&gt;</span><span style="font-weight:400;"> embeds sound content into a page of the website. See the example below.</span>

*<span style="font-weight:400;">&lt;audio</span><span style="font-weight:400;"> controls&gt;</span>*

*<span style="font-weight:400;">&lt;source src="sound.mp3" type="audio/mpeg""&gt;</span>*

*<span style="font-weight:400;">&lt;p&gt;If audio does not start, the &lt;audio&gt; HTML element is not supported in your browser.&lt;/p&gt;</span>*

*<span style="font-weight:400;">&lt;/audio&gt;</span>*

## **VIDEO TAGS**

- <span style="font-weight:400;">The HTML </span><span style="font-weight:400;">&lt;video&gt;</span><span style="font-weight:400;"> tag adds a video on the web page. See the example below.</span>

*<span style="font-weight:400;">&lt;video </span><span style="font-weight:400;">controls width="400" height="300"&gt;</span>*

*<span style="font-weight:400;"> &lt;source src="video-example.mp4" type="video/mp4"&gt;</span>*

*<span style="font-weight:400;"> &lt;source src="video-sample.webm" type="video/webm"&gt;</span>*

*<span style="font-weight:400;"> &lt;source src="video-demo.ogg" type="video/ogg"&gt;</span>*

*<span style="font-weight:400;"> Video tag is not supported in this browser.</span>*

*<span style="font-weight:400;">&lt;/video&gt;</span>*

## **STRONG TAGS**

- <span style="font-weight:400;">The </span><span style="font-weight:400;">&lt;strong&gt;</span><span style="font-weight:400;"> HTML tags in an HTML page emphasize important information. See the example below.</span>

*<span style="font-weight:400;">&lt;p&gt;My </span><span style="font-weight:400;">&lt;strong&gt;</span><span style="font-weight:400;">awesome</span><span style="font-weight:400;">&lt;/strong&gt;</span><span style="font-weight:400;"> website.&lt;/p&gt;</span>*

## **UNDERLINES TAGS**

- <span style="font-weight:400;">By using the </span><span style="font-weight:400;">&lt;u&gt;</span><span style="font-weight:400;"> tag, its content receives a simple solid underline in HTML. See the example below.</span>

*<span style="font-weight:400;">&lt;p&gt;My </span><span style="font-weight:400;">&lt;u&gt;</span><span style="font-weight:400;">awesome</span><span style="font-weight:400;">&lt;/u&gt;</span><span style="font-weight:400;"> website.&lt;/p&gt;</span>*

## **LINK TAGS**

- <span style="font-weight:400;">By using the HTML </span><span style="font-weight:400;">&lt;link&gt;</span><span style="font-weight:400;"> tag, you can set a link between a document and an external resource. Unlike the &lt;a&gt; tag that is written in the &lt;body&gt; section, the &lt;link&gt; must be placed in the HTML &lt;head&gt; tag. See the example below.</span>

*<span style="font-weight:400;">&lt;head&gt;</span><span style="font-weight:400;">  
</span><span style="font-weight:400;">&lt;link </span><span style="font-weight:400;">rel="stylesheet" type="text/css" href="css/styles.css"</span><span style="font-weight:400;">&gt;</span><span style="font-weight:400;">  
</span><span style="font-weight:400;">&lt;/head&gt;</span>*

## **ORDERED LIST TAGS**

- <span style="font-weight:400;">Using </span><span style="font-weight:400;">&lt;ol&gt; </span><span style="font-weight:400;">tags, you can create HTML ordered lists of items. See the example below.</span>

*<span style="font-weight:400;">&lt;ol&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Action&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Adventure&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Comedy&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Thriller&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Sci-Fi&lt;/li&gt;</span>*

*<span style="font-weight:400;">&lt;/ol&gt;</span>*

## **UNORDERED LIST TAGS**

- <span style="font-weight:400;">The </span><span style="font-weight:400;">&lt;ul&gt;</span><span style="font-weight:400;"> tag creates an unordered list of items. See the example below.</span>

*<span style="font-weight:400;">&lt;ul&gt;</span>*

*<span style="font-weight:400;"> </span><span style="font-weight:400;"> &lt;li&gt;First item&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Second item&lt;/li&gt;</span>*

*<span style="font-weight:400;"> &lt;li&gt;Third item&lt;/li&gt;</span>*

*<span style="font-weight:400;">&lt;/ul&gt;</span>*

##   
USEFUL LINKS:** 

- [<span style="font-weight:300;">https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5</span>](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5)
- [<span style="font-weight:300;">https://developer.mozilla.org/en-US/docs/Learn/Front-end\_web\_developer</span>](https://developer.mozilla.org/en-US/docs/Learn/Front-end_web_developer)
- [<span style="font-weight:300;">https://www.w3docs.com/snippets/html/html5-page-structure.html</span>](https://www.w3docs.com/snippets/html/html5-page-structure.html)
- [<span style="font-weight:300;">https://www.semrush.com/blog/semantic-html5-guide/</span>](https://www.semrush.com/blog/semantic-html5-guide/)<span style="font-weight:300;"> </span>
- [<span style="font-weight:300;">https://css-tricks.com/how-to-section-your-html/</span>](https://css-tricks.com/how-to-section-your-html/)<span style="font-weight:300;"> </span>
- <span style="font-weight:300;">CSS CheatSheet, </span>[<span style="font-weight:300;">https://htmlcheatsheet.com/css/</span>](https://htmlcheatsheet.com/css/)
- <span style="font-weight:300;">CSS reference, </span>[<span style="font-weight:300;">https://cssreference.io/</span>](https://cssreference.io/)

</body></html>