Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
leny4528yThe type attribute isn't mandatory. So it can be easier to remember : <link rel="stylesheet" href="path" />
-
tytho23148yI'm also embarrassed to say how long it took me to get that one down. Now that I have it down, I work primarily on the back end... Or I have a build process but in the link tag for me.
-
I'm with @humanbonsai I wind up copying the whole head and adjusting as needed most of the time. I'm using the same several scripts/css files across the project so I might as well use the same head rather than type it up again.
-
Djeisen1538yOr use snippets. Snippets are awesome. Some on here dislike Atom but I like it and it handles snippets well.
-
Djeisen1538y@lucas22 on Atom and a few other editors, you can save snippets. Then, you can type in something like "css" and tab and it will fill in the thing that you saved. And it will place the cursor at the right place to let you edit the href, if you make the snippet correctly.
-
elgamine2838y@lucas22 or Emmet, type link, press tab, boom done ! plugins available for almost any text editor or ide, writing html becomes a joy (formerly known as zen coding)
Related Rants
Am I the only one that can't remember how to link a CSS file in HTML? I must copy/paste every time from an other project :(
<link rel="stylesheet" type="text/css" href="main.css">
undefined
junior
css
noob
front end