How to underline in HTML? html<u> example of adding underscores to a label

Source: Internet
Author: User
This article mainly introduces the use of the HTML underline u tag, as well as the usage instructions and instance parsing of the HTML U tag, so that you can know the basic usage of HTML u underline tag more quickly. Now let's take a look at this article.

First, let's talk about how to underline in HTML:

In general, the font text underline style, there are two ways, has been directly using the HTML underline label, the other is the use of CSS underline style. Here is the main talk about using HTML to underline the method.

Add an underscore style to the HTML tag by adding <u></u> to the underlined text.

Syntax for underline <u> label:

<u> I was underlined </u>

Take a look at a full code usage example:

<! DOCTYPE html> 

The effect should be obvious, but we still give the experiment:

Can clearly see, I put the URL to add an underscore, is not the same as the URL under a tag, in the addition of a color more like, but, we can not click, nor jump. It's just a look.

Now let's look at the instructions for using the U-label underline:

<u></u> underline label tells the browser to display the text of its plus u tag with an underline style rendered to the viewer. For all browsers, this means that the text is underlined and displayed to everyone.

HTML Underline u label use case:

This is topic.alibabacloud.com<br/> PHP Chinese web site <u>www.PHP.cn</u>!

If you want to see the effect, look at the chart above, similar to that one.

Instructions for using the HTML u tag:

The contents of the <u> tag decoration will be underlined.

Also, if you use HTML u to underline text content instead of underlining, you can use CSS style settings to remove the U-label underline style.

OK, the above is the use of the HTML underline u tag specific article (want to learn more, welcome to search topic.alibabacloud.com, here a lot of online courses are waiting for you to learn), the problem can be asked below.

Related Article

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.