Text
Text
HTML (Hypertext Markup Language) tags are fundamental elements that structure and
define content within a web page. They consist of keywords enclosed in angle
brackets and come in pairs, forming an opening tag, content, and a closing tag.
Tags convey the semantics of the content, aiding browsers in rendering and
interpreting information accurately.
For instance, <p> tags denote paragraphs, <h1> to <h6> represent headings of
varying importance, and <a> signifies hyperlinks. Additionally, tags like <img>,
<input>, and <div> serve specific purposes such as embedding images, creating form
elements, and grouping content for styling, respectively.
Recommended Course
Generative AI Course
Python DSA Course
Devops Course
UI UX Course
Digital Marketing Course
Product Management Course
All HTML Tags with Examples
HTML, which stands for Hypertext Markup Language, utilises tags to organise content
on the internet. Below are key tags along with short examples:
The <p> and </p> represent HTML tags, and the term “Paragraph Tag” signifies the
HTML element, specifically the text displayed on the page. This tag arranges any
text positioned between the <p> opening tag and the </p> closing tag as a regular
paragraph or primary body text.
In this instance, <h2> and </h2> serve as the HTML tags, and the term “Heading Tag”
denotes the HTML element, specifically the heading visible on the page. Employing
this tag will style any text located between the <h2> opening tag and the </h2>
closing tag as a Heading 2, which is a type of subheading.
In this case, the <b> and </b> are HTML tags, and the “Bold Tag” is the HTML
element, which means the text on the page. This element makes the text between the
<b> opening tag and the </b> closing tag appear bold.
In this instance, the <i> and </i> represent HTML tags, and the “Italic Tag” is the
HTML element, referring to the on-page text. This tag is used to style the text
between the opening <i> tag and the closing </i> tag, making it appear in italic
format.
In this scenario, the <u> and </u> serve as HTML tags, and the “Underline Tag” is
the HTML element, denoting the on-page text. The purpose of this tag is to style
the text between the opening <u> tag and the closing </u> tag, rendering it in an
underlined format.
These tags form the foundation for building structured and visually appealing web
pages.
Also Read: How to Center Text & Headers in CSS Using the Text-Align Property