Welcome Guest! (App Version 3.1)
IntroductionHTML Tutorial What is HTML? My First Program in HTML Doctype Block Elements in HTML Inline Elements in HTML
Box ModelWhat is Box Model Content in Box Model Padding in Box Model Border in Box Model Margin in Box Model
HTML TagsDiv Tags H1 to H6 Tags Paragraphs Tags Span Tags Bold Tags Italic Tags
HTML UtilitiesAdding Images Adding Hyperlinks Adding Comments Types of Lists Tables Iframes Breaking Lines Horizontal Line
FormsForms in HTML Text-Box Radio Checkbox Select and Option Text Area Button Submit
HTML 5What is new in HTML5 Syntax Changes New Elements & Properties Semantic Tags New Elements New Input Types Graphics Support Canvas SVG Media Support Audio Video Client Side Storage Local Storage Session Storage Indexed DB Web SQL [dep] Cookies API Support Web Worker Web Sockets Service Worker App Cache [dep] SSE Drag & Drop Geolocation
HTML QuizHTML Quiz 1
Inline elements are those elements which stack to each other in the same line if there is space available. Their nature is opposite to the nature of 'Block Elements'.
While 2 block elements (say, a div and a p) will take full space in width and each will go to a separate line, any 2 inline elements (say, a span and an anchor) will stack together in the same line.
<span> This is a span. </span>
<b> This is in bold. </b>
<i> This is in italics. </i>
The inline elements can be said to be Super-Adjusting. They do not have a rigid behavior like that of 'Block Elements', but rather they are fluid in nature.
Try to put 10 span elements and they will get stacked to the same line (if space is available).