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, 4614👍, 0💬
Popular Posts:
What does a special set of tags <?= and ?> do in a PHP script page? <?= express...
Where are all .NET Collection classes located ? System.Collection namespace has all the collection c...
Can you explain Forms authentication in detail ? In old ASP if you where said to create a login page...
How Large Can a Single Cookie Be? - PHP Script Tips - Understanding and Managing Cookies How large c...
Why is there extra white space before or after tables? This is often caused by invalid HTML syntax. ...