HTML Block and Inline Elements
In this chapter we learn display value for most elements is block or inline.
A block-level element starts left to right as far
Examples of block-level elements:
- <h1> - <h6>
An inline element does not start left to right you can place anywhere
This isa paragraph.
some example of inline elemets:
The <div> Element
Simple example are given:-
<p> India (IAST: Bhārat), also called the Republic of India (IAST: Bhārat Gaṇarājya), is a country in South Asia. It is the seventh-largest country by area, the second-most populous country (with over 1.2 billion people), and the most populous democracy in the world.</p>
The <span> Element
The <span> element is an inline element that is often used as a container for some text.
<span< element have style and class no required attributes
When used together with CSS, the <span> element can be used to style parts of the text:
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.