Home > Article > Web Front-end > Introduction to 5 cool and practical HTML tags and attributes_HTML/Xhtml_Webpage Production
Actually, this is also a headline, and it cannot be said to be "dazzling". It's just because I am ignorant and have never seen these labels. These features are not very common on normal websites, so it feels very fresh to me. Then I will create a series to record all the good HTML tags I have encountered (maybe HTML5 tags, there is no guarantee that all browsers will be compatible).
1. contenteditable
This is a new tag in HTML5, which allows the content of an area to be edited, such as the following table: (The table in IE does not seem to support this attribute, but div and body seem to support it. If you If you use IE, please try to click on the $100 and $50 parts to edit. I added contenteditable tags to these two boxes. If you are not IE, all the content should be editable)
2. fieldset tag
This thing is equivalent to the GroupBox in .NET, but I didn’t know it. Its function is to group related elements in the form:
legend tag specifies the title of this BOX.
3. area tagA hyperlink can be placed directly on a specific area of the image! Just match the map tag and the usemap attribute of img (note that after clicking on the picture to jump to other pages, remember to return ^_^):
4. output标签
这个标签能够直接显示脚本的运算结果(注意:目前IE的任何版本都不支持),以下脚本似乎不工作,可能是因为WP的原因所致:
5. mark标签
直接能够高亮一段文字,不需要把文字拆开即可实现:
今天先到这吧,以后看到好的HTML标签和特效再贴上来。