0
can i add bgcolor atribute to div tag?
2 Antworten
+ 4
'bgcolor' is deprecated attribute in Html5...
You should use 'background-color' (or it's shorthand writting 'background') css property to set a background color to any element ^^
Inlined styling of your div should be something as:
<div style="background:red;">...</div>
Obviously, externalized css rules are better practice ;P
+ 4
yes,you can add background-color attribute
syntax:-
<body>
<div style="background-color:red;">
</div>
</body>