the Internet Windows Android

Top tag. We do in CSS top register

HTML Tags and - Substitution and Padded Text

Definition and use

Tag Determines the substitution text. The substitution text has a height of two times less and appears under the baseline. Substational text can be used when writing a chemical formula, for example H 2 O.

Tag Defines the advanced text. Padded text has a height of two times less and appears above the baseline. Padded text can be used when writing footnotes, such as WWW.

Support browsers

Tags and Supported by all major browsers.

Differences between HTML and XHTML

Standard attributes

Column Dtd. Indicates which type of document HTML 4.01 / XHTML 1.0 DTD is allowed. S \u003d STRICT, T \u003d Transitional and F \u003d Frameset.

Tags and Support the following standard attributes:

Attribute Value Description Dtd.
class nameKlassa Specifies the name of the class for the element STF.
dir. rTL
LTR.
Specifies the text direction for the contents in the element STF.
id identifier Indicates a unique identifier for an item STF.
lang. code_ language Specifies the language code for the contents of the item STF.
style. definition_stile Specifies the built-in style for the element STF.
title text Specifies additional information about the element STF.
xML: Lang. code_ language Defines the language code for the contents of the element in the XHTML documents STF.

Additional information about standard attributes.

Attributes of events

Tags and Support the following event attributes:

Attribute Value Description Dtd.
onClick. script Script, launched when clicking the mouse STF.
ondBlClick. script Script started with double-clicking mouse STF.
onmousedown. script Script running when you press the mouse button STF.
onmousemove. script Script running when moving the mouse pointer STF.
onmouseout. script Script, started when the mouse pointer goes beyond the element STF.
onmouseover script Script, started when the mouse pointer moves above the element STF.
onmouseUp. script Script started when releasing the mouse button STF.
oNKEYDOWN. script Script running when you press the key STF.
onKeypress. script Script running when the key is pressed and then released STF.
onKeyup. script Script running when the key is released STF.

Additional information Obo

The index in relation to the text is called the symbol displacement relative to the baseline up or down. Depending on the positive or negative bias value, the index is called, respectively, the upper or lower. They are actively used in mathematics, physics, chemistry and to designate units of measurement. HTML offers two elements to create an index: (from English SuperScript) - upper index and (From English Subscript) - lower index. The text placed in one of these containers is denoted by a smaller size than the base text, and shifts relative to it up or down. Example 1 shows the sharing of these elements and styles to change the type of text.

Example 1. Creating the upper and lower index

Upper and lower index

Characteristic equation of the second degree surface

λ 3 - I. 1λ 2 + I. 2λ - I. 3 = 0

In the example, both the lower and the upper index are encountered simultaneously. To change the font of the index font, styles are used that define a single design (Fig. 1).

Fig. 1. View of indexes after applying styles

You can generally refuse to use and in favor of styles. The analogue of these elements is the Vertical-Align property that causes the text to shift vertically to the specified distance. In particular, in Example 2, 0.8EM is used as a value for the upper index and -0.5em for the lower. EM is a relative unit equal to the size of the current font. For example, 0.5EM suggests that the text must be shifted half the font size.

Example 2. Using styles for managing indexes

Upper and lower index

Polynomial degree n.

f (x) \u003d a 0 + A. 1 x + ... + a n-1. X. n-1. + A. n. X. n.

In the example, the formula itself is displayed in an increased size, the symbols of the upper index are mounted in red, and the bottom - blue (Fig. 2).



Conversion of the lowercase letters to the lower case and the first top register using CSS (8)

In CSS there is no option of the KP-offers. Other answers offering Text-Transform: Capitalize are incorrect because this parameter uses every word for each word .

Here rude way to do it if you want to the first letter of each element was in the upper case, but this is definitely anywhere next to the actual restrictions:

P (text-transform: LowerCase;) P: First-Letter (Text-Transform: UpperCase;)

This Is An Example Satence.

This is Another Example Satence. And This Is Another, But It Will Be Entirely LowerCase.

How to convert the Uppercase letter to the lower case and the first Uppercase letter for each sentence, as shown below, only with CSS?

From: This is an example of an application.

To: This is an exemplary offer.

Update: When I use Text-Transform: Capize; The result is still the same.

You can not do it solely with CSS. There is an TEXT-TRANSFORM attribute, but it only accepts None, Capitalize Uppercase, UpperCase, LowerCase and Inherit.

You may want to look at the JS solution or on the server solution.

If you can make all the characters with lower case letters on the server than you can apply:

TEXT-TRANSFORM: CAPITALIZE

I do not think that the text transformation will work with capital letters as input.

If you want to use for It will not work for or text area you need to use javascript

which should work well for or