Saturday, July 16, 2016

What are the block and inline HTML tags?

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:
  • <div>
  • <h1> - <h6>
  • <p>
  • <form>
Inline element: 
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