Using Markup

Code samples use the HTML samp element as follows:

<html> <head></head> <body> <p>First Para</p> <p>Second Para</p> </body> </html>

Text sections that are asides (annotations to the main topic) are marked using the aside element:

The hr element can be used to split sections (see also Using Sub-titles).


The code element is used for inline code or programming-terms. The strong and em elements are rendered as bold and italic respectively by default.

The dfn element is now used instead of the index element to mark up terms suitable for adding to an index. The block kbd element is used to highlight command-line entry:

java -s -t keyboard-entry

See also: