Sitemap
2 min readApr 16, 2024

--

HTML Tags

Tags are like labels that help to make a web page look neat. They help define different elements such as headings, paragraphs, lists, images, and links. All of this helps to make the content of a website look well-organized and easy to read.

Some of the tags used in HTML, like “<h1>”, “<p>”, and “<nav>”, help search engines and screen readers understand what our content is all about. They give context and significance to the content.

Some of the tags we use in HTML, like “<h1>”, “<p>”, and “<nav>”, help search engines and screen readers understand what our content is all about. They give context and significance to the content.

Tags such as “<form>” and “<button>” make web pages interactive. Users can submit forms or trigger actions by clicking on these tags.

You can embed external stuff like images, videos, and web pages into your web page by using tags like “<img>” and “<iframe>”.

It is essential to use HTML tags to create search engine-friendly (SEO), well-structured, and accessible web content. Tags can help web developers present content clearly and meaningfully, enhancing user experience and improving website performance.

Angle brackets surround HTML tags and typically come in pairs — an opening tag and a closing tag.

Get FO-Ria’s stories in your inbox

Join Medium for free to get updates from this writer.

HTML’s opening tag indicates the beginning of an element, which is formatted as follows: HTML’s opening tag indicates the beginning of an element, which is formatted as follows: <element name>

The closing tag is used to indicate the end of the HTML element, and it takes the following form: </element name> The closing tag is identical to the opening tag, but it has a forward slash (“/”) before the element name.

For example, the “<h1>” tag defines a web page’s main heading. The opening “<h1>” tag indicates the start of the heading, and the closing “</h1>” tag means the end of the heading h1.

For example:

<h1> Tags in HTML</h1>

In this example, the content between the “<h1>” and “</h1>” tags will be displayed as the main heading on the web page.

HTML needs elements to be structured and nested properly, making opening and closing tags necessary. Web browsers must be able to correctly interpret and render the content of a web page to maintain the intended hierarchy and layout, otherwise, the user will have a difficult time assessing and understanding the website.

Kindly share your experiences in the comments below. Remember to have fun and keep coding — who knows where it might lead you!

Thank you for reading.

--

--

FO-Ria
FO-Ria

Written by FO-Ria

0 followers

Tech and other in betweens, Follow me on this journey!