How To Change The Style Of The Site

Table of contents:

How To Change The Style Of The Site
How To Change The Style Of The Site

Video: How To Change The Style Of The Site

Video: How To Change The Style Of The Site
Video: How to change font style in windows 10 2024, November
Anonim

Today, a simple HTML language is no longer enough to design and design a modern website - all web developers use convenient and functional CSS style sheets that contain a set of page formatting elements, simplify HTML files, reduce their size and make it easier to change the appearance of the web. -site. By changing the styles, you get a lot of possibilities for editing the site and changing the mass of its parameters in a short period of time - if you change the parameter in the style, it will be automatically applied to all pages of the site.

How to change the style of the site
How to change the style of the site

Instructions

Step 1

You can add styles to your site in different ways. One of them is adding inline styling - using the style attribute, which extends the tags of the web page. Using the internal styling does not make it easier to work with the page, but on the contrary, makes changing page elements more difficult. It is more optimal to use global style sheets - the style element. In this case, you define the style in the document itself by placing it in the page header.

Step 2

Use global style sheets to place all page styles in one document and format a large number of style elements at once. It is worth using a tag with a type attribute that defines the type of style language (for example). If you format the color or font of the text in such a table, you apply the changes to all paragraphs in the document. ?

Step 3

Also, you can connect external style sheets to the site, which are the most convenient and high-quality use of CSS for websites. In this case, all site styles are stored in a separate css file that can be uploaded to any site and used for any page.

Step 4

To connect this file to the page, use the link tag. You can use one style sheet file for any number of site pages. In addition, you can change the content of the file, automatically applying the changes to all web pages at once.

Step 5

When creating an external css file, make sure it has the correct content. Such a file should not contain markup, and comments should be formatted in accordance with all the rules for the correct display of styles on the site.

Recommended: