( CSS learner guide )

CSS Direct Formatting

Posted by admin on March 7, 2012
Posted in: Uncategorized.

CSS formatting directly to an individual HTML tag to apply the attribute style in the HTML tag. An example:

<h1 style=”color:#0000FF;”>Example</h1>

This statement is the headline. Note that it is simply the opening HTML tag addition the style attribute, and a corresponding CSS specification behind.

Large File Format in the head area

For further information on file, use the head of an HTML file, i.e. between <head> and </head> the tag <style> noted. Behind all of this HTML file current information and then the field again with </style> closed. All information given here apply to the entire HTML file. An example:

<style type=”text/css”>
<!–
p { font-family:Arial; }
//–>
</style>

The attribute “type” is a mandatory attribute for the opening style tag. Note If you use CSS so in each case: <style type=”text/CSS”> As you can see, I have in this example, the actual CSS values again in an HTML comment inserted <!– //–> This is to prevent very old browser, the element <style> do not know, accidentally, the CSS data as output on the screen.

Posts navigation

← Properties of CSS Fonts
Integration of external files in CSS →
  • About Me

    Welcome! My name is James Patterson. I'm a professional IT engeneer and a gradauate from Caltech university. Currently I work for a major computer company and publish various articles for the New York Times technology page. This blog was designed with intention to share some of my expertise and observations with you. Enjoy!
  • Recent Posts

    • How to make wow gold in Cataclysm?
    • Best ways to get new ringtones for your mobile
    • The new Nokia C6 is a powerful mobile phone for you!
    • Toshiba Satellite A660 is one of the top laptops recently available
    • How will Microsoft Xbox Kinect revolutionize gaming?
    • Kindle 3G Wireless Reading Device
    • The fourth generation of Apple iPod touch 8GB
    • The AirCurve Play dock for iPhone
    • Blue Sony Ericsson Vivaz
    • How ringtones make your phone personal
  • Blogroll

    • Bob's Blog
    • Francis' Blog
    • John's Blog
>