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, 4800👍, 0💬
Popular Posts:
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]? a[i] == *...
Can you explain project life cycle ? Figure :- 12.2 Life cycle of a project There are five stages of...
How To Call a Sub Procedure? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions To...
How To Control Padding Spaces within a Table Cell? - XHTML 1.0 Tutorials - Understanding Tables and ...
How To Recover a Dropped Index? - Oracle DBA FAQ - Managing Oracle Table Indexes If you have the rec...