Home Ask Login Register

Developers Planet

Your answer is one click away!

user5893144 February 2016

how do you change <li> font color? in html.or css

I tried many websites, books, but can't find a way to change <li> font color in html...pls help.


dev35000 February 2016

Quick answer : put this in your css file

li {
    color: red; /* or whatever color you prefer */

SathishPurushothaman February 2016

a. Use inline style attribute <li style="color:blue">

b. Define style in the head section of your html document.


c. Define the style for li option in a css file and use <link> tag to reference that file.

Post Status

Asked in February 2016
Viewed 2,812 times
Voted 11
Answered 2 times


Leave an answer

Quote of the day: live life