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, 4847👍, 0💬
Popular Posts:
How To Change the Password of Another User Account? - MySQL FAQs - Managing User Accounts and Access...
How To Assign Debug Privileges to a User? - Oracle DBA FAQ - Introduction to Oracle SQL Developer In...
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (over...
How To Assign Debug Privileges to a User? - Oracle DBA FAQ - Introduction to Oracle SQL Developer In...
How To Manage Transaction Isolation Level? - Oracle DBA FAQ - Introduction to PL/SQL Transaction iso...