HTML Basics Quiz
12 Questions
0 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 CSS property used to control the space between lines of text?

  • text-spacing
  • font-spacing
  • line-spacing
  • line-height (correct)
  • How do you select an element with id 'example' in CSS?

  • element[example]
  • #example (correct)
  • *example
  • .example
  • What is the default value of the position property in CSS?

  • absolute
  • relative
  • static (correct)
  • fixed
  • Which CSS property is used to make text bold?

    <p>font-weight</p> Signup and view all the answers

    What does the CSS property 'display: none;' do?

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

    Which CSS property is used to add shadows to elements?

    <p>box-shadow</p> Signup and view all the answers

    What is the purpose of the title attribute in HTML?

    <p>To provide additional information about an element</p> Signup and view all the answers

    What is the correct HTML for creating a checkbox?

    Signup and view all the answers

    What is the purpose of the tag in HTML?

    <p>To define the main content of an HTML document</p> Signup and view all the answers

    What does the tag do in HTML?

    <p>Defines metadata about an HTML document</p> Signup and view all the answers

    What is the purpose of the color property in CSS?

    <p>To change the text color of an element</p> Signup and view all the answers

    How do you add comments in CSS?

    <p>/* This is a comment */</p> Signup and view all the answers

    More Like This

    CSS Syntax and HTML Basics
    6 questions
    HTML Syntax Basics
    16 questions

    HTML Syntax Basics

    FirmerJudgment697 avatar
    FirmerJudgment697
    HTML Basics Quiz
    40 questions

    HTML Basics Quiz

    AudibleAgate4418 avatar
    AudibleAgate4418
    Use Quizgecko on...
    Browser
    Browser