question about ways to apply CSS to a web page and/or linked element.

Discussion in 'CSS' started by libertygone, Jan 20, 2007.

  1. #1
    Which of the following are ways to apply CSS to a wep page and/or element?

    A. Linked - Using the <link /> tag in the head of a document
    B. Embedded - Using the <style></style> tag set in the head of a document
    C. Inline - using the style="property:value;" in an element/tag
    D. Connect - using the <style /> tag in the head of a document


    sorry to ask another but i missed a lecture in class and i'm a noob with CSS.
    thanks!
     
    libertygone, Jan 20, 2007 IP
  2. abc1234

    abc1234 Guest

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't quite understand your question but I think your mean how do you link an external style sheet to a web page....am I correct?

    If I am, put this code in the <head>...<.head> part of your webpage (rename the CSS obviously and change the media type if required)

    I hope this has helped if this is not what your after I hope I havent confused you.

    abc1234
     
    abc1234, Jan 20, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    abc1234 actually hit on the best way to do it

    Only thing I would change is the value of the media attribute from "all" to "screen".
     
    Dan Schulz, Jan 21, 2007 IP
  4. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #4
    as abc said if you want an external stylesheet, but if you want the css applied to that page only, use B
     
    just-4-teens, Jan 21, 2007 IP
  5. libertygone

    libertygone Active Member

    Messages:
    2,625
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    90
    #5
    theres more than one answer i am told.
     
    libertygone, Jan 21, 2007 IP
  6. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes i think u can do it all 4 ways u mentioned but the better ways are mentioned above.
     
    just-4-teens, Jan 21, 2007 IP
  7. libertygone

    libertygone Active Member

    Messages:
    2,625
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    90
    #7
    thanks :)
     
    libertygone, Jan 21, 2007 IP