how to reference external css in an HTML page

3

I'm learning html but I do not know why I'm not getting it calls a css file, which I created separate for my html.

<html>
    <head>
        <meta charset="UTF-8">
        <title> aula 5 </title>
        <link rel="styleshet" type="css" href="atyle9.css"/> 
    </head>
    <body>
        <p> Este é um paragrafo com elemento <em>EM </em> nele </p>
    </body>
</html>
    
asked by anonymous 29.03.2016 / 06:58

2 answers

5

The body that references the CSS is incomplete. Inside the href would not it be "style9.css" instead of "atyle9.css"? try putting it this way:

<link rel="stylesheet" type="text/css" href="atyle9.css"/> 
    
29.03.2016 / 07:05
1

You do not use type="css" and yes type="text/css" also checks if the path and filename are correct.

    
29.03.2016 / 07:19