Saturday, November 19, 2016

HTML Block-level Elements

Elements in HTML are either block-level or inline. A block-level element occupies the entire space of its parent element (container), thereby creating a block. Browsers typically display the block-level element with a newline both before and after the element. You can visualize them as a stack of boxes. Refer to the following link for more information.


<address>         Contact information.
<blockquote> Long ("block") quotation.
<dd>         Definition description.
<div> Document division.
<dl> Definition list.
<fieldset> Field set label.
<form> Input form.
<h1>, <h2>, <h3>, <h4>, <h5>, <h6> Heading levels 1-6.
<hr> Horizontal rule (dividing line).
<li> List item.
<main> Contains the central content unique to this document.
<nav> Contains navigation links.
<noscript> Content to use if scripting is not supported or turned off.
<ol> Ordered list.
<p> Paragraph.
<pre> Preformatted text.
<q> Short quote.
<table> Table.
<tfoot> Table footer.
<ul> Unordered list.


HTML 5 Block-level elements.

<article> Article content.
<aside> Aside content.
<canvas> Drawing canvas.
<figcaption> Figure caption.
<figure> Groups media content with a caption.
<footer> Section or page footer.
<header> Section or page header.
<hgroup> Groups header information.
<output> Form output.
<section> Section of a webpage
<video> Video player.


Video player.

No comments:

Post a Comment