0

Is <div> in HTML using only for background and the colour of the text?

Example <div style=ā€œbackground-colour: green; colour: white; padding:20px;ā€> <p>some txt </p> </div>

1st Aug 2021, 8:17 AM
ŠœŠ°Ń‚Š²ŠµŠ¹ Š‘Š°Ń€ŠŗŠ°Š½Š¾Š²
ŠœŠ°Ń‚Š²ŠµŠ¹ Š‘Š°Ń€ŠŗŠ°Š½Š¾Š² - avatar
1 Answer
+ 3
No, div's are containers, they could be used for applying different layouts on the page, as well as different styles.
1st Aug 2021, 8:20 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar