/ / What is CSS and where is it used?

What is CSS and where is it used?

The process of learning web design begins with a questionabout what CSS is. After all, this language allows you to completely change the appearance of your documents. By offering a clever alternative to obsolete tags used in the usual hypertext language, CSS allows you to flexibly configure all the relevant parts of the page. The World Wide Web Consortium recommends using a cascading style sheet to define the design of web documents. From this article you will learn what CSS is and where it is applied.

what is css

Definition

CSS is an abbreviation of EnglishCascading Style Sheets, which in Russian means "cascading style sheets". As such, a separate programming language CSS can not be considered, since it does not matter without documents built on HTML or XHTML.

CSS styles are inextricably linked toweb pages. The modern world wide web would have a too dull and unprepossessing appearance without these very tables. They allow you to make unique changes and make incredible page designs using a fairly simple language. CSS was published in 1996, and since then has been very popular, because there is no logical replacement for these stylesheets. All files written in this language have a .css extension.

Developers when creating cascading style sheetstried to simplify the work of web designers as much as possible. In doing so, the main goal was set: to separate the logical structure of the document, which is managed using HTML or XHTML, and describe the appearance. Cascading style sheets allow you to change the font, color, background, position of elements, intervals and much more.

styles css

Essence

CSS-styles are arranged according to an extremely simple principle.There are no complicated rules and abstruse terms. It is enough to select the desired element and assign the necessary property to it. That is, you can take the

tag and change the font and color of the characters that are inside it. In this case, each such element of the document will be assigned this property. There is no need to assign a value to all tags separately. You can use more large-scale goals, for example, immediately assign a property to the entire document by defining a property for the "body" element. Or to stylize a separate fragment through special id-identifiers or selectors.

css styles

Application

You can use cascading styles in three ways:

  • At the document level. You can assign a short entry in the tag itself. This option is better to use when there is no need to repeat this style.
  • Inside the document.If you have a single-page site, you can easily enter the cascading table rules at the top of the document. In this case, all the definitions are placed in the style tag that is included in the head.
  • Separately. The reason for which this language was created.If you have many pages or even sites that use one design, you can bind to each document one CSS file that will define the style. The binding is performed using the link tag.

Conclusion

The question of what CSS is, entirebooks, seminars are held. And, naturally, it is impossible to fully cover this topic in one article. To fully master this language, you need to spend a lot of time. But a positive result will be required. So do not be shy and ask yourself more often about what CSS is, and after a fascinating study you can create your own style yourself.

comments