What is Element?
- An element is the combination of an opening tag, closing tag and text between the opening and closing tag.
- The following figure helps you to understand, what is an element?
Types of Element in HTML
- Block-level elements
- Inline elements
- Block Level elements are those which always starts from a new line.
- Examples of block-level elements
- All headings (h1, h2, h3, h4, h5, h6)
- Inline elements are those, which don’t change the line automatically.
- Examples of inline element
- Bold (<b>Bold</b>)
- Italic (<i>Italic</i>)
- Underline (<i>Underline</i>)
- Links (<a>Links</a>)