ComputersSoftware

How to remove underlining in an HTML page link?

When developing a web page, you have to regularly face the need to insert a link into the text. But in some cases, you want a special design of the part of the text referring to another page. To do this, you need to understand how to remove the underline in the HTML page link.

How do I insert a link?

Before studying the question of how to remove the underline in the HTML link, you should understand the installation of the link in the text. It is very difficult to imagine the sites of meringue transitional ligaments. After all, in this case, each page would represent a long chain, containing the entire volume of text, which can now be found neatly distributed on hundreds of pages.

To link an item to another page, you can use the special tag, inside of which you specify the href link parameter. If you need to go to some other site, then after this attribute you should completely write down the address of the site, and if the link is internal, then it's enough to use only its part, starting it with "/", as shown in the example:

Depending on the tasks, the appearance of the link can be changed. So, you can choose the color, font style, its type (bold, italic), and also carry out the correction by removing the underscore. So, the question is how to remove the underline in the HTML link? Very simple!

Link without underscore

Among the set of attributes of the tag, there is a css-style text-decoration property. By default, this option is turned on for links, and by disabling it with the text-decoration: none label, you will see that the HTML link was obtained without underscore. In this example, the link will only have a selection in blue, and the underscore will be removed.

When do I need to remove the underline?

Having dealt with how to remove underlining in an HTML page link, it is worthwhile to consider when such a move can be useful. Naturally, the design of the link does not affect its characteristics. Regardless of the presence or absence of an underscore, it will correctly navigate to the specified address.

Removing underlines is often used to create menu buttons, where extra lines will interfere with the perception of information. Also, the lack of underlined text is often used for advertising links, hiding them among the abundance of text, making its color similar to the main one. Some sites do not use the underscore of links at all, so at the beginning of the code, the page is specified with a parameter in the style block where the style of the tag is defined, so there is no need to explicitly indicate the absence of underlined text for each link.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.delachieve.com. Theme powered by WordPress.