0

can we use all styles and attributes used in div tag in html4 within article tag in html5 ?

in html5 course content i had read that article tag is used mainly as the place of div tag which is from html4 family.

10th Jun 2016, 1:58 AM
Shiva Bhardwaj
Shiva Bhardwaj - avatar
4 Respuestas
+ 1
Yes, I think you can, as the article tag is basically a container tag, just like a div.
10th Jun 2016, 6:57 AM
James Flanders
0
how to use color tag in it ?
10th Jun 2016, 6:59 AM
Shiva Bhardwaj
Shiva Bhardwaj - avatar
0
article { height: 20vh; width: 20vh; color: red; background-color: wheat; }
10th Jun 2016, 12:28 PM
Trikyas.com
Trikyas.com - avatar
0
or give the article tag a id="uniqueid" or a class="nameCanBeUsedMultipleTimes" and style it that way.
10th Jun 2016, 12:30 PM
Trikyas.com
Trikyas.com - avatar