Different Color Links on the Same HTML Page

后端 未结 5 2015
傲寒
傲寒 2020-12-30 09:08

Hi I am trying to have different color links on the same page. I want some links to be blue and some links to be black. I am new to html and CSS so thank you in advance!

5条回答
  •  孤独总比滥情好
    2020-12-30 09:10

    RED
    
    RED
    

    As seen above, you simply input style="color: ###" in the a href to set it to whatever you want if you wish to set each individual link. :)

    For more general, use

    RED
    
    RED
    

    and in your CSS file state

    .red {
    color: red;
    }
    
    .blue {
    color: blue;
    }
    

提交回复
热议问题