Inline V/S Block Level Element

What is Element?

  1. An element is the combination of opening tag, closing tag and text between the opening and closing tag.
  2. The following figure helps you to understand, what is an element?
Element in Html

Types of Element in HTML

  1. Block level elements
  2. Inline elements

Block level Element

  1. Block Level elements are those which always starts from a new line.
  2. Examples of block level elements
    1. All Headings (h1,  h2,  h3,  h4, h5, h6)
    2. Paragraphs
    3. Lists

Inline Element

  1. Inline elements are those, which don’t change the line automatically.
  2. Examples of inline element
    1. Bold (<b>Bold</b>)
    2. Italic (<i>Italic</i>) 
    3. Underline (<i>Underline</i>)
    4. Links (<a>Links</a>)

Watch the video


Comments

Popular posts from this blog

String in golang

Floating point Data types in Go lang

Escape Sequence | Formatted Printing | Interview Questions

Program to check a year is leap year or not.

Printing in C programming

Arrays in C Language

Operators in C Language| Part-4

Sum of two numbers

Data types in Java