- The most uncommon HTML5 tags you can use right Now
- By Pedro M. S. Duarte
- The Nuggets translation Project
- Permanent link to this article: github.com/xitu/gold-m…
- Translator: lsvih
- Proofreader: sophiayang1997
HMLT5 was released by the World Wide Web Consortium (W3C) in October 2014. It aims to improve THE HTML language to support the latest multimedia devices, while ensuring that computers and devices (such as Web browsers, parsers, etc.) can be parsed under the premise of enhancing human readability.
HTML tutorial: www.geekchamp.com
I’m sure all of you are already using HTML5 for your web pages, and use common tags like
Here I’ve listed some of the most important tags that I hope will help you develop with HTML5 semantics.
<details>
The < Details > tag specifies what the user can view or hide on demand and can be used to create widgets that can be closed and opened by the user. Semantically, you can use any type of content in it, but if you don’t set the open property to it, the content won’t be visible.
<details open><p> Credit card required when booking </p></details>
<dialog>
<dialog Open ><p> Welcome to our hotel </p></dialog>
<mark>
The tag defines the text to be marked and can be used to highlight a portion of your text.
<p> Credit card required to book </mark> at <mark>
<summary>
The
<details><summary> Payment terms </summary><p> Credit card required when booking </p></details>
<time>
与 <datetime>
The
<p> Breakfast buffet starts at <time>7.00 AM</time> in the dining room </p>
<p><time datetime="2018-06-20T19:00"> </p>
<small>
A canonical explanation of the tag, which can be used to reduce the importance of text or information. The browser will reduce font size to reduce visual impact.
<p> Cancellations must be made 48 hours in advance to avoid additional charges per room/night </small></ P >
<datalist>
You can use the
<datalist><option value="Master Card"><option value="Visa"><option value="American Express"></datalist>
<progress>
The
<progress value="70" max="100">70 %</progress>
The Nuggets Translation Project is a community that translates quality Internet technical articles from English sharing articles on nuggets. The content covers Android, iOS, front-end, back-end, blockchain, products, design, artificial intelligence and other fields. If you want to see more high-quality translation, please continue to pay attention to the Translation plan of Digging Gold, the official Weibo, Zhihu column.