The use and definition of html tag

黄舟
Release: 2017-06-21 13:15:05
Original
3831 people have browsed it

The

tag in

html5 is used to define special terms or phrases. Here is a detailed introduction to the usage of the

tag, the tagattributes and label application example.

#

Tag function in html: Define special terms or phrases

Tag usage:

tag defines a dialog box or window.

Tag application example:

Use

element:

<table border="1">
<tr>
  <th>一月 <dialog open>这是打开的对话窗口</dialog></th>
  <th>二月</th>
  <th>三月</th>
</tr>
<tr>
  <td>31</td>
  <td>28</td>
  <td>31</td>
</tr>
</table>
Copy after login

What are the attributes of the

tag?

H5: Represents new attributes in HTML5.

The use and definition of html <dialog> tag

Which browsers support the

tag?

Currently only Chrome and Safari6 support the

tag.

HTML5 had a standard for the

tag in 2013, but to this day it is still supported by less than half of the browsers (chrome, opera).

So there are two issues. One is the trend. If IE is not considered, will Firefox and Safari support this label within one or two years? Second, on the technical side, I feel that using dialog tags is more natural and convenient than JS. However, are there any pitfalls when actually using it?

For example, have you ever used the select tag, which is a drop-down box? It is very easy to use, but how many places will really use this native drop-down box (the style and customization requirements are not easy to deal with, right? ), most of them don’t rewrite it themselves using JavaScript.
Personally think that the dialog tag will not be supported. The modal window requires too many customized functions and styles, and one more dialog tag will only become useless.

The above is the detailed content of The use and definition of html

tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template