+ 1

Whats is element block? Example

10th Jan 2023, 4:08 PM
Bob Shawn Fuentes Gomez
Bob Shawn Fuentes Gomez - avatar
2 Answers
+ 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>
10th Jan 2023, 4:22 PM
Lamron
Lamron - avatar
+ 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
11th Jan 2023, 1:35 AM
Chris Coder
Chris Coder - avatar