CSS & HTML Reference

Developer Animation

Table of Contents

HTML References

Block Elements

A block-level element always starts on a new line, and the browsers automatically add some space (a margin) before and after the element.
A block-level element always takes up the full width available (stretches out to the left and right as far as it can).

Table 1. A few block-level HTML elements
Tag Description
<h1> - <h6> <h1>defines the most important heading. <h6> defines the least important heading.
<p> Hitting a return in the HTML file will not make a new paragraph when the file is viewed. You need to use this tag to make a new paragraph.
<div> Defines a division or a section in an HTML document.
<ul> Groups a collection of items that do not have a numerical ordering, and their order in the list is meaningless.
<ol> Defines an ordered list. An ordered list can be numerical or alphabetical.