What is block-level and Inline element.

Block-Level Element

एक Block-Level Element हमेशा एक नई लाइन  से Start होता है और Left और Right side मे जितनी भी width उपलब्ध होती है उसमे फैल जाता है

 <div> element is a block-level element.

Here are the block-level elements in HTML:

<address>              <article>

<aside>                  <blockquote>

<canvas>                <dd>

<div>                        <dl>

<dt>                         <fieldset>

<figcaption>           <figure>

<footer>                  <form>

<h1>-<h6>             <header>

<hr>                         <li>

<main>                   <nav>

<noscript>              <ol>

<p>                        <pre>

<section>           <table>

<tfoot>                 <ul>

<video>


Inline Element

एक  Inline Element एक नई लाइन से शुरू नहीं होता है और यह केवल आवश्यक होने  पर ही अधिक  width   लेता है।

This is a <span> element inside a paragraph


Here are the inline elements in HTML:


<a>             <abbr>            <acronym>          <b>

<bdo>        <big>                 <br>                     <button>

<cite>        <code>             <dfn>                   <em>

<i>             <img>                <input>               <kbd>

<label>      <map>              <object>             <output>

<q>             <samp>            <script>             <select>

<small>     <span>             <strong>            <sub>

<sup>       <textarea>         <time>                 <tt>

<var>


Comments