Block level vs. Inline tags | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Block level vs. Inline tags

What is the point of ‘inline’ in the description of the tag categories?

21st Jul 2020, 3:32 PM
123
2 Réponses
+ 2
Inline elements stay on th same line. E.g. span, a, em Block level move to the next line e.g. div, p, section.
21st Jul 2020, 9:52 PM
Logomonic Learning
Logomonic Learning - avatar
+ 1
Simple terms, inline tags are can be applied to a single line of statement or part of the text. It won't add line break before and after. But Block level tags applies line break so it always starts a new line.. and can extends its functionality to a block of code.... Edit: this explains more clrealy... See https://www.w3schools.com/html/html_blocks.asp
21st Jul 2020, 4:14 PM
Jayakrishna 🇮🇳