No display of index.html


#1

Hello,

I practice coding in web languages. Today I tested the code below and nothing is displayed. I wanted to inform you because I believe in BRAVE.

PS: I did tested the index.html file in other browser.

HTML:

`

Carte d'Anniversaire

Jouyeuse anniversaire
</div>
<!-- • javascript - jquery • -->

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="js/anniversaire.js"></script>
`

CSS:
`.carte {
background-color:rgb(210, 230, 238);
padding: 15px;
height: 425px;
width: 300px;

}
button {
display: block;
margin : auto;
padding: 15px;

}`


#2

Hi @Ajell,
I’d like to test this on my end, but I’d like to your example as its intended. However, it seems that your code is getting mixed in with the styling markup for Discourse and isn’t showing up as intended and certain lines may be missing.

Can you resend the html code again, but this time, try dropping in the text without formatting, select all, and click Preformatted text option . This should help your code appear more readable. If you’re unsure, check the preview window next to your reply to see how it will look once posted.


#3

Hi Mattches,

these are the codes HTML and CSS they are separated just for you to use them:

HTML:
<!DOCTYPE html>

<html lang=“en”>

<head>

<meta charset=“UTF-8”>

<meta name=“viewport” content=“width=device-width, initial-scale=1.0”>

<meta http-equiv=“X-UA-Compatible” content=“ie=edge”>

<link rel=“stylesheet” href=“css/styles.css” type=“text/css”>

<title>Carte d’Anniversaire</title>

</head>

<body>

<h1>Jouyeuse anniversaire</h1>

<div class= “carte”>

</ul>

<div>

<button type= “button”>Jouyeuse anniversaire</button>

</div>

</div>

<!-- • javascript - jquery • -->

<script type=“text/javascript” src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>

<script type=“text/javascript” src=“js/anniversaire.js”></script>

</body>

</html>

CSS:

.carte {
background-color:rgb(210, 230, 238);
padding: 15px;
height: 425px;
width: 300px;

}
button {
display: block;
margin : auto;
padding: 15px;

}


#4

Hi

I’d like to inform you that the file works by following the browser menu (File > Open a file), but not when double-clicking on (index.html) in the file explorer. I get an about:blank page.

Best regards