First, about DTDS

HTML5 is not SGML-based, so you don’t need to reference DTDS (HTML 4.01 is SGML-based)


Second, HTML5 structural tags

  • : The tag defines the header of a page or area
  • The


  • The
    tag defines a region
  • The
  • The
    tag defines an article
  • The
    tag defines information about a block in the file
  • The
    tag defines a set of media content and their titles
  • The
    tag defines the title of the figure element.
  • The

    tag defines a dialog box (dialog box) similar to wechat


  • The
    tag defines the bottom of a page or area


HTML5 multimedia tags



Video:

Compatibility:


  • Safari supports MP4 and does not support WebM or OGV
  • Internet Explorer 8 (including) does not support the video label
  • Ie9 supports video tabs (but only mp4)
<video src="..."
       autoplay="autoplay"
       controls="controls"
       loop="loop"
       width="500"
       height="500"
       poster="..."
       muted>// Where loop sets circular poster sets cover mutedCopy the code


(Audio)

Compatibility:


  • Safari supports MP3 and WAV but does not support OGG
  • New Audia() in JS is equivalent to adding a
    tag to HTML
  • Chrome and Opera do not play automatically, requiring an interaction on a page element
  • The width/height attribute has no effect and must be controlled using the style inside the style tag
  • To improve the customer experience, add text between the start and end tags of audio
  • Thetag defines media resources for media elements. It cannot be added to thestart tag, and thetag is a single tag without an end tag.
<audio src="..."
       autoplay="autoplay"
       controls="controls"
       loop="loop"
       width="500"
       height="500">
Copy the code

Source: Media Elements (Audio and video)


<video autoplay="autoplay"
       controls="controls"
       loop="loop"
       width="500"
       height="500">
    <source src="..." type="video/mp4"
</video>Copy the code



-Howard: Embed.

<embed src="..."
       type="audio/mp3"
       width="300" 
       height="300" />
Copy the code


Four, HTML 5Web Application Tags

  • Menu < Menu > command list (currently not supported by all major browsers) Menu command list TAB (supported only by FireFox8.0+) Menu tag defines a command button (supported only by IE9)

  • Status label Status label (real-time status display: air pressure and temperature)C, O < Progress > Status label (Task process: installation and loading)C, F, and O

  • The list tag defines a drop-down list for the input tag, along with the option F and O

    tags that define the details of an element, along with summary C


Fifth, HTML 5Other tags

  • The < Ruby > tag defines comments or phonetic symbols
  • Does tell browsers that don’t support Ruby elements how to display them
  • The < RT > tag defines the annotation content text for Ruby
  • The tag defines tagged text (yellow selected status)
  • The tag defines some output types that calculate the result of the form in conjunction with the onINPUT event
  • tag defines a generated key value in the form (encrypted message transfer)
  • The


Six, HTML 5Redefine the label

(Display unchanged, just the meaning of the expression has been redefined for the tag)

  • stands for inline text, usually in bold, without passing important meaning
  • < I > stands for inline text, usually in italics, with no passing meaning of importance
  • < DD > can be used with Details and figure, definitions contain text, and dialog is also available
  • can be used with details and figure to aggregate details, and dialog can also be used
  • Indicates the end of the subject, not a horizontal line, although the display is the same

  • Redefines the menu of the user interface to be used with command or menuItem
  • indicates small type, such as printed notes or legal articles
  • indicates importance rather than emphasis


Seven, HTML 5Input New type

  • email
  • url
  • number
  • range
  • Date picker:

    Date – Select the day, month, and year
    Month – Picks the Month and year
    Week – Selects the Week and year
    Time – Select Time (hours and minutes)
    Datetime — Select time, day, month, year (UTC time)
    Datetime-local — Select time, day, month, year (local time)
  • search
  • color
  • tel


Eight, HTML 5The form properties

  • Autocomplete: Automatic completion, for

    tags, and for
    tags of the following types: Text, search, URL, telephone, email, password, Datepickers, range, color. Usage:

    or use off in input alone

  • Placeholder: suitable for <input> where type is: text, search, URL, telephone, email, password

  • Required: The requirement cannot be null. This applies to tags of the following types: Text, search, URL, telephone, email, password, date pickers, number, checkbox, radio, file


Nine, HTML 5Link attributes

  • Size
  • Target < base href = “http://localhost/” target = “_blank” >
  • Hyperlink a: media=”” (for device optimization, Handhelp support for “handheld” devices, TV for “TV”); A: hreflang=”zh” (set the language to Chinese); A: ref= “external” (set the reference to the hyperlink, where the hyperlink is external)


Ten, HTML 5Other attributes

  • Async: executes the script immediately after it is loaded, rather than waiting for the entire page to be loaded. This is asynchronous execution. < script async SRC = “URL” > < / script >
  • Start — The Start value
  • Reversed — < OL start= “10” Reversed >
  • Html
  • Css
  • JavaScript
  • < HTML manifest= “cache.manifest” >