HTML Basics Quiz
5 Questions
3 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 does the declaration do?

  • It defines the document type and version of HTML. (correct)
  • It creates a navigation menu for the site.
  • It adds a title to the web page.
  • It specifies the language of the document.
  • Which attribute is used to define the alternative text for an image?

  • alt (correct)
  • title
  • src
  • href
  • Which tag is used to embed an image in an HTML document?

  • photo
  • img (correct)
  • picture
  • mage
  • What is the purpose of the <form> tag?

    <p>To gather user input.</p> Signup and view all the answers

    Which tag is used for emphasizing text?

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

    Study Notes

    HTML Declaration and Functions

    • The declaration defines the document type and specifies the HTML version being used.
    • The declaration does not specify the document's language or add a title to the web page.
    • Hyperlinks are created using the <a> tag in HTML.
    • The href attribute within the <a> tag specifies the destination URL for the link.

    Ordered Lists in HTML

    • An ordered list is defined using the <ol> tag.
    • Each item within the ordered list is enclosed in the <li> tag for list items.

    Embedding Images

    • The <img> tag is used to embed an image in an HTML document.
    • Required attributes include src for the image source and alt for alternative text.

    Purpose of the <form> Tag

    • The <form> tag creates a section of a webpage to gather user input.
    • Forms can include various types of elements like text fields, checkboxes, and buttons.

    Adding Comments in HTML

    • Comments in HTML can be added using the syntax <!-- This is a comment -->.
    • Comments help developers annotate code without affecting the output.

    Emphasizing Text

    • Text can be emphasized in HTML using the <em> tag.
    • The <strong> tag can also be used for stronger emphasis.

    Understanding the <table> Tag

    • The <table> tag represents a table structure for displaying data.
    • It can contain rows defined by <tr>, and cells defined by <td> for standard data or <th> for headers.

    Alternative Text for Images

    • The alt attribute is used to provide alternative text for an image in the <img> tag.
    • This text improves accessibility for users who cannot view the image.

    Function of the <input> Tag in Forms

    • The <input> tag creates various types of user input fields, such as text boxes, checkboxes, or buttons.
    • The type attribute specifies the kind of input control created.

    Studying That Suits You

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

    Quiz Team

    Description

    Test your knowledge on HTML declarations, hyperlinks, ordered lists, image embedding, and forms with this quiz. Perfect for beginners looking to understand the foundations of HTML coding.

    More Like This

    HTML Basics Quiz
    8 questions

    HTML Basics Quiz

    FelicitousTrust3628 avatar
    FelicitousTrust3628
    Clean Backend Coding and HTML Basics
    39 questions

    Clean Backend Coding and HTML Basics

    CostEffectiveMulberryTree avatar
    CostEffectiveMulberryTree
    HTML Coding Exam
    10 questions

    HTML Coding Exam

    StainlessTurquoise854 avatar
    StainlessTurquoise854
    Use Quizgecko on...
    Browser
    Browser