+ 1

How h1 is block level element?

Block level element

4th Mar 2020, 3:28 PM
James Freeman
5 ответов
+ 8
A simple way to tell whether an element is a block level element was to see - whether a new line is automatically inserted following the element (in preview mode). This behaviour may be overridden with CSS perhaps, but by default, a block level element is rendered on its own line. Next element will be rendered below the block element.
4th Mar 2020, 3:36 PM
Ipang
+ 5
Ipang answered one way but here is another example as well. https://code.sololearn.com/W5hI5FykDyy4/?ref=app
4th Mar 2020, 3:53 PM
BroFar
BroFar - avatar
+ 2
James Freeman exactly !
4th Mar 2020, 3:45 PM
JS LOVER
JS LOVER - avatar
+ 2
its a heading, its someting closer to a Title or a Headline in real life. so it semantically (not sure what words i should use here) correct for it to have its own line, before the actual content. i mean imagine an newspaper article. their news title always seperated from the news it self.
4th Mar 2020, 3:57 PM
Taste
Taste - avatar
+ 2
Because it takes the whole width of the page with a line break while inline element dont do like this
6th Mar 2020, 5:27 AM
Junaid Asghar