Commonly Used HTML Tags

JovialDrama avatar
JovialDrama
·
·
Download

Start Quiz

Study Flashcards

6 Questions

What is the purpose of the img tag in HTML?

To display an image on a web page

Which tag is used to define headings on a web page in HTML?

h1 - h6

What is the purpose of the a tag in HTML?

To create a hyperlink to another web page

Which tag is used to define a paragraph of text in HTML?

p

What is the purpose of the ol tag in HTML?

To create an ordered list

What is the purpose of the ul tag in HTML?

To create an unordered list

Study Notes

HTML Tags

HTML, or Hypertext Markup Language, is the standard language for creating web pages. It uses a combination of tags and attributes to define the structure and content of a web page. In this article, we will explore some of the most commonly used HTML tags and what they are used for.

Heading Tags

There are six levels of heading tags in HTML, from <h1> (the most important) to <h6> (the least important). These tags are used to define the headings on a web page and are typically displayed in a larger font size than the surrounding text.

<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<h3>This is a Heading 3</h3>
<h4>This is a Heading 4</h4>
<h5>This is a Heading 5</h5>
<h6>This is a Heading 6</h6>

Paragraph Tags

The <p> tag is used to define a paragraph of text. It is typically displayed with a blank line before and after the text.

<p>This is a paragraph</p>

The <a> tag is used to create a hyperlink to another web page or website. It can be used to link to other pages on the same website or to external websites.

<a href="https://www.google.com">Visit Google</a>

Image Tags

The <img> tag is used to display an image on a web page. It requires the src attribute to specify the location of the image file.

<img src="image.jpg" alt="An image">

List Tags

There are two types of list tags in HTML: ordered lists (<ol>) and unordered lists (<ul>). Ordered lists are used when the items have a specific order, while unordered lists are used when the order does not matter.

<ol>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ol>

<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

Table Tags

The <table> tag is used to create a table on a web page. It requires the <tr> tag to define each row and the <td> tag to define each cell within

Explore the commonly used HTML tags such as heading tags, paragraph tags, link tags, image tags, list tags, and table tags. Learn how these tags are used to structure and present content on a web page.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser