Use different methods of CSS (to)

Related Tags:

  There are several ways of making an html document elements in the application of CSS. 

  The chain 

  All the css Rules are written in one or more separate document, this practice has many advantages.    HTML document will become very small, CSS documents exist browser cache, only need to download a can, and you only need to amend a document on the Web site can change the style.    A chain of the CSS document, see the following: 

  h1 (font-weight: bold;) 

  NOTE: CSS outside the chain did not <style> labels. 

  You can use <link> labels to a css link to the HTML document: 

  <link Rel="stylesheet" type="text/css" href="styles.css" /> 

  <style> Or in the use of an @ import labels: 

  <style Type="text/css"> @ import url ( "styles.css"); </ style> linear 

  Through the use of style attributes, you can direct the application in HTML CSS: 

  <h1 Style="font-weight:bold;"> Rubrik </ h1> 

  This situation should be avoided as much as possible, because he and the structure of a mixed performance. 

  Embedded 

  Embedded CSS is written in <style> label, but also the <head> wrote in the document: 

  <style Type="text/css"> h1 (font-weight: bold;) </ style> 

  This also should be avoided as far as possible, the best or the HTML and CSS in a separate document repository. 




Related articles:

Good CSS style [beautiful link]
  <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html Xmlns="http://www.w3.org/1999/xhtml">  <head>   <title> CSS </ title>&...
Flash video tutorial examples: computer production at titles (2)
  Article 60: Computer reportedly produced titles (2)    Curriculum objectives: to produce computer animation titles    Curriculum points: use Flash MX 2004 produced computer animation at first, the example set on seven points, which is Section II.    At the sam...
Xmlhttp existence with the largest number of design should be some discretion ajax [zz]
  The three seriously test browser (ie / firefox / opera) with the xmlhttp, found that many users also issued xmlhttp asynchronous request, then the browser is not created an entire issue to the request, but there is a maximum number of concurrent .    I found the machine test, ie 2 ...
CSS hit the target: of choice, people's choice of adjacent properties and options, etc.
  In the previous article, we talk about the "type selector and future generations selector such as" http://www.52css.com/article.asp?id=423.    Through these two options could get a lot of things for them to find targets.    CSS page layout in the development, we ...
HTML primary Guide List
  There are three types of list: disorderly, orderly and definition of the list.    First, we learn the first two in the Intermediate Guide to learn HTML definition list.    The code for you to add the following things:    Example Source Code [CSS tutorial] <D...