Home >Web Front-end >HTML Tutorial >10 Underutilized or Misunderstood HTML Tags_HTML/Xhtml_Web Design

10 Underutilized or Misunderstood HTML Tags_HTML/Xhtml_Web Design

WBOY
WBOYOriginal
2016-05-16 16:43:211222browse

Here are 10 underutilized or misunderstood HTML tags. They may not be widely known, but they can be very useful in certain situations.
Web developers often want to know and master multiple languages. As a result, learning all the ins and outs of a language can be tricky, but it is easy to find that you are not taking full advantage of the special but useful tags.
Translated from: TutsPlus
Unfortunately we have not yet tapped into the full potential of those more obscure HTML tags. But it's never too late to re-enter the field and start writing code to tap into the power of these untapped labels.
Here are 10 underutilized or misunderstood HTML tags. They may not be widely known, but they can be very useful in certain situations.
1.
It seems that everyone is familiar with the
tag, but do you know
’s little brother ? allows you to define text within the element as a reference. Normally, browsers will italicize the text within the tag, but this can be changed with a little CSS. The
tag is useful for citing references in directories or other websites. Here is an example of using the cite tag in a paragraph:
David Allen’s groundbreaking organizational book Get Your Work Done takes forgetting by storm. 2. The
tag is a great way to define grouping of options within a select tag. For example, if you need to group a list of movies by time, you can do this:
1 2
label for="showtimes">Showtimes/ label> select id="showtimes" name= "showtimes"> optgroup label="One PM">/ optgroup> option value="titanic">Titanic/option> option value= "nd">Slumdog Millionaire/option> option value="wab">Shrek/option> optgroup label="Two o'clock in the afternoon">/optgroup> option value="bkrw">The Lion King/option> option value="stf" >Superman for All/option> /select>
Demo:


It can visually differentiate the movie list. 3.
is a way of defining or explaining more about a set of words. When you mouse over text using the tag, a box showing the content of the title tag will appear below. for example:
1
Micro blog websiteacronym title="Founded in 2006"> Twitter/acronym> has been down a lot lately.
Example:
Micro-blogging website Twitter
has been frequently down recently. 4.

The
tag is a very inconspicuous little tag, but that doesn’t mean it’s useless. As the name suggests
allows you to semanticize tags in HTML. This compact tag will display the content within the tag in italics by default. Of course, the default style can be easily changed using styles.
1 2 3 4
address>Glen Stansberry 1234 Web Dev Lane Anywhere, USA /address> 5. and
If you want to use tags to display edited versions, and are perfect for that. As the name suggests, highlights added content with underlines, while displays removed information with strikethroughs.
1
John del>likes/del> ins >LOVES/ins> his new iPod.
Example:
Everyone likes abandoned Zblog. 6.
Statement:
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