Who invented HTML, Tim Berners-Lee

2. What should HTML start with

<! DOCTYPE html> <html lang="en"> <head> <meta charset = "utf-8"> <meta name = "viewpoint" content = "width=device-width, <meta HTTP-equiv = "x-UA-compatible" content = "id-edge"> <title>Document</title> </head> <body> </body> </html>Copy the code

H6, section, article, main, aside, etc.

  • H1 ~ h6: title
  • Section: chapter
  • The article:
  • Main: indicates the main content
  • Aside, I’m not
  • Div: dividing
  • Header: the head
  • Footer: steps
  • P: paragraphs

4. What are the global attributes

  • class
  • contenteditable
  • hidden
  • id
  • style
  • tabindex
  • title

5. What are the commonly used content tags and what are their meanings (A, strong, EM, code, pre, etc.)

  • A: the anchor
  • Strong: indicates the bold content
  • Em: Emphasis on tone
  • Code: the code
  • pre : preview
  • Q: reference
  • Br: a newline
  • ul : ordered list (+li)
  • ol : unordered list (+li)
  • dl+dt+dd : description list (+term + data)