10 uncommon HTML tags you need to know

高洛峰
Release: 2017-03-12 17:36:17
Original
1298 people have browsed it

This article talks about 10 Html tags that you need to know but are not common

Nowadays, web development engineers usually use more than one language in their study and work. Therefore, it is difficult for us to understand all aspects of a language, and it is also quite difficult to master a language, such as the usage of some uncommon but potentially useful keywords in the language.

Although we may not have understood these very rare HTML tags before or failed to make full use of them, it is not too late to make up for it. Now we are beginning to understand it and can use it correctly in future development. It’s not too late for these previously unused tags.

Here I give 10 of the most uncommon and often misused HTML tags. Although they may not be as common as other HTML tags, they can still be quite useful in certain situations.

##1.

I believe everyone is familiar with
, but did you know that
actually has a younger brother named ? allows defining a piece of text as a reference within an element. Normally, browsers will set the text under the tag to italics, but this may change based on CSS.

The tag is very useful when citing book catalogs and other website addresses. Here is an example of how to use the tag in a piece of text:

Zhang San’s breakthrough monograph

张三AUTOBIOGRAPHY has brought a new atmosphere to the Internet.

2.

The tag will be very useful when you want to add some definitions to options grouped according to different types in a drop-down box. For example, if you wanted to group movies based on time, the code could be written like this:

<LABEL for=showtimes>Showtimes</LABEL>
<SELECT id=showtimes name=showtimes><OPTGROUP label=1PM></OPTGROUP> <OPTION selected value=titanic>Twister</OPTION> <OPTION value=nd>Napoleon Dynamite</OPTION><OPTION value=wab>What About Bob?</OPTION><OPTGROUP label=2PM></OPTGROUP> <OPTION value=bkrw>Be Kind Rewind</OPTION> <OPTION value=stf>Stranger Than Fiction</OPTION></SELECT>
Copy after login

Example:


3.

The tag is usually used to add a definition or a more detailed explanation to a sentence (phrase). When the user hovers the mouse over the text with the tag added, the added

annotation or definition will be displayed below the text. For example:

微博网站 Twitter has recently caused a new trend on the Internet!


Example:

The Weibo website has recently caused a new trend on the Internet!

4.

The
tag is a fairly rare tag, but this does not mean that it is useless. As the name suggests,
allows you to mark addresses semantically in HTML. This useful tag also italics the data within it, however, this style is easily modified via CSS.

<address>
中国,上海市,闵行区,XX路,XX小区,XXX室
</address>
Copy after login

Example:

China, Shanghai, Minhang District, XX Road, XX Community, Room XXX

5. and

If you want to display the document editing style through markup, and can be used. As their names suggest, uses an underline to highlight text that has been added to the document, while uses a strikethrough to highlight text that has been deleted from it.

没有了驴子,我们的日子还要怎么<DEL>过下去</DEL> <INS>活下去</INS>?
Copy after login

Example: Without donkeys, how can we

survive live?

6.
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!