Home / My WordPress / We take all styles to an external file

We take all styles to an external file

Want create site? Find Free WordPress Themes and plugins.

стили во внешний файл

In the previous example, we defined styles by describing them in the <head></head> section of our document. This is quite convenient, but what if we have to work with a large number of pages on the site?

It is very simple to define styles in a separate file, which can be “connected” to all pages of the site.The style file must have an extension .css (typically, this file is called styles.css).

 This file connects to all pages using the following tag:<link rel=”stylesheet” type=”text/css” href=”style.css “mce_href=” style.css ” > (note: you can specify not only the file name, but also its physical location, including url, if the file is on another server).

The <link> tag should be placed in the <head></head> section of all pages of the site where you want to use the styles described.css styles.

The advantages of using an external CSS file are quite obvious there is no need to edit the styles on each page of the site, it is enough to make changes to the styles only once.css, and its action will extend to all the documents to which it is connected.

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

Your email address will not be published. Required fields are marked *


Если вы хотите получать уведомления на свой E-mail о появлении новых статей, то рекомендуем вам чуть ниже ввести свой электронный почтовый адрес.