The image tag

  1. <img src="" art=""/>

    Properties:

  • Ismap server side image mapping (mouse click somewhere, browser will send click location (x, y) to the server, only when<img />The element belongs to one with a valid href attribute<a>The ismap attribute is allowed only when the descendant of the element.
<a href="">
  <img src="" ismap />
</a>
Copy the code
  • Longdesc points to a page with an image description similar to Art
  • Usemap and<map></map>The id of the associated
  1. <map></map>Define a client image map
  2. <area />Clickable region of the image map, nested in<map>
<img SRC ="" usemap="#planetmap" /> <map name="planetmap" id="planetmap"> <area shape="circle" coords="100,100,50" href="" alt="Venus" /> </map>Copy the code
  1. <canvas></canvas>Graphic container, canvas
  2. <figure></figure>Make an image for the illustration in the document
  3. <figcaption></figcaption>Tags defined<figure></figure>The title of the element,
<p> <figure> <img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0b3c0ee9b2674647883e88b5ca411999~tplv-k3u1fbpfcp-zoom-1.image" Width ="304" height="228"> </figure Caption >Copy the code

A paragraph of text.

Pink picture

Audio/Video

  1. <audio></audio>Custom voice

Properties:

  • Autoplay =”autoplay” automatically plays after loading
  • Controls =” Controls “browser default control
  • Loop =”loop” after the end of the playback from the beginning
  • Muted by default
  • Preload =”auto” page load loads audio
  1. <source />Define media sources, specifying interchangeable video/audio files
<audio controls>
   <source src="horse.ogg" type="audio/ogg">
   <source src="horse.mp3" type="audio/mpeg">
</audio> 
Copy the code
  1. <track />Text track in media player (subtitles)

Kind: text type

  • Captions Brief description of the display
  • Chapters, Navigation media resources
  • Descriptions Content not playable or not visible
  • Metadata Specifies the content used by the script
  • Subtitles are displayed in the video

Srclang: When kind=” 弹 幕 “is set, srclang must be set

<video width="320" height="240" controls="controls">
  <source src="" type="video/mp4" />
  <track kind="subtitles" src="" srclang="zh" label="Chinese">
</video>
Copy the code
  1. <video></video>Define the video
  • Autoplay =”autoplay” automatically plays after loading
  • Controls =” Controls “browser default control
  • Loop =”loop” after the end of the playback from the beginning
  • Muted by default
  • Preload =”auto” page load loads

The link label

  1. <a></a>hyperlinks

Properties:

  • Download The hyperlink target that was downloaded
  • Hreflang =”” What language is the link open
  • Target =”view_window” a separate window target=”_blank” opens the linked document in a new window target=”_self” opens the linked document in the same frame.
  1. <link />Define the relationship between documents and external resources
  2. <nav></nav>Defining navigation links
<nav>
<a href="">Home</a> |
<a href="">Previous</a> |
<a href="">Next</a> |
</nav>
Copy the code

Home
Previous
Next

A list of tags

  1. <ol></ol>An ordered list
<ol>
  <li>Coffee</li>
  <li>Tea</li>
</ol>
Copy the code
  1. Coffee
  2. Tea
  3. Milk
  1. <ul></ul>Unordered list
<ul>
  <li>Coffee</li>
  <li>Tea</li>
</ul>
Copy the code
  • Coffee
  • Tea
  • Milk
  1. <li></li>List items
  2. <dl></dl>The list of
  3. <dt></dt>List items
  4. <dd></dd>List Item Description
Computer < dl > < dt > < / dt > < dd > used to calculate the instrument 1 < / dd > < dd > instruments used to calculate 2 < / dd > < / dl >Copy the code
The computer
Instrument for calculation 1
Instruments for calculation 2

form

  1. <table></table>Define the form
  2. <caption></caption>Defining table titles
  3. <th></th>Define table header cells
  4. <tr></tr>Defining table rows
  5. <td></td>Define table cell properties:
  • Colspan =”number” number of cells across
  • Rowspan =”number” Number of rows across
  • Valign = Vertical arrangement of “top” cell content (Top Middle Bottom Baseline)
  1. <thead></thead>Defining table headers
  2. <tbody></tbody>Define table body
  3. <tfoot></tfoot>Define table footnotes
  4. <col />Attribute values for one or more columns
  5. <colgroup></colgroup>A group of columns in a table for formatting
<table border="1" style="height:200px"> < p style=" color:pink" /> <col span="1" style="background-color:yellow" /> </colgroup> <thead> <tr> <th>Month</th> <th>Savings</th> </tr> </thead> <tbody> <tr> <td valign="top">January</td> <td valign="bottom">$100</td> </tr> <tr> <td valign="top">February</td> <td valign="bottom">$80</td> </tr> </tbody> <tfoot> <tr> <td colspan="2">Sum $180</td> </tr> </tfoot> </table>Copy the code

Style and semantic tags

  1. <style></style>Style information for the document
  2. <div></div>Sections in a document
  3. <span></span>Sections (inline elements) in a document
  4. <header></header>Defines the header of a section or page
  5. <footer></footer>Defines the footer of a section or page
  6. <main></main>The main contents of the document
  7. <section></section>Define a section
  8. <article></article>Define articles that specify independent self-contained content
  9. <aside></aside>Define articles outside of the page content,Use as a sidebar to an article
  10. <details></details>Element details
  11. <dialog></dialog>Dialog box or window
  12. <summary></summary><details>The element defines the visible title
  13. <data></data>Adds a machine-readable translation of the given content
<style> * { padding: 0; margin: 0; } </style> <div style="border: 1px solid black; width: 200px; height:200px;" > <header style="background:green; width: 200px; Height :20px"> <span style=" font-size: 10.0pt; line-height :20px; width: 200px;" > <aside style="width: 30px; height: 160px; float: left; </aside> <p>article</p> <details> <summary> <p> Details,summary</p> </details> <dialog open> </dialog> </article> </main> <footer style="background:yellow; width: 200px; height:20px;" > footer </footer> </div>Copy the code

Meta information label

  1. <head></head>Information about the document
  2. <meta />Meta information about the HTML document
  3. <base></base>The default address or target for all links on the page

programming

  1. <script></script>Client script
  2. <noscript></noscript>Alternate content when the script is not executed
<noscript>Your browser does not support VBScript! </noscript>Copy the code