References : HTML 4.0

 | Index | 
 | Structure | Text paragraphs and phrases | Text formatting | Lists | Links | Tables | Frames | Embedded content | Style | Forms | Scripts | 
 | All tags | 

Text paragraphs and phrases

Text phrases (or blocks) can be structured to meet a specific need, such as creating a paragraph. This should not be confused with changing text formatting.

<acronym> | <address> | <blockquote> | <br> | <cite> | <code> | <del> | <dfn> | <em> | <ins> | <kbd> | <p> | <pre> | <q> | <samp> | <strong> | <sub> | <sup> | <var>

<acronym>...</acronym>
Defines an acronym.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<acronym>This text is rendered as an acronym</acronym>
 
 Top
<address>...</address>
Provides a special format for author or contact information.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Notes The <br> element is often used in the <address> element to break the lines of an address.
 
Example<address>This text is rendered as a postal address</address>
 
 Top
<blockquote>...</blockquote>
Displays long quotations.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
cite="...": Quoted text URL.
 
Empty No
 
Example<blockquote>This text is rendered in quotation form</blockquote>
 
 Top
<br>
Inserts a line break.
 
Starting/ending tag Required/Illegal
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated clear="...": Defines the location where the next line starts after a floating object (none, left, right, all).
 
Empty Yes
 
Notes In XHTML 1.0, this tag should be in the form <br /> to ensure compatibility with older browsers
 
 Top
<cite>...</cite>
Cites a reference.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<cite>This text is rendered in citation form</cite>
 
 Top
<code>...</code>
Identifies a code snippet to display.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<code>This text uses a code-style font</code>
 
 Top
<del>...</del>
Shows the text deleted from the document since the last version.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
cite="...": Source document URL.
datetime="...": Indicates the date and time of the change.
 
Empty No
 
Notes New element in HTML 4.0
 
 Top
<dfn>...</dfn>
Highlights a term in a text.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<dfn>This text is highlighted</dfn>
 
 Top
<em>...</em>
Emphasizes a section of text
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<em>This text is emphasized</em>
 
 Top
<ins>...</ins>
Shows text that has been inserted in the document since the last version
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
cite="...": source document URL.
datetime="...": Indicates the date and time of the modification.
 
Empty No
 
Notes New element in HTML 4.0.
 
 Top
<kbd>...</kbd>
Specifies the text that users should type.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<kbd>This text uses a typewriter-style font"</kbd>
 
 Top
<p>...</p>
Defines a paragraph.
 
Starting/ending tag Required/Optional (HTML)
Required/Required (XHTML 1.0).
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated align="...": Controls alignment (left, center, right, justify).
 
Empty No
 
 Top
<pre>...</pre>
Displays pre-formatted text.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated width="...": Pre-formatted text width
 
Empty No
 
Example<pre>This text is pre-formatted</pre>
 
 Top
<q>...</q>
Displays short quotations without paragraph breaks
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
cite="...": Quoted text URL.
 
Empty No
 
Notes New element in HTML 4.0.
 
Example<q>A short quotation</q>
 
 Top
<samp>...</samp>
Identifies a displayed example.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<samp>This text is rendered as a quoted example</samp>
 
 Top
<strong>...</strong>
Applies stronger highlighting
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<strong>This text is rendered with stronger highlighting</strong>
 
 Top
<sub>...</sub>
Creates a subscript.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<sub>This text is rendered as a subscript</sub>
 
 Top
<sup>...</sup>
Creates a superscript
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<sup>This text is rendered as a superscript</sup>
 
 Top
<var>...</var>
A variable
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Example<var>This text is rendered as a program variable</var>
 
 Top

 | Index | 
 | Structure | Text paragraphs and phrases | Text formatting | Lists | Links | Tables | Frames | Embedded content | Style | Forms | Scripts | 
 | All tags |