BLOCK Elements – Which take up a block of area on HTML, forcing next element to come on next line
- Paragraph - <p>
- A definition term in a definition list. - <dt>
- The definition of a term, in a definition list. - <dd>
- An ordered (enumerated) list. - <ol>
- An unordered (bulleted) list. - <ul>
- A list item in ordered (ol) or unordered (ul) lists - <li>
- Address - <address>
- Blockquote - <blockquote>
- center - < center>
- del Marks a deleted section of content. This element can also be used as inline. - <del>
- div A block-level logical division. - < div>
- ins Marks a section of inserted content. This element can also be used as inline. - <ins>
- noscript Replacement content for scripts. Unlike script this can only be used as a block-level element. - < hr>
- pre Pre-formatted text. - <pre>
- script Places a script in the document. Also usable in the head and in inline contexts. Note: SCRIPT is not itself either a block or inline element; by itself it should not display at all, but it can contain instructions to dynamically generate either both block or inline content. - <script>
Please check the below given example on jsfiddle
View it on JSFIDDLE
No comments:
Post a Comment