Single Choice Question

  1. Which HTML tag is used to create an unordered list?
    1. <ul>
    2. <ol>
    3. <dl>
    4. <li>
  2. What is the correct way to define a list item in an unordered list?
    1. <ul><item>Item 1</item></ul>
    2. <ul><li>Item 1</li></ul>
    3. <ul>Item 1</ul>
    4. <ol><li>Item 1</li></ol>
  3. Which attribute can be used to define the type of numbering for an ordered list?
    1. type
    2. number
    3. style
    4. list-style-type
  4. How do you create a table row in HTML?
    1. <tr>
    2. <td>
    3. <th>
    4. <table>
  5. What tag is used to define a table header cell in HTML?
    1. <td>
    2. <th>
    3. <tr>
    4. <thead>
  6. Which attribute can be used to group rows in a table header or footer?
    1. group
    2. header
    3. footer
    4. thead and tfoot
  7. What is the purpose of the <iframe> tag in HTML?
    1. To embed an image
    2. To embed another webpage within a webpage
    3. To define a table cell
    4. To create a form
  8. How do you specify the source of the content to be embedded in an <iframe>?
    1. src attribute
    2. href attribute
    3. content attribute
    4. embed attribute
  9. Which semantic tag is used to represent a section of a document that is independently distributable or reusable, such as a chapter, the header, footer, or any other section of the document?
    1. <article>
    2. <section>
    3. <aside>
    4. <header>
  10. What semantic tag is used to represent a navigation link section within a webpage?
    1. <nav>
    2. <menu>
    3. <links>
    4. <footer>
  11. How do you define a footer for a webpage using semantic HTML?
    1. <footer>
    2. <end>
    3. <bottom>
    4. <page-footer>
  12. Which semantic tag is used to represent a sidebar or additional information that is tangentially related to the main content?
    1. <aside>
    2. <section>
    3. <article>
    4. <supplement>
  13. What is the purpose of the <main> tag in HTML5?
    1. To define the main content of a webpage
    2. To define a table header
    3. To embed an image
    4. To create a form
  14. How do you define a table caption in HTML?
    1. <caption>
    2. <title>
    3. <header>
    4. <label>
  15. Which attribute can be used to define the border of a table in HTML?
    1. border
    2. frame
    3. rules
    4. style="border: 1px solid black;"
  16. What is the difference between <th> and <td> in HTML tables?
    1. <th> is for table headers, and <td> is for table data
    2. <th> is for table data, and <td> is for table headers
    3. Both are used for table data, but <th> is styled differently
    4. <th> is for table rows, and <td> is for table columns
  17. Usually, one menu on a webpage is expressed by
    1. <ul>
    2. <ol>
    3. <dl>
    4. <menu>
  18. What is the purpose of the colspan attribute in HTML tables?
    1. To merge multiple rows into one
    2. To merge multiple columns into one
    3. To define the width of a column
    4. To define the height of a row
  19. How do you define a table header group in HTML?
    1. <thead>
    2. <header>
    3. <thgroup>
    4. <hgroup>
  20. Which semantic tag is used to represent a short quotation or a phrase from another source?
    1. <q>
    2. <blockquote>
    3. <cite>
    4. <abbr>
  21. Which tag is belong to the block level?
    1. <div>
    2. <span>
    3. <strong>
    4. <a>
  22. Which tag is belong to the inline level?
    1. <div>
    2. <section>
    3. <p>
    4. <a>
  23. If one tag occupy the whole line, what is the category of that tag?
    1. Inline Element
    2. Block Element
    3. Group Element
    4. Complete Element

True or False Question

  1. The <ol> tag is used to create an unordered list.
  2. The <ul> tag is used to create an ordered list.
  3. The <table> tag is used to create a list in an HTML document.
  4. The <td> tag defines a table row in an HTML table.
  5. The <iframe> tag is used to embed another webpage within a webpage.
  6. Semantic HTML tags like <header>, <footer>, and <article> help improve the accessibility and structure of a webpage.
  7. The <span> tag is a block-level container used for styling and layout purposes.
  8. The <div> tag is an inline container used for styling and layout purposes.
  9. The <section> tag defines a section in a document, such as chapters, headers, footers, or other sections of a page.
  10. The <nav> tag defines a section of a page that contains navigation links.
  11. Block level elements are those that start on a new line and take up the full width available.
  12. Inline element can be placed within a block level element.
  13. Specify size of an inline element does not work.
  14. List cannot be nested within another list.

Definition of Term

  1. Block Element
  2. Inline Element
  3. Embedded Webpage

Short Answer

  1. Try to compare the difference between the block element and the inline element.
  2. Try to compare <div> tag and <span> tag.
  3. How many list types in HTML5? What are they?
  4. Specify the basic tags in a table in HTML5.(at least 3)
  5. Specify the major semantic tags to create basic structure of document in HTML5.(at least 5)