How To Change Text In Html

Table of contents:

How To Change Text In Html
How To Change Text In Html

Video: How To Change Text In Html

Video: How To Change Text In Html
Video: Javascript - Changing HTML elements 2024, May
Anonim

Changing the text in HTML is done using special tags and additional attributes. The methods available for use allow you to increase the size of the text, change its style and color. And the available formatting descriptors make it possible to place elements on the page as accurately as possible.

How to change text in html
How to change text in html

Instructions

Step 1

Open the HTML file you want to edit using an editor installed on your computer. To add the required tags, you can use the standard "Notepad" by right-clicking on the document being modified and selecting the "Open with" - "Browse" - "Notepad" submenu. Among the alternative programs for more convenient performance of the necessary operations, you can use Notepad ++ and Microsoft FrontPage, available for download on the Internet.

Step 2

Navigate to the section of text you want to change and start typing the required descriptors. You can use the tag attributes to change the size and color. Specify the color parameter to set the desired hue. Colors can be entered both in accordance with their English names, and using the palette in hexadecimal format.

Step 3

The face option allows you to change the font type. Size is used to set the size of the letters in a ruler from 1 to 7 pt (default is 3). For example:

Modified fragment

In this case, the phrase will be colored red, increased to size 6 and displayed in the decorative fantasy font.

Step 4

Use a tag to highlight a portion of the text in a separate paragraph. With it, you can adjust the position of the site on the page through the additional parameter align. For example:

Center align

Left align

Right align

Step 5

To display italic text, use a tag by enclosing the desired word or section in between the opening and closing descriptors. To make the letters bold, apply. Suitable for underlining. You can cross out the text through. To display a superscript number, use, and to display the desired number or letter in subscript use … All of the listed tags can be used within the framework.

Step 6

To wrap text down a line, HTML provides the & ltbr> descriptor. There is a tag to create a horizontal split line. For example:

Italic text

Crossed out

2*2 = 22

Recommended: