HTML <div> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

HTML <div>

what is the main purpose of using<div> as an <inline block > element works same

6th Aug 2022, 7:01 AM
Nomeena Abbasi
Nomeena Abbasi - avatar
2 Answers
+ 9
instead of <header>, <article> , <section> etc.. <div> tags can be used In HTML5 div tag is a block element and it is a container for elements in HTML You can even use css to style div tags using either id or class attribute it's up to you
6th Aug 2022, 7:31 AM
Suparna Das
Suparna Das - avatar