Answer the question
In order to leave comments, you need to log in
All browsers except explorer do not display css, why?
Hello everyone, I recently started learning html and css and ran into a problem, browsers do not display css.
I looked at all sites through explorer and it displayed everything as it should, but Google, mozilla, opera only display what is written in html, background color, font color, font type, they do not display.
But if I write all this in html, then the font, font color, background color. Only then they display it, but if I write all this in css, then only explorer displays it correctly.
What could be the problem?
Here is the html
<html>
<head>
<title>HtmlCss</title>
<link rel="stylesheet" type="text/css" href="Style.css" />
</head>
<body>
<h1>Заголовок 1</h1>
<h2>Заголовок 2</h2>
<p>— Eh bien, mon prince. Gênes et Lucques ne sont plus que des apanages, des поместья, de la famille Buonaparte. Non, je vous préviens que si vous ne me dites pas que nous avons la guerre, si vous vous permettez encore de pallier toutes les infamies, toutes les atrocités de cet Antichrist (ma parole, j'y crois) — je ne vous connais plus, vous n'êtes plus mon ami, vous n'êtes plus мой верный раб, comme vous dites 1. Ну, здравствуйте, здравствуйте. Je vois que je vous fais peur 2</p>
</body>
</html>
body {background: #58D3F7 url("Fon.jpg") no-repeat fixed center center;}
h1 {color: red;font: italic bold 60px times new roman, serif;}
h2 {color: red;font: normal small-caps 40px Times New Roman, serif;}
Answer the question
In order to leave comments, you need to log in
1. Is everything on the localhost or on the server?
2. Host on win or nix?
3. Are all files in the root of the site?
Make all file names in small letters and in the code everywhere also make all names in lower case.
In the Google console, what it says (F12).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question