+ 2

How do you know the difference between block level and inline level tags in HTML?

In other words, how do you calculate which one is which?

6th Jan 2018, 7:17 PM
Sid
Sid - avatar
4 Answers
+ 1
block level start on new lines and inline ones are.. in line (by default) https://www.w3resource.com/html/HTML-block-level-and-inline-elements.php @Vukan not sure about that, <a></a> is an inline element
6th Jan 2018, 8:58 PM
Dan Walker
Dan Walker - avatar
+ 4
inline elements haven't closing tag like <img/> and block level have like <p></p>
6th Jan 2018, 7:29 PM
Vukan
Vukan - avatar
7th Jan 2018, 1:00 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
thanks @Vukan. That was the best answer so far.
6th Jan 2018, 7:35 PM
Sid
Sid - avatar