What are inline elements and block-level elements in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What are inline elements and block-level elements in HTML?

6th Nov 2020, 2:32 AM
7fadil
7fadil - avatar
3 Answers
+ 6
inline elements are used to make the things like not start from a new line. So inline elements never start from a new line.But block level elements always start from a new line. Hope I helped you happy coding;
6th Nov 2020, 7:37 PM
Developer Ratul
Developer Ratul - avatar
+ 4
You already completed HTML course. You can check back on lessons. Do some research before asking questions. happy learning✌️ https://www.sololearn.com/learn/HTML/1034/
6th Nov 2020, 2:53 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar
0
Block elements are the blocks that take the full available width and always start from a new line. It will stretch itself to the full available width of the available container width. Block-level elements are <div>, <p>, <img>, <section> and many more. Inline elements are the elements that will only take the width that is required to fit into the container.
6th Nov 2020, 2:38 AM
perdail
perdail - avatar