This post has been edited by rohit: 04 May 2010 - 01:30 AM
how include css in html
how include css in html/xhtml?
how include css in html how include css in html/xhtml?
#1
Posted 04 May 2010 - 01:30 AM
#2
Posted 14 May 2010 - 06:36 AM
Internal CSS
You can add CSS to your HTML documents by simply placing it within the document header. For example, you can specify background color for your HTML document like this:
<html>
<head>
...
<style type="text/css">
body { background-color: red;}
</style>
</head>
<body>
...
</body>
</html>
External CSS
A better way to use CSS is to contain it into an external file, and simply link to that file from the HTML document. This has a number of advantages.
As an alternative to the above example, you can do the following:
<head>
...
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>
In this case, mystyle.css will contain only
body { background-color: red;}
Web Design Chennai
#3
Posted 27 August 2010 - 12:49 AM
I happy to inform you about CSS in HTML , There two types in
linking , internal and external.
Internal linking will be present in the body and for external it is out side the body of HTML code
-------------------
ecommerce websites
#4
Posted 20 September 2010 - 11:34 AM
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>index</title>
<link rel="stylesheet" href="name of the css file.css" type="text/css" />
</head>
<body>
</body>
</html>
Simpson.john54
Couches Sectional
#5
Posted 07 December 2010 - 04:15 AM
rohit, on 04 May 2010 - 01:30 AM, said:
You may follow these steps if you have not understood it properly:
1- First create a blank text document and fill it in with all your css definitions.
Example
td.first{
font-family:Tahoma
}
Then save the page as page.css.
In your HTML page put this tag in between your <head></head> tags. Replace http://www.Yoursite.com/page.css with your website and css file.
<link href="http://www.Yoursite.com/page.css" rel="stylesheet" type="text/css">
Its done
#6
Posted 17 January 2011 - 10:35 PM
#7
Posted 18 January 2011 - 02:57 AM
This is my list of the most commonly installed fonts:
- Arial & Arial Black
- Comic Sans MS
- Courier & Courier New
- Georgia
- Helvetica
- Impact
- Tahoma
- Times & Times New Roman
- Trebuchet MS
- Verdana
Your freedom of choosing in this area depends on your target audience and how much you are willing to accept that some people may see a different font (which you should take into consideration when designing the site. choose similar fallback fonts).
This post has been edited by temhawk: 18 January 2011 - 03:27 AM
#8
Posted 02 March 2011 - 09:11 PM
can use this code..
<div style="color:red;"></div>
and so on..
#9
Posted 09 June 2011 - 03:45 AM
#10
Posted 14 June 2011 - 09:48 AM
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>


Help
MultiQuote









