Development| HTML| JavaScript| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Cascading Style Sheet(CSS) 
 

Cascading Style Sheet (CSS) is known as style sheet language, define the presentation of a document written in a markup language.

 

Cascading Style Sheet(CSS)

                         

Cascading Style Sheet (CSS) is known as style sheet language, define the presentation of a document written in a markup language. The application of style sheet is to style the web pages written in HTML and XHTML,but the language can be applied to be any kind of XML document, includes SVG and XUL.

Understand with Example.

The Tutorial illustrates an example from Cascading Style Sheet in HTML. In this Tutorial, the code create a stylesheet and applied it to a HTML page. For this, we  create a short CSS style sheet stored in a file "link.css". The code sets the text color of paragraph to red ,background color to lightgrey. Now we create a HTML page. Inside the HTML code, <href="link.css">,which gives you the reference of link.css file.

The code is saved .html extension. 

body {color: purple; background-color: lightgrey;}

p {color:red;}

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <<LINK href="link.css" rel="stylesheet" type="text/css">
 </HEAD>

 <BODY>
  
<h1>Cascading Style Sheet(CSS)</h1>

<p>Cascading Style Sheets (CSS) is a stylesheet language 
used to describe the presentation of a document written in a 
markup language. Its most common application is to style web 
pages written in HTML and XHTML, but the language can be applied
to any kind of XML document, including SVG and XUL.</p>

</BODY>
</HTML>

 

Place the path of your HTML code into your address bar of browser. The output is displayed as

Download

                         

» View all related tutorials
Related Tags: html c object objects sed graph tag line app horizontal to lines between e li paragraph use ul apply in

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.