You are viewing a single comment's thread from:

RE: How to Learn Programming - A Beginner's Guide

in #utopian-io7 years ago

@scipio.
thanks so much, I started to code a bit, it's quite some fun. I tried to add an external .css link into my .html document via a link in the head section. I put in the name, but it doesn't work. i don't really know how to create a correct link, cause it also doesn't work if I put in the whole name with desktop\User... into it. What am I doing wrong?

Great content by the way. thanks so much :D

Sort:  

You place 2 files (index.html and style.css) in one folder (website/).
In index.html, in the <head> section, you add the <link> element and add style.css as the value of attribute href=

Like so:

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="style.css">
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

Success!

PS: I wish I had more time but I'm sorry that I can't help you out on every question via the comments!

no problem, thanks a lot. I tried this but it didn't work yet. Ill try again. ;)