Difference between revisions of "Cascading Style Sheets"

From Conservapedia
Jump to navigation Jump to search
(change the size of all text in an HTML document to 18 points)
m (make the example text look prettier)
Line 5: Line 5:
 
To change the size of all text in an HTML document to 18 points:
 
To change the size of all text in an HTML document to 18 points:
  
−
<nowiki>body
+
<nowiki><head></nowiki>
−
{
+
:<nowiki><style type="text/css"></nowiki>
−
font-size: 18pt;
+
 
−
}</nowiki>
+
::body { font-size: 18pt; }
 +
 
 +
:<nowiki></style></nowiki>
 +
<nowiki></head></nowiki>
 +
 
 +
 
 +
 
  
  
 
[[category:computer science]]
 
[[category:computer science]]

Revision as of 17:28, August 16, 2007

CSS stands for Cascading Style Sheets. This brings a much finer degree of control over appearance to a web page. [1]

Example

To change the size of all text in an HTML document to 18 points:

<head>

<style type="text/css">
body { font-size: 18pt; }
</style>

</head>