+ 1
Whats is element block? Example
2 ответов
+ 2
block-level element is an an element, which leaves margin before the previous element and after the previous element.
inline-element is an element that doesn't leave space between other elements.
Som block level elements: <p> , <h1-6> , <div>
Some inline elements: <span> , <i> , <strong>
<p><span>place this in here</span></p>
Here he wave inline element <span> inside block element <p>
+ 1
The HTML element is everything from the start tag to the end tag:
This is a paragraph start tag: <p>
Tthis is the end tag </p>
This is a paragraph element: <p> Hello welcome to sololearn</p>
block elements take up an entire block
inline elements are inline on same line.
https://code.sololearn.com/WUzw5Plti1MV/?ref=app