When the same style has to be applied across many web pages.
Answers
Answer:
the upcoming answer will be correct
Answer:
Enter Your Question...
HomeServices & SupportSupportFAQQuestion
Which method is ideal for applying the same sty...
Added: 06/18/2013 | Updated: 4 Years Ago
Question Which method is ideal for applying the same style to an entire website?
Answer
External style sheet, can change the look of an entire website by changing just one file
Syntax:
<link rel="stylesheet" type="text/css" href="STYLE-PAGE-URL.css">
Tip:
STYLE-PAGE-URL.css should not contain any html tags. The style sheet file must be saved with a .css extension.
Example:
1- Open a new file and type the following for example
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
2- Save the file as stylesheet.css
3- In HTML page head tag write the following
<link rel="stylesheet" type="text/css" href="stylesheet.css">
open HTML in any browser to see the result