1.

Inline and block elements in HTML5?

Answer»
InlineBlock
Inline elements just take up the space that is absolutely necessary for the content and does not start from a new line.
Example:- <SPAN>, <a>, <strong>, <img>, <button>, <em>, <select>, <abbr>, <label>, <sub>, <cite>, <abbr>, <script>, <label>, <i>, <input>, <output>, <q>, etc.
Block elements start on a new line and consume the full width of the PAGE available.
Example:- <DIV>, <p>, <header>, <footer>, <h1>...<h6>, <form>, <table>, <CANVAS>, <video>, <blockquote>, <pre>, <ul>, <ol>, <figcaption>, <figure>, <hr>, <ARTICLE>, <section>, etc.


Discussion

No Comment Found