.cssfile. In fact, once you become adept at using style sheets, this will be —and should be— your go-to method of applying CSS.
.cssextension and saved to any directory that can be accessed by the web pages using it. Unlike embedded style sheets, the CSS rules sets do not have to be wrapped in the
font-family: 'Times New Roman';
main.cssand presto, you've got an external style sheet.
linkelement can be used, among other things, to specify that a web page should use an external style sheet. The
linkelement only requires a start tag
<link>and is inserted in between the
<head>...</head>tags of your web page (a.k.a., document head). It can be used as many times as you like.
linkelement employs three important attributes:
href. For CSS, the value of the
relattribute is always
stylesheetand the value of the
typeattribute is always
text/css. The only part of the code you really have to concerned with is the value of the
hrefattribute which will change according to which
.cssfile you're referring to. This value can be any relative or absolute path.
linkelement inserted in the document head of a web page:
<link rel="stylesheet" type="text/css" href="main.css">
...web page content...
linkelement specifies that the web page should use an external style sheet called
linkelement to refer to the same external style sheet, i.e.,
main.css, then what you have essentially done is created a kind of central hub to apply formatting to many different web pages at once.
If you need a .COM web address, you can get one quick and easy at...
|<~ BACK||TOP||NEXT ~>|