Skip to main content

Text Formatting

In this page, you will learn how to format a text using html.

About text formatting

Text formatting is used for fonts, colors, bold, italic attributes. It's used so that the text will be more presentable. Text formatting is also used for designs and colors.

Text formatting uses an attribute such as font-family and font-color. Some attributes have tags such bold and emphasis. It has <em> tag for emphasis and <strong> tag for strong.

Sample

Here are some samples of text formatting that uses the said attributes above.

These are the few samples of each formatting attribute. Next will be a sample sentence with a text formatting.

Sample Formatting

Here are the samples of text formatting with the corresponding syntax.

<h1 align="center" style="font‐family:pristina;color:blue;">Sample Sentence</h1>

The <em>quick brown</em> fox jumps over the <strong>lazy</strong>dog.

<p style="font‐family:calibri;color:green;" align="justify">My name is <strong>Maria Ellena Del Puerto</strong>.</p>

Try It

If you want to try what you have learned in this page, open a notepad and perform them.




Back to home
back to top


© CopyrightMMK 2017