Basic HTML Formatting Print

  • 0

HTML gives a page its structure. If you use WordPress or a visual page builder, use its normal text controls for everyday editing. Use an HTML or code element only when you need to enter markup directly.

Common HTML elements

  • <p> creates a paragraph.
  • <h2> and <h3> create section headings. Choose headings for their place in the page structure, rather than their size.
  • <strong> marks important text; <em> marks emphasis.
  • <a> creates a link. Use link text that describes its destination.
  • <ul> and <li> create a bulleted list.
  • <br> inserts a line break inside a block of text. Use paragraphs for separate paragraphs.

Example

<h2>Contact our team</h2>
<p>Please include your <strong>domain name</strong> when requesting help.</p>
<p><a href="/contact/">Contact us</a></p>

Most elements have an opening and closing tag. Keep elements properly nested, and put attribute values, such as a link destination, inside quotation marks.

Use CSS for visual styling. The old <tt> and <strike> elements should not be used in new markup. Do not paste a complete HTML document into a page builder's text field.

Preview the page after editing and check its links on both desktop and mobile.


Was this answer helpful?

« Back