This is the Seventh part of the HTML course for front-end web development. Starting with HTML is like making a skeleton of a website. and today we will learn about, Inline And Block Elements In HTML. block level elements and inline elements in html difference between inline and block elements in html inline and block element in html.
Join us on Telegram (NEW)
The first line of an inline element does not begin on a new line.
An inline element takes up only as much space as is required.
Within a paragraph, there is a <span> element.
Inline Elements Doesn’t start from a new line
<body> <span>Inline Elements</span> <span>Doesn't start from</span> <span>a new line</span> </body>
List of Inline elements in HTML
Every block-level element begins on a new line.
A block-level element always occupies the entire available width (stretches out to the left and right as far as it can).
An inline element does not have a top or bottom margin, whereas a block level element has.
<body> <div>Block Elements</div> <p>starts from</p> <p>a new line</p> </body>
a new line
List of Block Elements in HTML
Topic Covered Previously
- Boilerplate of HTML used for web development
- HTML head and tag?
- How to add and link image to other page in HTML
- How to create tables in HTML | Web Development
- To create list in HTML, Ordered and unordered
- HTML Forms | Create forms in HTML