Deleted CSS is still affecting the HTML file

Asked

Viewed 29 times

0

I was creating a basic site in HTML, so I decided to tinker a little with CSS to organize where each thing of the site would be using the divs, so I created a separate file to work with CSS. At first it was all right, but after a while the changes I made to the CSS file were no longer affecting the HTML file, so I tried to make some more drastic changes to confirm this. I changed the color in CSS and as I thought it did not affect the HTML file, so I decided to delete the CSS file, and the HTML site continued with the old changes even though I deleted the CSS file.

I wonder why that happens?

HTML site:

 <html>
<head>
    <title>Minha Listai</title>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="css/paginaInicial.css">
</head>
<body>
    <div id="div1">
        <h1>Minha Listai</h1>
    </div>
    <div id="div2">
        <input type="button" name="btLogar" value="Logar">
        <input type="button" name="brDeslogar" value="Deslogar">
    </div>
</body>
</html>

Google Chrome website:

inserir a descrição da imagem aqui

As you can see there is no CSS file and even then the site is as if it had one, and yes I’ve updated the page several times and I’m sure the HTML file is an empty folder.

  • 2

    This is called cache. The browser stores a version of your file in memory so you don’t have to download it every time via HTTP request. This makes your site load faster. Clear your browser cache and your problem will be solved.

  • If I keep using anonymous google mode to cache my site ?

  • In anonymous mode the cache will not be saved, in fact. This Google you speak of would be Google Chrome?

  • Yes it’s Google Chorme I’m talking about

  • Problem solved by clearing cache or accessing page in anonymous mode?

  • Yeah, thank you...

Show 1 more comment
No answers

Browser other questions tagged

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