0 votes
99 views
in HTML by (3.5k points)
edited

What are Inline and block elements in HTML?

1 Answer

0 votes
by (3.5k points)
edited
The block elements take up the full page width and start on a new line, instead of inline element that only take the space to accommodate the length of the content and continue on the same line. Some examples of block elements are <div>, <p>, <header>, <footer>, <h1>&hellip;<h6>, <form>, <table>, <canvas>, <video>, <blockquote>, <pre>, <ul>, <ol>, <figcaption>, <figure>, <hr>, <article>, <section>, etc.  Some examples of inline elements are <span>, <a>, <strong>, <img>, <button>, <em>, <select>, <abbr>, <label>, <sub>, <cite>, <abbr>, <script>, <label>, <i>, <input>, <output>, <q>, etc.

Related questions

0 votes
1 answer 111 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 98 views
0 votes
1 answer 120 views
0 votes
1 answer 93 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

537 users

...