+ 1

How do I easily learn to differentiate between inline and block elements ? Plz help

2nd Jun 2017, 10:40 AM
Gaurav Saha
Gaurav Saha - avatar
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
2nd Jun 2017, 11:02 AM
Maart
Maart - avatar
+ 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
2nd Jun 2017, 10:52 AM
Maart
Maart - avatar
10th Oct 2017, 8:55 AM
Calviղ
Calviղ - avatar
0
how to differentiate if I only happen to be given only the name of the element like in the challenge
2nd Jun 2017, 10:54 AM
Gaurav Saha
Gaurav Saha - avatar
0
thanks
2nd Jun 2017, 11:04 AM
Gaurav Saha
Gaurav Saha - avatar