Inline Elements

Inline elements are HTML elements that by default are placed side-by-side into lines. (Paragraphs are blocks, an italicized word is inline.)

 

Normally, if no styles change the default behaviour, elements of the following types are considered inline elements (some of these types are not allowed in strict HTML 4 and XHTML):

 

Fontstyle (use style sheets instead)

 

  * T

  * I

  * B

  * BIG

  * SMALL

 

Phrase

 

  * EM

  * STRONG

  * DFN

  * CODE

  * SAMP

  * KBD

  * VAR

  * CITE

  * ABBR

  * ACRONYM

 

Special

 

  * A

  * IMG

  * OBJECT

  * BR

  * SCRIPT

  * MAP

  * Q

  * SUB

  * SUP

  * SPAN

  * BDO

 

Form controls

 

  * INPUT

  * SELECT

  * TEXTAREA

  * LABEL

  * BUTTON

 

It’s not too common to cause these to be rendered as blocks, but you can do it simply by adding the CSS declaration display: block.