Back

HTML hints

Simple, easy-to-use HTML snippets to help you format a web page or digital document.

Paragraph

<p>Your text</p>

Use paragraph tags around a body of text. Browsers automatically add space before and after each paragraph.

Try paragraphs

New line

<br>

A line break moves the following text onto a new line without starting a new paragraph.

Try a line break

Headings

<h1> through <h6>

Headings range from level 1 for the main heading to level 6 for the smallest subheading.

h1h2h3h4h5h6

Emphasis

<em>Important text</em>

Use <em> to give text extra emphasis. Browsers usually display it in italics.

Try emphasis

Strong importance

<strong>Important text</strong>

Use <strong> for important text. Browsers usually display it in bold.

Try strong text

Hyperlink

<a href="https://example.com">Link text</a>

Place the destination URL in the href attribute and the clickable text between the tags.

Try a hyperlink

Text alignment

<p style="text-align: left;">Text</p>

Change left to center or right to control horizontal alignment.

LeftCentreRight