/

HTML / CSS / JavaScript Tutorial

HTML Phrase elements

[this page | pdf | back links]

Some HTML formatting elements are typically used to delineate text of specific types. These HTML elements are called ‘phrase’ elements:

 

Tag

Description

More

Further comments

<code>

A piece of computer code

Here

 

<em>

Emphasised text

Here

Often used to italicise text, but ideally this should be done using CSS

<kbd>

Keyboard input

Here

 

<samp>

Sample output from a computer program

Here

 

<strong>

Defines more important text

Here

Commonly used as a way of highlighting text or making it bold

<var>

Variable

Here

 

 

The default styles applicable to these elements are shown here.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile