The test

Introduction to HTML notes 1

    The main content of Note 1

  1. Who invented HTML?
  2. Tim Berners-Lee[1](Tim Berners-Lee). He is the inventor of the World Wide Web and a professor at the University of Southampton and the Massachusetts Institute of Technology. On December 25, 1990, Robert Cario worked with him at CERN to successfully implement the first communication between HTTP proxy and server over the Internet.

  3. What should I start with in HTML?
  4. In the new blank
    HTMLIn the file, type an exclamation point
    !Key in the dialog box that is displayed
    emmet abbreviation(You can also press
    TabKey defaults to this option) quickly generated
    HTMLDocument type.

    • <! DOCTYPE html>Which document type to parse with
    • <html lang="en">Browser language changes
    • <meta charset="UTF-8">The character encoding of the file (UTF-8 is the global language)
    • < meta name = "viewport" content = "width = device - width, initial - scale = 1.0" >Disable zoom, compatible with mobile phones
    • <meta http-equiv="X-UA-Compatible" content="IE=edge">Use the latest IE kernel

  5. What are commonly used table chapter labels and what do they mean?
    • Title: >h1~h6
    • Chapter – >section
    • The article – >article
    • Paragraph – >p
    • The head – >header
    • Foot – >footer
    • Main content — >main
    • Collateral content — >aside
    • Division – >div
    • And so on…

  6. What are the global properties?
    • All tags have attributes

    • class: Classifies and labels labels.
    • contenteditable: makes any element writable
    • hidden: Hides the entire label
    • id: has the “unique” flag, but sometimes does not report an error, andCSS
    • and
      JSHave a role.

    • style: Modifies the label style. (Priority:JS>html>CSS)
    • tabindex: Without using a mouse,TabKey toggle select web page operation (in order of positive integer size toggle, if there is no integer down).

      Among them,tabindex[0]Was chosen last,tabindex[-1]Is never chosen.
    • title: Displays complete content


  7. What are the common content tags and what do they mean?
    • ol+li— > Ordered lists, list items
    • ul+li— > No list, list item
    • dl+dt+dd— > Description list, description object, and description content
    • pre— > Keep Spaces, carriage returns, and tabs (HTML only keeps 1 space)
    • hr— > Horizontal divider
    • br— > a newline
    • a— >a tag
    • em— > emphasize, default italics
    • strong— > Important, bold by default
    • code— > display code, default English characters equal width, do not keep carriage return, etc
    • quote— > Quote (inline)
    • blockquote– > reference block
    • And so on…


© Reprint Statement


[1] China Internet Information Office of The People’s Republic of China [Citation dated 2020-03-31]