Single Choice Question

  1. Which HTML entity is used to represent the '&' symbol?
    1. &amp 英文叫ampersand
    2. &nbsp
    3. &lt
    4. &and
  2. Which HTML entity is used to represent the '>' symbol?
  3. &gt
  4. &nbsp
  5. &amp
  6. &lt
  7. The reason why need use the entity "& lt;" to replace '<' of the content in HTML is
    1. Browser can not parse the '<' in HTML document
    2. '<' is not valid character in HTML
    3. '<' will be taken as the angled bracket of the tag
    4. None of above
  8. Which heading tag is the biggest heading?
    1. h1
    2. h2
    3. h3
    4. h4
  9. Which heading tag is the smallest heading?
    1. h1
    2. h6
    3. small
    4. h8
  10. Which HTML tag is used to create a paragraph?
    1. <p>
    2. <para>
    3. <section> 定义文档中的分区或章节
    4. <br>
  11. Which HTML tag is used to make the text be bold?
    1. <bold> 不存在
    2. <em> 斜体
    3. <i> 斜体
    4. <strong>
  12. Which HTML tag is used to make the text be italic?
    1. <bold>
    2. <emphasize>
    3. <i>
    4. <italic>
  13. If we want to display programming code in the webpage, we should use
    1. Put the code in <pre> nested in <code>
    2. Put the code in <pro> nested in <code>
    3. Put the code in <code> nested in <pre>
    4. Put the code in <code> nested in <pro>
  14. To display the string:'m³', we should use
    1. m<sup>3</sup>
    2. m<sub>3</sub>
    3. m<supscript>3</supscript>
    4. m<subscript>3</subscript>

True or False Question

  1. Non-breaking space (&nbsp) is used to create a blank space between two items that cannot be separated by a line break.
    True
  2. HTML entity '&lt;' can be used to express '>' in HTML
    False
  3. <br/> is a tag to create a new line.
    True
  4. <hr/> is a tag to create a vertical line.
    False
  5. <h1/> is the biggest heading tag in HTML.
    True
  6. <h6/> is the biggest heading tag in HTML.
    False
  7. <i/> is used to make the text be bold.
    False变成斜体
  8. <strong/> is used to make the text be italic.
    False加粗
  9. <i/> is better than <em/> because it is more semantic.
    False
  10. <strong/> is better than <b/> because it is more semantic.
    True
  11. <code/> is used to keep content text in a fixed-width font and indention.
    False表示行内代码或代码片段,pre保留空格和换行
  12. Logical tags are used to add some logical or semantic value to the text.
    True
  13. The content within <sub/> element will be displayed above the other characters.
    False

Definition of Term

  1. HTML Entity
    HTML 实体是以 & 开始、以 ; 结束的字符转义序列,用于在网页中显示特殊字符,避免它们被浏览器解释为HTML语法
  2. Heading Tag
    HTML 中的标题标签一共有从 < h1> 到 < h6> 六级,用于定义不同等级的段落标题,其中 < h1> 用于最重要(最大)的标题,层级依次递减。
  3. Logical Tag
    这些标签用于表达内容的语义意义,而不仅仅用于视觉效果,例如 < strong>(强调重要性)、< em>(语义强调)、< code>(表示代码)等
  4. Physical Tag
    这类标签专注于控制视觉效果,例如 < b>(粗体)、< i>(斜体)、< u>(下划线)等,仅改变文本的外观,不具备语义意义。