HTML Basics Quiz
12 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

tag in HTML?

  • To define a link
  • To define a paragraph (correct)
  • To define a heading
  • To define an image
  • What is the default extension for an HTML document?

  • .htm
  • .html
  • both .htm and .html (correct)
  • none of the above
  • What symbol is used to begin an HTML tag?

  • >
  • < (correct)
  • /
  • =
  • What is the purpose of a DTD in markup languages?

    <p>To define document type</p> Signup and view all the answers

    How do you specify the title of an HTML document?

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

    What HTML tag is used to contain a paragraph of text?

    Signup and view all the answers

    Elements to be centre aligned in browser display are enclosed inside which HTML tags?

    <p>::: or <div> ::: </div></p> Signup and view all the answers

    Which HTML tag is used to display a table with border thickness of 1 pixel?

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

    Which HTML tag can control font face, size, and color?

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

    Elements to be justified (aligned with left and right edges) in browser display are enclosed inside which HTML tags?

    <div> ::: </div> Signup and view all the answers

    Which HTML tag displays headings of the largest size?

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

    Which HTML tag creates a clickable hyperlink for navigation inside the same page or between different pages?

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

    Study Notes

    HTML Basics

    • In HTML, the <p> tag defines a paragraph.
    • The default extension for an HTML document is .html (can also be .htm).
    • HTML tags begin with the &lt; symbol.
    • HTML tags end with the &gt; symbol.
    • HTML comments begin with the `` symbol.

    Markup Language

    • SGML stands for Standard Generalized Markup Language.
    • DTD stands for Document Type Definition.
    • DDL stands for Data Definition Language.

    HTML Tags

    • Most HTML tags have a corresponding closing tag, which begins with the `` symbol.
    • The title to be displayed at the top of the browser window or browser tab is enclosed in </p> tags.
    • Paragraphs are contained inside <p> tags.
    • Elements to be centered in browser display are enclosed inside </p> tags or <div> tags.
    • Elements to be left-aligned in browser display are enclosed inside <div> tags.
    • Elements to be right-aligned in browser display are enclosed inside <div> tags.
    • Elements to be justified (aligned to left and right edges) in browser display are enclosed inside <div> tags.

    Image and Table Tags

    • The `` tag displays an image in an HTML page.
    • The `` tag displays a table, and can be used with the border attribute to specify the border thickness.
    • The <a> tag creates a clickable hyperlink for navigation inside the same page or between different pages.
    • The `` tag can control font face, size, and color.

    Heading Tags

    • The `` tag displays headings of the largest size.
    • The `` tag displays headings of the second largest size.
    • The `` tag displays headings of the third largest size.
    • The `` tag displays headings of the smallest size.

    Studying That Suits You

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

    Quiz Team

    Description

    Test your knowledge of HTML fundamentals with this quiz, covering topics such as HTML tags, file extensions, and comments. Evaluate your understanding of HTML basics and identify areas for improvement.

    More Like This

    HTML Basics Quiz
    30 questions

    HTML Basics Quiz

    ProblemFreeQuail avatar
    ProblemFreeQuail
    HTML Fundamentals for Web Development
    16 questions
    HTML Basics and Web Concepts
    5 questions
    Use Quizgecko on...
    Browser
    Browser