The HTML tags has two different types, the block elements and the inline elements.
Block element:
The block element takes the entire width of the page and does not allow any element on the same line. Following are some block elements:
The inline element takes only the space it needs and allow any element beside it. Following are some inline elements:
Block element:
The block element takes the entire width of the page and does not allow any element on the same line. Following are some block elements:
- <div>
- <h1> - <h6>
- <p>
- <form>
The inline element takes only the space it needs and allow any element beside it. Following are some inline elements:
- <span>
- <a>
- <img>
No comments:
Post a Comment