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 Respuesta
+ 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