DEV Community

Discussion on: Those silly mistakes we all make

Collapse
 
akashdeepsingh profile image
Akashdeep Singh • Edited

I sometimes mix up the href and src in the link tag in html.
<link rel="stylesheet" type="text/css" src="theme.css">
instead of
<link rel="stylesheet" type="text/css" href="theme.css">
and it has taken me and colleagues several refreshes to figure out in the past.

"The css file is there. Why isn't it loading? Did you clear the cache? Did you restart the laptop? Did you check the URL?..."

Collapse
 
philnash profile image
Phil Nash

I feel that pain. HTML is both forgiving ("the page still loaded") and brutal ("but it didn't work and I don't know why") at the same time.

Collapse
 
darkmyj profile image
DarkMYJ

I just learn css/html few weeks ago, and this is hurt when it happens