Posted By

Masis on 06/09/10


Tagged

css connection


Versions (?)

CSS connection


 / Published in: CSS
 

URL: http://phpforms.net/tutorial/tutorial.html

There are several ways of adding the styles to the web-page, which differ by their abilities and purpose. The ways of CSS connection are described below.

  1. Associated style sheet

When using the associated style sheet, the description of selectors and their properties is in the separate file with CSS extension , as a rule, and tag is used to join the document with this file. This tag is put into package

  1. The connection of the associated style sheet.
  2.  
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  7. <title>Styles</title>
  8. <link rel="stylesheet" type="text/css" href="style.css">
  9. </head>
  10. <body>
  11. <h1>Title</h1>
  12. <p>Text</p>
  13. </body>
  14. </html>

Report this snippet  

You need to login to post a comment.