How To Make An Underscore

Table of contents:

How To Make An Underscore
How To Make An Underscore

Video: How To Make An Underscore

Video: How To Make An Underscore
Video: how to get the underscore key 2024, May
Anonim

HyperText Markup Language (HTML), which is used to create web pages, provides a means of underlining portions of text. Cascading Style Sheets (CSS) are often used for this.

How to make an underscore
How to make an underscore

Instructions

Step 1

HTML has a special tag designed to underline text between its opening () and closing () halves. In its simplest form, a portion of the page code that uses this underline method might look like this: it is underlined text

Step 2

In addition, you can specify an attribute named style in any tag of an inline or block page element and put a description of the content style in it. Other style descriptions include underlining text. In css, the description of underlined text looks like this: text-decoration: underline; For example, a text paragraph tag with such an indication might look like this:

Whole paragraph of underlined text

Step 3

However, style descriptions are rarely placed inside HTML tags; they are usually placed in separate description blocks. Such blocks are placed in the head part of web documents (between the and tags) or saved in external style files with the css extension. For all text on the page to be underlined, this description must be placed inside an HTML selector:

html {text-decoration: underline;}

But this is rarely needed, so more often the name of a class is specified as a selector. For example:

.und {text-decoration: underline; color: Red}

It declares that the text inside each tag that is assigned the und class should be colored red and underlined. Most often, classes for various text manipulations are used in conjunction with the span tag. For example, the HTML code for a paragraph of text with an underlined portion might look like this:

Paragraph text with a slice of underlined red

Recommended: