+ 3
COLOR attribute belongs to HTML or CSS ???
COLOR attribute belongs to HTML or CSS ??? it worked for CSS but not for HTML. can we use "Color" attribute to change text color in HTML.
5 Respostas
+ 10
html:
<p style = "red"> This is a colored line of text </p>
css:
p {
color:red;
}
You can use both
+ 3
There is also <font color='red'>This is red text.</font> in pure HTML.
+ 2
Ramon dear I think that is css . inline CSS, if I am not wrong
+ 2
Before css, you had to add all styles in the html file, so, developers thought in a way to make it easier, thats how css born. So, it can belong to the both files, but if you try to do it all in the html file, you will spend a lot of time styling your page.
+ 1
it means we can change color indirectly using <font> tag.
instead of directly using it ,like :
<h1 color ="blue"> heading </h1>