Uncommon HTML tags uncommon HTML tags

Source: Internet
Author: User
Tags rewind
Document directory
  • 1. <cite>
  • 2. <optgroup>
  • 3. <acronym>
  • 4. <address>
  • 5. <ins> and <del>
  • 6. <label>
  • 7. <fieldset>
  • 8. <abbr>
  • 9. rel
  • 10. <WBR>
  • 1. <cite>
  • 2. <optgroup>
  • 3. <acronym>
  • 4. <address>
  • 5. <ins> and <del>
  • 6. <label>
  • 7. <fieldset>
  • 8. <abbr>
  • 9. rel
  • 10. <WBR>
Uncommon HTML tags nowadays, web development engineers usually use more than one language to learn and work. Therefore, it is hard to understand all aspects of a language. It is also quite difficult to master a language. For example, some of the uncommon but potentially useful keywords in a language are used.

Although we may not know these very rare HTML tags or do not fully use them in the past, it is not too late to make up for it, it is not too late to understand and use these unused labels correctly in future development.

Here I have provided 10 HTML tags that are the least common and often misused. Although it may not be as common as other HTML tags, they are still quite useful in some special scenarios.

1. <cite>

I believe everyone is familiar with <BLOCKQUOTE>, but you know that <BLOCKQUOTE> is actually a younger brother called <cite>? <Cite> A piece of text can be defined in an element as a reference. Generally, the browser sets the text under the <cite> label to italic, but this may change according to CSS.

<Cite> tags are useful when referencing book directories and other website addresses. Here is an example of how to use the <cite> label in a piece of text:

James's breakthrough MonographZhang San's AutobiographyIt brings a new atmosphere to the network.

2. <optgroup>

The <optiongroup> label is useful when you want to add some definitions to the options of different types of groups in a drop-down box. For example, if you want to group movies by time, you can write the code as follows:

View Source

 

Print?

1 <LABEL for=showtimes>Showtimes</LABEL><BR><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>

Example:

Showtimes 
 Twister Napoleon DynamiteWhat about Bob? Be Kind Rewind Stranger than fiction3. <acronym>

<Acronym> labels are generally used to add definitions or more detailed explanations for a sentence (phrase. When you move your cursor over the text with the <acronym> label added, the added comments or definitions are displayed below the text. For example:

View Source

 

Print?

1 Weibo website <ACRONYM title="Founded in 2006"> Twitter</ACRONYM> Recently, it has caused a new wave on the Internet!

Example:

Weibo website TwitterThis has recently caused a new wave of Internet traffic!

4. <address>

<Address> A tag is a rare one, but it does not mean it is useless. <Address> allows you to mark addresses in HTML based on semantics. This easy-to-use label will also mark its internal data in italics. However, this style can be easily modified through CSS.

View Source

 

Print?

1 <address><BR> Room XXX, China, Shanghai, Minhang District, XX Road, XX community <BR></address>

Example:

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

 

5. <ins> and <del>

If you want to display the document editing style by TAG, <ins> and <del> can be used. Just like their names, <ins> uses an underscore to highlight the content added to the document, while <del> deletes the text from the document.

View Source

 

Print?

1 What should we do without a donkey? <DEL> Coming soon </DEL> <INS> Live </INS>?

Example: What should we do without a donkey?Coming soon Live?

6. <label>

When marking a document, table elements are easily forgotten. One of the most easy-to-Forget elements in a table is afraid of a number <label> label. But for a <label> label, it not only can easily represent a piece of text, but also can use the for attribute to specify which element the label is used. These <label> are not only easy to define styles, but they also allow you to design the image button of the label text to be clicked by the user.

View Source

 

Print?

1 <LABEL for="username"> User Name </LABEL>  <BR><INPUT id="username" type="text">
7. <fieldset>

<Fieldset> is a very useful label that groups related elements in a form by logic. Once these elements are put together through the <fieldset> label, and by binding the <label> label and fieldset, the title can be defined for the group.

View Source

 

Print?

1 <FORM><FIELDSET>  <BR><LEGEND> Do you think you have X? </LEGEND>  <BR>Yes<INPUT value=yes type=radio name=yes>  <BR>No <INPUT value=no type=radio name=no>  <BR></FIELDSET>  <BR></FORM>

Example:

Today, web development engineers generally use more than one language to learn and work. Therefore, it is hard to understand all aspects of a language. It is also quite difficult to master a language. For example, some of the uncommon but potentially useful keywords in a language are used.

Although we may not know these very rare HTML tags or do not fully use them in the past, it is not too late to make up for it, it is not too late to understand and use these unused labels correctly in future development.

Here I have provided 10 HTML tags that are the least common and often misused. Although it may not be as common as other HTML tags, they are still quite useful in some special scenarios.

1. <cite>

I believe everyone is familiar with <BLOCKQUOTE>, but you know that <BLOCKQUOTE> is actually a younger brother called <cite>? <Cite> A piece of text can be defined in an element as a reference. Generally, the browser sets the text under the <cite> label to italic, but this may change according to CSS.

<Cite> tags are useful when referencing book directories and other website addresses. Here is an example of how to use the <cite> label in a piece of text:

James's breakthrough MonographZhang San's AutobiographyIt brings a new atmosphere to the network.

2. <optgroup>

The <optiongroup> label is useful when you want to add some definitions to the options of different types of groups in a drop-down box. For example, if you want to group movies by time, you can write the code as follows:

View Source

 

Print?

1 <LABEL for=showtimes>Showtimes</LABEL><BR><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>

Example:

Showtimes 
 Twister Napoleon DynamiteWhat about Bob? Be Kind Rewind Stranger than fiction3. <acronym>

<Acronym> labels are generally used to add definitions or more detailed explanations for a sentence (phrase. When you move your cursor over the text with the <acronym> label added, the added comments or definitions are displayed below the text. For example:

View Source

 

Print?

1 Weibo website <ACRONYM title="Founded in 2006"> Twitter</ACRONYM> Recently, it has caused a new wave on the Internet!

Example:

Weibo website TwitterThis has recently caused a new wave of Internet traffic!

4. <address>

<Address> A tag is a rare one, but it does not mean it is useless. <Address> allows you to mark addresses in HTML based on semantics. This easy-to-use label will also mark its internal data in italics. However, this style can be easily modified through CSS.

View Source

 

Print?

1 <address><BR> Room XXX, China, Shanghai, Minhang District, XX Road, XX community <BR></address>

Example:

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

 

5. <ins> and <del>

If you want to display the document editing style by TAG, <ins> and <del> can be used. Just like their names, <ins> uses an underscore to highlight the content added to the document, while <del> deletes the text from the document.

View Source

 

Print?

1 What should we do without a donkey? <DEL> Coming soon </DEL> <INS> Live </INS>?

Example: What should we do without a donkey?Coming soon Live?

6. <label>

When marking a document, table elements are easily forgotten. One of the most easy-to-Forget elements in a table is afraid of a number <label> label. But for a <label> label, it not only can easily represent a piece of text, but also can use the for attribute to specify which element the label is used. These <label> are not only easy to define styles, but they also allow you to design the image button of the label text to be clicked by the user.

View Source

 

Print?

1 <LABEL for="username"> User Name </LABEL>  <BR><INPUT id="username" type="text">
7. <fieldset>

<Fieldset> is a very useful label that groups related elements in a form by logic. Once these elements are put together through the <fieldset> label, and by binding the <label> label and fieldset, the title can be defined for the group.

View Source

 

Print?

1 <FORM><FIELDSET>  <BR><LEGEND> Do you think you have X? </LEGEND>  <BR>Yes<INPUT value=yes type=radio name=yes>  <BR>No <INPUT value=no type=radio name=no>  <BR></FIELDSET>  <BR></FORM>

Example:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.