P
P
pegas2017-02-13 22:12:53
css
pegas, 2017-02-13 22:12:53

A block element cannot contain block and inline elements together?

I read the following in this article "Block elements can contain both inline and block elements, but not both types of elements at once." What is that supposed to mean? those. can't do that? https://jsfiddle.net/toe0nkwc/? Everything seems to work and display.
https://html5book.ru/block-inline-elements/ Here you go. At the end of heading 3. Block elements and block containers

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2017-02-13
@1PeGaS

Translation error or inaccuracy. In addition, the outdated division into types. Everything is much more interesting in html5 =)
Read better MDN (translated into Russian well, but not completely)
https://developer.mozilla.org/en-US/docs/Web/HTML/...
https://developer.mozilla .org/en-US/docs/Web/Guide...

S
Sergey, 2017-02-14
@serzhAnt00

This is according to the old specification such rules. And you need to read not Mozilla, but the original source w3c.github.io/html/single-page.html#content-models.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question