Hello dear readers. In the last article we talked about how to insert a text link. Today I will talk about how to change the color.How to change the color of links in HTML.
As you remember, the reference is inserted as follows:
<a href="http://www.site.ru"> Anchor </ a>
The default link blue and underlined. C try to change the color using html links. To do this, add the code to the following:
<a href="http:// www.site.ru "style="color:#FF0000; "> Change the color of the link </ a>
As you can see, the link has changed its color. What color will now be a link depends on the # FF0000. This special color code html, which is assigned to each color in the whole color palette. In order to determine what code has a particular color, I suggest to read the paper color palette html.How to remove the underline.
To remove the underlining need to encoding html links to add:
<a href="http:// www.site.ru "style="color:#FF0000; text-decoration:none"> Harvesting underline </ a>
As you can see, underline disappeared.How to change the color of links with CSS.
The above method, despite its simplicity, is rarely used. As a general rule, to obtain a web page, a table Stith style.css which prescribes the execution of all elements of a page, including, and links.
To change the color of all the links in the text is enough to register in the css file the following code:
a {
color: # 537CBC;
text-decoration: none
}
Well, that's all. Do not forget to rate articles and put huskies. And, of course, comment.

No comments:
Post a Comment