+ 2

How to identify the tags which are inline or block level elements in HTML?

13th Jan 2020, 5:24 AM
Manujaya Vimukthi
Manujaya Vimukthi - avatar
2 Antworten
+ 4
I used to see the meaning 😐And practice more.You will find it automatically. A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). Example : <div> </div> it always in a new line. An inline element does not start on a new line and only takes up as much width as necessary. Ex: <img>
13th Jan 2020, 2:05 PM
Tanvir Khan
Tanvir Khan - avatar
+ 1
Clear and straight forward answer my brother.
13th Jan 2020, 5:22 PM
Stephen Phiri
Stephen Phiri - avatar