Tuesday 7, February 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    Forum    |    About Us    |    Contact Us

Internal CSS

Cascading Style Sheets come in three flavors: internal, external, and inline. We will cover internal and external, as they are the only flavors a designer should utilize. In this lesson, we cover the basics of the easier type, internal. When using internal CSS, you must add a new tag, , inside the <head> tag.
The HTML code below contains an example of <style>'s usage.
Example:
<html>
<head>
<style type="text/css">
p {color: white; }
body {background-color: black; }
</style>
</head>
<body>
<p>White text on a black background!</p>
</body>
<html>

Background Color will be black and text color will be white

General CSS Format:
HTML tag { CSS Property: Value; }
Back in our code example, we manipulated

and , both well known HTML tags. To clarify, here is a step-by-step process of what is going on in that first line of CSS code where we played around with "p".
• We choose the HTML element we wanted to manipulate. - p{ : ; }
• Then we chose the CSS attribute color. - p { color: ; }
• Next we choose the font color to be white. - p { color: white; }

Now all text within a paragraph tag will show up as white! Now an explanation of the CSS code that altered the 's background:
• We choose the HTML element Body - body { : ; }
• Then we chose the CSS attribute. - body { background-color: ; }
• Next we chose the background color to be black. - body { background-color: black; }

Until you become accustomed to using CSS code, you will probably find your CSS code not working as you expected. A leading cause of this might be an out of place :, ;, {, or } or it might be that you forgot to use a :, ;, {, or } when it was required. Be sure to check back here if you ever have issues with the correct format for CSS.

 
     
   
CSS Tutorial
 
  Introduction
Introduction
  Syntax
Syntax
  Internal CSS
Internal CSS
  External CSS
External CSS
  Inline CSS
Inline CSS
  CSS Classes
CSS Classes
  CSS Background
CSS Background
  CSS Text
CSS Text
  CSS Font
CSS Font
  CSS Border
CSS Border
  CSS Outline
CSS Outline
  CSS Padding
CSS Padding
  CSS Margin
CSS Margin
  CSS Lists
CSS Lists
  CSS Tables
CSS Tables
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download The Magic Bullet  Ebook The Magic Bullet
   
Download Handbook of Information Security Management  Ebook Handbook of Information Security Management
   
Download Learning GNU C  Ebook Learning GNU C
   
Download  Squeeze Page Secrets Ebook Squeeze Page Secrets
   
Download Affiliate Marketing Mistakes Ebook Affiliate Marketing Mistakes
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz