Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Store CSS Definitions in External Files
How To Store CSS Definitions in External Files? - CSS Tutorials - Introduction To CSS Basics
✍: FYIcenter.com
If you want to share a set of CSS definitions with multiple HTML documents, you should those CSS definitions in an external file, and link it to those HTML documents using the LINK tag in the HEAD tag as:
<HEAD> ... <LINK REL=stylesheet TYPE="text/css" HREF="css_file_url"/> ... </HEAD>
Below is a CSS file called, fyiCenter.css, that stores the same CSS definitions used in the previous exercise:
BODY {background-color: black}
P {color: yellow}
If you modify the HTML document with the LINK tag instead of the STYLE tag, you can get the same result:
<html><head> <title>CSS Linked</title> <link rel=stylesheet type="text/css" href="/fyiCenter.css"/> </head><body> <p>Welcome to FYICenter.com. You should see this text in yellow on black background.</p> </body></html>
2007-05-11, 4873👍, 0💬
Popular Posts:
What print out will the folloging code produce? main() { char *p1=“name”; char *p2; p2=(char*)malloc...
Are risk constant through out the project ? * Never say that risk is high through out the project. R...
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... ...
What will be printed as the result of the operation below: main() { char *p1; char *p2; p1=(char *)m...
Can you explain what is “AutoPostBack” feature in ASP.NET ? If we want the control to automatically ...