What is Display: inline ? | Sololearn: Learn to code for FREE!

0

What is Display: inline ?

Display: inline

5/10/2021 1:42:28 AM

Margarito

3 Answers

New Answer

+4

... p.ex2 {display: inline;} ... Displays an element as an inline element (like <span>). Any height and width properties will have no effect source: https://www.w3schools.com/cssref/pr_class_display.asp Btw. please mention the language in tags!

0

Please explain

0

Margarito you complete HTML Course and you don't know this ? Block level elements start from a new line. For example: <h1>, <form>, <li>, <ol>, <ul>, <p>, <pre>, <table>, <div>, etc. Inline elements are normally displayed without line breaks. For example: <b>, <a>, <strong>, <img>, <input>, <em>, <span>, etc.