Difference between revisions of "CSS"

From Wikicliki
Jump to: navigation, search
Line 1: Line 1:
 
if your browser is strictly css compliant you will see the smiley face in the Acid 2 test: http://www.webstandards.org/files/acid2/test.html#top
 
if your browser is strictly css compliant you will see the smiley face in the Acid 2 test: http://www.webstandards.org/files/acid2/test.html#top
  
#link your css externally:
+
# link your css externally:
*<link rel="stylesheet" TYPE="text/css" href="file.css">
+
* <link rel="stylesheet" TYPE="text/css" href="file.css">
#html versions:
+
# html versions:
*4.01 strict - means that things like font and link attributes on body and old markup will be removed. use css as well.
+
* 4.01 strict - means that things like font and link attributes on body and old markup will be removed. use css as well.
 
<pre>    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 
<pre>    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 
             "http://www.w3.org/TR/html4/strict.dtd"></pre>
 
             "http://www.w3.org/TR/html4/strict.dtd"></pre>
*4.01 transitional - means that some things like font will be depreciated but others wont. ie: its like saying yo ucan use it now but in later html versions its totally gonna be depreciated. was created in period when css support was not so consistent for all and so had to accept some less strict html 4.01.
+
* 4.01 transitional - means that some things like font will be depreciated but others wont. ie: its like saying yo ucan use it now but in later html versions its totally gonna be depreciated. was created in period when css support was not so consistent for all and so had to accept some less strict html 4.01.
#validate your html after that:
+
# validate your html after that:
*http://validator.w3.org
+
* http://validator.w3.org
*http://www.htmlhelp.com/tools/validator
+
* http://www.htmlhelp.com/tools/validator
#hide your code from older browsers by commenting it out cos ancient browsers display it as a html mess
+
# hide your code from older browsers by commenting it out cos ancient browsers display it as a html mess
 
#
 
#

Revision as of 14:55, 16 September 2008

if your browser is strictly css compliant you will see the smiley face in the Acid 2 test: http://www.webstandards.org/files/acid2/test.html#top

  1. link your css externally:
  • <link rel="stylesheet" TYPE="text/css" href="file.css">
  1. html versions:
  • 4.01 strict - means that things like font and link attributes on body and old markup will be removed. use css as well.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
  • 4.01 transitional - means that some things like font will be depreciated but others wont. ie: its like saying yo ucan use it now but in later html versions its totally gonna be depreciated. was created in period when css support was not so consistent for all and so had to accept some less strict html 4.01.
  1. validate your html after that:
  1. hide your code from older browsers by commenting it out cos ancient browsers display it as a html mess