Div block not showing

Neither would I, but it is valid HTML5 and it is demonstrated in the tutorial video.

As copying and pasting the code from the OP’s post into an HTML document produces the expected result for me, I can only guess that there is something else in the linked style sheet causing the issue - maybe something as simple as a missing curly brace, or a semi-colon instead of a colon.

@piano0011: if you are not already in the habit of using the W3Validators, I suggest you adopt it now. They will save you hours of frustration.

For HTML: https://validator.w3.org/nu/

For CSS: https://jigsaw.w3.org/css-validator/

1 Like