HTML Fundamentals Quiz Quiz

  1. HTML Structure

    Which of the following is the correct structure for a basic HTML document?

    1. u003Chtmlu003Eu003Cheadu003Eu003C/headu003Eu003Cbodyu003Eu003C/bodyu003Eu003C/htmlu003E
    2. u003Cheadu003Eu003Chtmlu003Eu003Cbodyu003Eu003C/htmlu003Eu003C/headu003E
    3. u003Cbodyu003Eu003Chtmlu003Eu003Cheadu003Eu003C/headu003Eu003C/bodyu003Eu003C/htmlu003E
    4. u003C!DOCTYPE htmlu003Eu003Chtmlu003Eu003Cheadu003Eu003Ctitleu003ETitleu003C/titleu003Eu003C/headu003Eu003Cbodyu003EContentu003C/bodyu003Eu003C/htmlu003E
    5. u003Chtmlu003Eu003Cbodyu003Eu003Cheadu003Eu003C/headu003Eu003C/bodyu003Eu003C/htmlu003E
  2. HTML Attributes

    What is the purpose of attributes in HTML elements?

    1. To define the element's content
    2. To format the element's appearance using CSS
    3. To provide additional information about the element, such as its ID or class
    4. To create links between HTML pages
    5. To execute JavaScript code
  3. Semantic HTML

    Which of the following HTML5 tags is considered a semantic element that represents a self-contained composition in a document?

    1. u003Cdivu003E
    2. u003Carticleu003E
    3. u003Cspanu003E
    4. u003Cheaderu003E
    5. u003Casideu003E
  4. HTML Forms

    Which HTML element is used to define a form for user input?

    1. u003Cformu003E
    2. u003Cinputu003E
    3. u003Ctextareau003E
    4. u003Cbuttonu003E
    5. u003Cselectu003E
  5. HTML Lists

    What is the correct HTML for creating an ordered list?

    1. u003Culu003E
    2. u003Colu003E
    3. u003Cliu003E
    4. u003Cdlu003E
    5. u003Clistu003E
  6. HTML Images

    Which attribute is mandatory for the `u003Cimgu003E` tag?

    1. alt
    2. src
    3. title
    4. href
    5. source
  7. HTML Links

    In HTML, which tag is used to create a hyperlink?

    1. u003Clinku003E
    2. u003Cau003E
    3. u003Chyperlinku003E
    4. u003Curlu003E
    5. u003Chrefu003E
  8. HTML Tables

    Which HTML tag defines a table row?

    1. u003Ctableu003E
    2. u003Ctdu003E
    3. u003Cthu003E
    4. u003Ctru003E
    5. u003Ctablerowu003E
  9. HTML Input Types

    Which input type should be used for a field where the user needs to enter their email address?

    1. text
    2. email
    3. number
    4. url
    5. address
  10. HTML Character Encoding

    Which HTML tag is used to define the character set for the HTML document?

    1. u003Ccharsetu003E
    2. u003Cmeta charset='UTF-8'u003E
    3. u003Cencodingu003E
    4. u003Ccharacteru003E
    5. u003Cscriptu003E