mita.gopal Posted January 29, 2021 Share Posted January 29, 2021 Hi Guys, I was trying to do some html and I was using the style tag and the color tag. I wrote the code <p style="color: Dark Blue"> I am a boy.</p> It did not recognize the color dark blue and cream. Is this a bug? Thanks Link to comment Share on other sites More sharing options...
Carlos Guerra Posted February 3, 2021 Share Posted February 3, 2021 Isn't a bug, that's because HTML color names are a single-word DarkBlue, darkblue, DARKBLUE, DaRkBlUE = You got bluuuueeeee Dark blue, dark blue, DARK BLUE or otherwise with space = you got ⚠️ invalid value Link to comment Share on other sites More sharing options...
shaili_shah Posted February 5, 2021 Share Posted February 5, 2021 Use any one below given codes: <p style="background-color:DarkBlue">I am a boy.</p> OR <p style="background-color:#00008B">I am a boy.</p> OR <p style="background-color:000139">I am a boy.</p> For more color code see this : http://www.htmlcodes.ws/color/html-color-code-generator.cfm?colorName=DarkBlue You can use rgb color tag also : https://www.w3schools.com/html/html_colors_rgb.asp Hope this helps you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now