So I am practicing HTML and CSS and doing some simple things like changing the color of the background in CSS. The problem is that when I load the page in Internet Explorer (IE 11) no changes show up. To test this further I loaded my page in Goggle Chrome and it displayed the page as expected.
This has happened a few times and I tried to make sure I deleted the cache in Internet Explorer, I made sure I was editing the right file and that the CSS style code was in the same directory. I made sure I did an Crtl + R / Crtl F5 refresh and it doesn't work. The weird thing though is that after loading it a few times in the past it works without me doing anything else.
Here is what I am trying to display:
HTML FILE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Lesson 12 - Fun With CSS Selectors</title>
<link type="text/css" rel="stylesheet" href="styles.css" media="all">
</head>
<body>
<h1>Title of the page</h1>
<p>Lorem ipsum dolor sit amet ultricies. Nunc at aliquet nunc.</p>
</body>
</html>
CSS FILE:
h1{
font-size: 30em;
font-weight: heavy;
font-color: red;
line-height: 10px;
}
body{
background-color: red;
}
The font color does not change in the h1 tag (probably because its not how you do it) but the background color changes in Google Chrome as well as the size of the font. In Explorer it remains a white page with the H1 tag content unchanged. Does anyone have any ideas on what could be happening?
UPDATE:
As of now when I load my page now in Internet Explorer 11 it now has the changes from the style CSS, but I changed nothing! I just opened it again... Can anyone explain what is going on, because this has happened multiple times