Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how include css in html how include css in html/xhtml? Rate Topic: -----

#1 User is offline   rohit

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 13
  • Joined: 04-May 10

Posted 04 May 2010 - 01:30 AM

iam a new person in this forum and somebody help and appreciate

This post has been edited by rohit: 04 May 2010 - 01:30 AM

0

#2 User is offline   danidallia123

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 1
  • Joined: 14-May 10

Posted 14 May 2010 - 06:36 AM

There are two ways to apply CSS to a web page.
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
0

#3 User is offline   asdfghjkl

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 28
  • Joined: 01-February 10
  • Gender:Female

Posted 29 May 2010 - 12:51 AM

'danidallia123'is right. I to adding CSS to HTML Documents that ways. Thanks.
0

#4 User is offline   Gresham27

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 1
  • Joined: 27-August 10

Posted 27 August 2010 - 12:49 AM

Hi Mate,
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
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users