Hi everyone!
Can someone help me to solve this problem: when I check with the validator https://validator.w3.org/ to neuro-nocker.at/team.html it always comes this error:
Maybe there is a code-specialist for helping!
Thanks, waiting for answers!
Clemens
Block elements are not allowed inside inline elements . In this case, the button tag is an inline elements while div tag is a block element.
Thank you, but how can I change the code, that the site still works!
Thanks
truegunner:
inline elements
Thank you!
How can I change the code, that there is no error?
LG
Clemens
If you’re trying to put a hamburger icon inside the button. I guess you could trying using the span element.
truegunner:
span
Wow thats it!
Thank you truegunner!
Best wishes
Clemens
1 Like
Hi truegunner!
Maybe you know an answer for this warnings!
Thanks!
LG
Clemens
It’s just a warning. It is suggesting that each <section>
should have a header.
<section>
<h2>Section header</h2>
</section>
Thank you very much!
LG
Clemens
Hi, can you please update the post and mark my answer as the solution? I’m new around here, I don’t know how it works.
Hi!
The answer was to replace the div tag to span tag
Thanks
Clemens
Neurologie Innsbruck