HTML & CSS Essentials

Test your web development fundamentals with questions on HTML tags, CSS selectors, and styling.

10 Questions beginner

Quiz Questions

  1. What does HTML stand for?
    • Hyper Text Markup Language
    • High Tech Modern Language
    • Hyper Transfer Markup Language
    • Home Tool Markup Language
  2. Which HTML tag is used to define an internal style sheet?
    • <css>
    • <script>
    • <style>
    • <link>
  3. Which CSS property is used to change the text color?
    • font-color
    • text-color
    • color
    • foreground-color
  4. How do you select an element with id='main' in CSS?
    • .main
    • #main
    • main
    • *main
  5. Which HTML element defines the title of a document?
    • <meta>
    • <title>
    • <header>
    • <head>
  6. How do you make text bold in CSS?
    • font-weight: bold
    • text-style: bold
    • font-style: bold
    • text-weight: bold
  7. Which HTML tag creates a hyperlink?
    • <link>
    • <href>
    • <a>
    • <url>
  8. What is the correct CSS syntax for adding a background color?
    • background-color: blue;
    • color: blue background;
    • bgcolor: blue;
    • background blue;
  9. Which CSS property controls the text size?
    • text-size
    • font-size
    • text-style
    • font-style
  10. How do you select all <p> elements inside a <div>?
    • div.p
    • div + p
    • div p
    • div > p
Take this Quiz