Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu May 13, 2023 › #anchor #color

How to change link color in HTML without CSS

If you want to change the color of a link in HTML without CSS, I think you can learn something new in this article.

I will share two different ways to change link color without CSS using only HTML.

Change link color using the font tag. #

We can use font tag to change hyperlink color without CSS. The example is given below.

<a href="https://www.3schools.in"> 
  <font color="red">
     Visit 3schools
  </font>
</a>
The font tag is not supported in HTML5 .

Change hyperlink color using the link and vlink attributes. #

The link, vlink and alink attributes of the body element allow us to change the color of the hyperlink in a Document .

<body link='red' vlink='orange' alink='green'>
    <a href="https://www.3schools.in">
      Visit 3schools
    </a>
</body>
link It adds style to the unvisited link.
vlinkIt is used to add style to a visited link.
alinkIt adds style to an active link.
The link, vlink, alink attributes of the body element are not supported in HTML5.
save
listen
AI Answer
Write Your Answer
loading
back
View All