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


What is Display: inline ?

Display: inline

5/10/2021 1:42:28 AM


3 Answers

New Answer


... 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!


Please explain


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.