+ 1
Use bgcolor or background-color/background?
Realy, I don't understand where i can use one or another. I've read last of them is css language, but can I use both anywhere?. Thank's
4 Antworten
+ 2
Oh okay, in that case, bgcolor is an HTML attribute, whereas background-color is CSS. You can't use background-color in HTML, or vice-versa.
However, I would highly recommend you to start using CSS if you're into web designing, as attributes such as bgcolor aren't used anymore since CSS was introduced. Also, it isn't very hard to get started with :)
You can start with the sololearn CSS course:
https://www.sololearn.com/Course/CSS/
+ 2
Here is a relevant thread:
https://stackoverflow.com/questions/36863849/what-should-use-bgcolor-or-background-color
Note that googling questions like these is a good idea; this was the first result :)
0
Yes, I saw this, but I'm in html only (not css yet), the question is, Can I use in html both indiscriminately?. thank's for the answer
0
Ok, I'll do. Thank's.