How To Highlight Text With Html

Table of contents:

How To Highlight Text With Html
How To Highlight Text With Html

Video: How To Highlight Text With Html

Video: How To Highlight Text With Html
Video: How to Create Text Highlight use HTML and CSS 2024, November
Anonim

To highlight the main idea in oral speech, intonation is used, and in writing, a font change is used. Using the html markup language, you can highlight fragments of text by varying the color, size and appearance of letters.

How to highlight text with html
How to highlight text with html

Instructions

Step 1

The default font color is black. Using the text attribute of the tag, you can set a different font color on the page, for example, blue:

Step 2

You can choose a suitable color from a table of safe colors used in web design. Please note that there must be a # sign before the digital text code. If you specified this option, all text on the page will be the specified color.

Step 3

To highlight a piece of text on a page with color, use the color attribute of the tag:

Selected snippet

Step 4

The tag's size attribute will help you make text stand out using the font size:

Largest text

Smaller text

Default text

Smallest text

Step 5

A very popular way to highlight text is to change the font style - bold, italic, underlined, strikethrough. To achieve this, enclose the desired snippet in special tags:

Bold font

Italic (italic)

Strikethrough font

Strikethrough font

Superscript

Subscript

Step 6

To highlight strikethrough text, except for the tag, you can use - the result will be the same. Tag useful, for example, for writing powers of numbers, and - for chemical formulas.

Step 7

You can also select text by changing the font style of a certain fragment. Use the face tag argument for this, for example:

Text

You can see the list of standard fonts in the "Format" menu of the MS Word text editor or any other application of the MS Office package.

Recommended: