What is an inline element in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is an inline element in HTML?

22nd Apr 2018, 1:20 AM
Tanay Shirodkar
Tanay Shirodkar - avatar
2 Answers
+ 3
Inline elements won’t start a new line. They can be on the same line as other inline elements. They include span, a, and input. The opposite are block elements which will go to a new line. They can’t be on the same line as anything. They include p and all the headings. There are also hidden elements which are not visible and do not take up space
22nd Apr 2018, 1:27 AM
Ariela
Ariela - avatar
+ 4
HTML inline elements 1. HTML inline level elements can appear in the body of an HTML page. 2. It can contain data and other inlineelements. 3. By default, inline elements do not begin on new lines. 4. inline elements create shorter structures (than block level elements). Inline elements in HTML: <a> <abbr> <acronym> <b> <big> <br> <button> <cite> <code> <dfn> <em> <i> <img> <input> <label> <map> <object> <q> <samp> <script> <select> <small> <span> <strong> <sub> <sup> <textarea> <time> <tt> <var>
22nd Apr 2018, 1:29 AM
Mahmudul Hasan Fahim
Mahmudul Hasan Fahim - avatar