/    Sign up×
Community /Pin to ProfileBookmark

CSS link position

Where is the correct place to store a link tag to an external css file. Should it be placed within the head tag as follows:

<head>
<link href =”css.css” rel = “stylesheet” type = “text/css”>
<head>

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWJul 21.2003 — yes. I use a slightly different order, but I don't think it makes any difference.

<link href="css/main.css" type="text/css" rel="stylesheet">
Copy linkTweet thisAlerts:
@CharlesJul 21.2003 — [font=georgia]The order that attributes appear has no bearing (unless you've definded the same attribute twice). I like things alphabetical myself.

See http://www.w3.org/TR/html4/struct/links.html#h-12.3 for the low down on the LINK element.[/font]
×

Success!

Help @vik_pa spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...