Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6379543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:09:07+00:00 2026-05-25T02:09:07+00:00

the href portion of the the link tag for including external stylesheets is confusing

  • 0

the href portion of the the link tag for including external stylesheets is confusing to me, especially since most folks don’t use an entire URL.

For example, in

  <link rel="stylesheet" href="mystyles.css" type="text/css" media="screen">

if I wanted to put my stylesheet in a subdirectory off wwwroot, what would be the difference in attempting to reference it via:

a) href=”/someDir/mystyles.css”

b) href=”./someDir/mystyles.css”

c) href=”someDir/mystyles.css”

Thanks Much

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:09:07+00:00Added an answer on May 25, 2026 at 2:09 am

    This is basic relative URL syntax. There is nothing CSS specific about this.

    Assuming this appears in http://example.com/foo/bar/index.html

    href="/someDir/mystyles.css"

    http://example.com/someDir/mystyles.css

    href="./someDir/mystyles.css"

    http://example.com/foo/bar/someDir/mystyles.css

    href="someDir/mystyles.css"

    http://example.com/foo/bar/someDir/mystyles.css

    And you didn’t mention href="../someDir/mystyles.css"

    Which would be: http://example.com/foo/someDir/mystyles.css

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a href link and I would like it to be clicked when
I need to use href instead click event so I can use hover in
I have this href link with text either attivo or non attivo User can
I have used href link in the flexigrid rows. on Click it takes me
How can you change the href attribute (link target) for a hyperlink using jQuery?
We want to allow normal href links to other webpages, but we don't want
I'm trying to prevent A HREF from actually opening the link, but to execute
How to add href close link to Fancybox modal window? I want close Fancybox
Safari ignores the a href link. Other browsers pass the countClicks function AND pass
I have an href tag <li><a href=/><span></span>Home</a></li> Which i need to convert to <li>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.