Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
The img tag behave as a block element? - bug-code.com Q&A

The img tag behave as a block element?

0 like 0 dislike
26 views
I thought the img in the browser is displayed as a line item.
Why in my example it as a block?
asked by | 26 views

2 Answers

0 like 0 dislike
The img tag behave as a block element?

no, this line item by default:
\rhttps://developer.mozilla.org/en-US/docs/Web/HTML/...

Why do I get the example as a block?

Another question, why did You decide that it behaves like a block?
answered by
0 like 0 dislike
it behaves as inline-block, the browser writes that inline, it's a Replaceable item
answered by
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers

0 comments

12.7k users

24,788 questions
46,220 answers
0 comments
12,715 users