+ 1
How do I easily learn to differentiate between inline and block elements ? Plz help
5 ответов
+ 3
If you're only given the name, you'll have to just study it.
Examples of block elements:
<p> <h1> (all headings from 1 to 6) <form> <div>
Here's a full list: https://developer.mozilla.org/nl/docs/Web/HTML/Block-level_elements
Examples of inline elements:
<span> <img> <a>
Here's a full list: https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements
+ 1
Block elements take up the full width and start at a new line. Inline elements take up as many width as they need and don't start a new line.
https://www.w3schools.com/html/html_blocks.asp
+ 1
Try it yourself
https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
0
how to differentiate if I only happen to be given only the name of the element like in the challenge
0
thanks