Sign in Registration
ArticlesDownloadServicesAudioContacts
ruen

CSS properties for working with text in HTML, changing the font size and more

When laying out web pages or working with site content, there is often a need to change the text, or rather its properties: size, font, style, etc. To do this, use special CSS properties that allow you to quickly and flexibly change the appearance of the text.

css-properties-for-text

Previously, the font tag was used to set various properties for text. This tag is a container for changing the characteristics of a font: size, color, typeface. This tag is still supported by all browsers, but it is deprecated and it is highly recommended to use the CSS styles correctly .

What CSS properties are there for working with text in HTML ? Most important is the font property. This is a versatile property that allows you to set multiple characteristics for text at the same time. The required values ​​for this property are the font size and font family, and the rest of the values ​​are optional and optional. In general terms, the font property can be written as follows:

  .class {
font: font-style font-variant font-weight font-size / line-height font-family;
}  

But the short notation may not always be clear, so you can write the properties separately:

There are also other CSS properties that can also be attributed to properties for working with text: color - to set the color, text-shadow - to set the shadow of the text, text-transform - to convert text to uppercase or lowercase characters, letter-spacing - to set the spacing between characters, word-spacing - to set the spacing between words, word-break and word-wrap - to set the way of text wrapping.

Thus, the article examined various CSS properties for working with text , thanks to which you can make it look the way you want.

Comments (0)
For commenting sign in or register.

Latest articles

Popular sections

Communication

Login to the web version
Android app:
Available on Google Play

Share this

Subscribe to

YouTube