HTML Text

This page contains HTML text codes as well as links to other relevant HTML text pages. HTML text code consists of a number of CSS properties - each that specify a certain property of the text. When combined, these properties determine what the overall HTML text should look like.

Common HTML Text Tasks

The most common tasks when working with HTML text tend to be setting the font family and making the text bold or italic. Text color is also another big one, as well as font size.

The examples below combine the various CSS text properties to demonstrate these common HTML text requirements. For more advanced requirements, check out the various HTML text links in the navigation.

Explicit Font Properties

Source CodeResult

This amazing piece of HTML text uses various font properties to set it's style.

Shorthand Font Properties

The following example uses the shorthand font property to set all styles in one go.

Source CodeResult

This amazing piece of HTML text is using the font shorthand property to set the font family, style, boldness, size, and line-height all in one. We also use the color property to set the text color.

More HTML Text

For more advanced requirements, check out the various HTML text and font links below.

About the HTML Codes

The HTML code on this page is provided free of charge, for you to use however you wish. Feel free to modify the code to suit your own needs.

External Style Sheets

Most of the HTML codes on this website use inline CSS. If you intend to use the codes across your whole website, you should place the CSS into an external style sheet.

To learn more, check out this explanation of external style sheets.

Web Hosting

Our partner site, ZappyHost, is a professional web hosting company providing website hosting, domain names and related products. If you need web hosting, check them out!