1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Three ways of referring to a stylesheet file

Discussion in 'CSS' started by tayiper, Feb 18, 2007.

  1. #1
    Hey all, I am used to refer to an external .css style-file with a link tag/rel attribute in a document's header as a majority of websites developers are ...


    ... like this:

    <link rel="stylesheet" type="text/css" href="root-tmp.css" title="style" />
    Code (markup):
    ... and like this:

    <link href="style.css" rel="stylesheet" type="text/css"> 
    <style type="text/css" media="style"><!--
    @import url(style.css) style;
    --></style>;
    Code (markup):
    However, recently I've seen the following (also in the header, right after the XML specification: "<?xml version="1.1" encoding="windows-1250"?>") on some site for the first time ever:

    <?xml-stylesheet href="../style.css" type="text/css"?>
    Code (markup):
    Does this mean that it is possible to refer to a stylesheet file also with XML, and what's the difference between this in the above two ways of doing it!!?


    thanks, tayiper
     
    tayiper, Feb 18, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    Read this and this to get more info on the subject..
     
    Clive, Feb 18, 2007 IP
    tayiper likes this.
  3. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Thanks much, I am already loading those two pages that you linked!!


    tayiper
     
    tayiper, Feb 18, 2007 IP