Help Linking Files Within Code

epiz_30529945

Requesting help with linking files within my HTML code.

Basically, in /htdocs/index.html I’m trying to link files like style.css, so I can seperate my code and have multiple pages like “about.html”, etc but it won’t connect:

My code is as follows:

<link href="/htdocs/style.css" type="text/css" rel="stylesheet">

I’ve checked and I’m 99.9% sure I’m linking the correct file path (its in htdocs>style.css)

Yet it still won’t work, am what am I doing wrong?

Do not add the “htdocs”. Since that is the root it is not needed.

4 Likes

I just edited my post to clarify my situation.

Thanks!

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.