inline element (affect single line)
👇Lines( Example )
2. <span> hello </span>
Block element (affect multiple lines)
3. I love
you can use <span> inside <div> ,but you can't use <div> inside <span>
Div is an block element.
You can use it to slice your html code into smaller pieces, and stylish them.
span is an inline element and you can use it to stylish something inside an element (like a paragraph)
<p>Hello<span style=color:red;> there</span></p>