“apa perbedaan antara span dan div” Kode Jawaban

apa perbedaan antara span dan div

* div – Block Element
-> A block-level element always starts on a new line and takes up the
full width available (stretches out to the left and right as far as it
can).
<div> </div>

* span – Inline Element
-> An inline element does not start onanew line and only takes up as
much width as necessary.
<span> </span>
Abhishek

Span vs Div

div is a block element
span is an inline element.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flow_Layout/Block_and_Inline_Layout_in_Normal_Flow
DeuxAlpha

Jawaban yang mirip dengan “apa perbedaan antara span dan div”

Pertanyaan yang mirip dengan “apa perbedaan antara span dan div”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya