Commonly Used HTML Tags
6 Questions
2 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of the img tag in HTML?

  • To display an image on a web page (correct)
  • To define a paragraph of text
  • To define headings on a web page
  • To create a hyperlink to another web page
  • Which tag is used to define headings on a web page in HTML?

  • a
  • img
  • h1 - h6 (correct)
  • p
  • What is the purpose of the a tag in HTML?

  • To define a paragraph of text
  • To create a hyperlink to another web page (correct)
  • To display an image on a web page
  • To define headings on a web page
  • Which tag is used to define a paragraph of text in HTML?

    <p>p</p> Signup and view all the answers

    What is the purpose of the ol tag in HTML?

    <p>To create an ordered list</p> Signup and view all the answers

    What is the purpose of the ul tag in HTML?

    <p>To create an unordered list</p> Signup and view all the answers

    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

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    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.

    More Like This

    HTML Tags Quiz
    3 questions

    HTML Tags Quiz

    CatchyForethought avatar
    CatchyForethought
    HTML Elements and Tags Quiz
    10 questions
    HTML 5 Fundamentals: Structure and Tags
    12 questions
    Use Quizgecko on...
    Browser
    Browser