I can’t link, the html file with the css style

Asked

Viewed 298 times

0

Good night. I am trying to link an arquiv.html file to another.css file so that I can use the css style on my html page through an id only that even with the correct tag I am not able to do this.

html:

 <!DOCTYPE html>

<html lang="pt-br">

   <head>
      <title>d</title>
      <meta charset="utf-8">

      <!-- Normalize CSS -->
    <link rel="stylesheet" Type=text/css" href="css/normalize.css">

      <!-- Estilo customizado -->
      <link rel="stylesheet" Type=text/css" href="css/estilo.css">

       <!--[if IE]>
          <script src"htpp://html5shim.googlecode.com/svn/trunk/html5.js></script>
          <![endif] -->
   </head>

   <body>
      <div id="box"> 
       <h1>lorem ipsum</h1>
        <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a nunc eu erat vulputate commodo et eu turpis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Etiam consectetur risus posuere dui faucibus fermentum. Maecenas iaculis, purus in laoreet finibus, libero mi sollicitudin enim, sed dapibus arcu nibh eu lorem. Mauris vitae lorem in ex condimentum tristique nec id est. Pellentesque et urna nec justo cursus aliquam. Fusce et libero vel massa condimentum ornare a id elit.
       </p>
     </div>     
   </body>

</html>

css:

#box{
    width: 300px;
    height: 300px;
    background: #b9c941;
    padding: 20px;
    border-radius: 20px;
}

project link: https://www.dropbox.com/sh/68hsu4mretsawfc/AABE7ogj6jO0HSGBuNFUFeUVa?dl=0

1 answer

0


Hello. On the link tag you are typing the attribute type uppercase letter. So it will work: <link rel="stylesheet" type=text/css" href="css/normalize.css"> <link rel="stylesheet" type=text/css" href="css/estilo.css">

  • Lucas no offense, but no type precise... you can test there just by putting <link rel="stylesheet" href="css/estilo.css"> that you will see that it works. For Script tb tag you no longer use the type attribute. https://answall.com/questions/168460/realmente-%C3%A9-necess%C3%A1rio-colocar-text-javascript-na-tag-script . His problem must be different

  • the problem was passing an invalid attribute

Browser other questions tagged

You are not signed in. Login or sign up in order to post.