What is div?
🔹 Block-level element
🔹 Always starts on a new line
🔹 Takes 100% width of parent
🔹 Pushes content above & below
Used for:
Layouts, sections, cards, containers
Think of div as the structure of a webpage 🧱
#GrowWithRajj#WebDevelopment#html5developers
⬇️
Why div and span behave differently in HTML
Browsers follow something called document flow to place elements on a page.
That’s why some elements start on a new line while others don’t.
Two most common ones:
🧱 div and 🧩 span
#GrowWithRajj#WebDevelopment#html5developers
⬇️
Want to develop your #mobileapp on #HTML5? Hire our dedicated #HTML5developers who can build dynamic applications that are high on functionality and offer an unmatched experience to the users. Visit: bit.ly/3ztFI7E