Html Elements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Html Elements

I cant understand what is ment by inline elements an non braking elements please explain with Example

24th Oct 2017, 12:25 AM
Vinay.s
Vinay.s - avatar
4 Answers
+ 3
Inline elements are those elements which do not usually begin on a new line, these are <b>, <i>, <u>, <a>,<img> and so on. It is probably the "non-breaking space" you meant, or the &nbsp; It creates a white space between words or web page elements, also prevent the browsers to truncate spaces in HTML pages. If you write 10 spaces in your text, the browser will remove 9 of them. So to add real spaces to your text, you can use the &nbsp; character entity. (I googled it for you since I was having a hard time composing the explanation on my own hahaha)
24th Oct 2017, 1:33 AM
Princess Del Pilar
Princess Del Pilar - avatar
24th Oct 2017, 1:44 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
#Princess Del Pilar .. Thank you
24th Oct 2017, 1:40 AM
Vinay.s
Vinay.s - avatar
+ 1
#Princess Del Pilar .. Ok
24th Oct 2017, 1:48 AM
Vinay.s
Vinay.s - avatar