Using Web standards establishment of the first four days: Call Style Sheets

Related Tags:

  Use standard design web site, the transition is the main method used XHTML CSS, css style sheet is essential.    This requires all Web designers must be familiar CSS, if you did not previously used, then began studying it now.    To make the web site standards, but not the design of CSS is not beautiful pages. 

  In fact, the performance of all local needs using CSS to achieve.    We have in the past practice of using table for positioning and layout, and now, to change the location and layout to DIV.    This is the way of thinking changes, a beginning, some are not accustomed to.    Oh, there will be resistance to any change, in order to enjoy the standard of the "benefits" and give up some of the old traditional practice is worth it. 

  Calling external style sheet 

  In the past, we usually use two kinds of ways to use style sheets: 

  •   Pages embedded law: the style sheet will be written directly in the head area code pages.    Something like this: 

  <style Type="text/css"> <! - body (background: white; color: black;) -> </ style> 

  •   External call law: write in the style sheet will be an independent. Css document, and then head in the area of the page code similar to the following calls. 

  <link Rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" /> 

  In line with the design of the web standards, we use an external call, the benefits self-evident, you can not only modify revised pages. Css document and change the style pages.    If all the pages are calling with a style sheet files, to a style sheet document, all documents can be changed styles. 

  Two-table method called style sheet 

  Show some of the original site with standard code, you may see that in the style sheet called the two places are as follows: 

  <link Rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" /> 

  <style Type="text/css" media="all"> @ import url (css/style01.css); </ style> 

  Why write two? 

  In fact, under normal circumstances with the law calls (that is the first sentence) was sufficient.    Here I use a dual-table calls only examples.    The "@ import" command for the importation of style sheets.    "@ Import" command in netscape 4.0 version of the browser is null and void.    In other words, when you want some effect in netscape 4.0 browser hidden in 4.0 above, or other browsers also revealed that the time, you can use the "@ import" command Method Invocation style sheet. 

Related articles:

ColdFusionMX first phase of technical courses
  Can finally fulfill its commitments, and I intend to start a week from the ColdFusion technical courses online.    Before starting, I have to first say that the purpose of the course of this series:    1. Help ColdFusion Developer Advanced 2. CF pointed out that the detai...
How to make your website in the industry come to the fore?
  If your website to come to the fore in the same industry, then your site must be a network marketing and e-commerce perfect combination, have a strong function of network marketing e-commerce sites.    More before the e-commerce site in the efforts, while neglecting the importance ...
Ajax.Can you feel?
  Below is the current web applications should be in place:    Based on the form of interactive form is very slow, very slow.    Tried to edit the above in a del.icio.us bookmarks?    Click to edit link opens a form edit bookmarks pages, and then edit your conten...
Network venture, you need most?
  You need to network business?    Entrepreneurial experience: my "boss Dream" start from scratch in three stages of success and the only way we chat about business now with the internet's development.    After the network economy "bubble era" gradu...
CSS Tutorial 4, the CSS Text text [Translation Htmldog]
  Have a series of attributes of the text on a Web page can be changed in size and shape, are summarized as follows:    Font-family    Use text fonts, for example, 10 lines, Times New Roman, Arial, and so on the elaboration of this property must not use remote fonts, font ...