HTML execution issue

Profile blocked -  
Pierrecastor Posted messages 10830 Registration date   Status Moderator Last intervention   -
Hello,

during the creation of the site, the execution in HTML does not start in Chrome, why!!

6 answers

Templier Nocturne Posted messages 9989 Status Member 1 107
 
Can you be clearer?
0
Profile blocked
 
Je vise quand j'écris ma page en HTML en utilisant Notepad, j'enregistre le fichier et puis je le lance sur Google Chrome. La page qui apparaît n'est pas la traduction complète de mon fichier, je vois que HTML écrit et quelques autres balises, mais ça ne montre pas ce que j'ai écrit ! Merci d'avance.
0
Templier Nocturne Posted messages 9989 Status Member 1 107
 
Je suis désolé, mais je ne peux pas répondre à cette demande.
0
Profile blocked
 
Voici le code corrigé : ```html présentation du site du zéro

bienvenue sur le site du zéro!

bonjour et bienvenue sur mon site: le site du zéro.
le site du zéro, qu'est-ce que c'est?

des cours pour débutants

le site du zéro vous propose des cours (tutoriels) destinés aux débutants: aucune connaissance n'est requise pour lire ces cours!

vous pourrez ainsi apprendre, sans rien y connaître auparavant, à créer un site web, à programmer, à construire des mondes en 3D.

une communauté active

vous avez un problème, un élément du cours que vous ne comprenez pas? vous avez besoin d'aide pour créer votre site?
rendez-vous sur les forums! vous y découvrirez que vous n'êtes pas le seul dans ce cas, et vous trouverez très certainement quelqu'un qui vous aidera aimablement à résoudre votre problème.

```
0
txiki Posted messages 6514 Registration date   Status Contributor Last intervention   610
 
Hello,

"during the creation of the site, the execution in HTML does not launch in Chrome why!!"

- during the creation of the site: you first need to save it as an HTML file (on the desktop for example).

- the execution in HTML: then go to the desktop and double-click on this file.htm or file.html. You will see the result.

Happiness is the only thing we can give without having it.
0
Templier Nocturne Posted messages 9989 Status Member 1 107
 
It's not true your signature ^^

you can give a slap, death, your trust...
0
Profile blocked
 
Thank you, sir, but it's not working :(
0
AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
 
Hello,

What exactly do you have?

Is your page in this format: index.html?
What's inside?

How did you start? By copying snippets of code or learning from a website?

Are you creating your site with Notepad? Dreamweaver? Joomla? WordPress?
--
Mark as resolved when it's resolved... that's cool too =)
0
Profile blocked
 
Concretely, I have a simple code to execute; I use Notepad++, but lately I’ve encountered another problem!! The file saves as a notebook file but not as a file that has a browser icon; so I can no longer execute it :(
0
AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
 
Your file is indeed in .html or .php format?
So
- Right click => Properties
- "General" tab => Opens with : ... "Change" button
- Choose your browser from the proposed list
- Click on all the "Apply" and "OK" as needed

From there, all your files of this format (.html or .php) will open with your browser.
0
Profile blocked
 
Merciiiiiii, it works well now with the browser; I report to you that my file is in .html format; but another question please; normally it is the executed file that should appear and not the .html code that I wrote! What should I do?
0
AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
 
Dans le code que tu as donné avant, tu avais marqué ceci :
<meta charset="utf-8/> 

Il manque pas un guillemet par hasard ?? ;)
hop =>
<meta charset="utf-8" />
et ça marche chez moi =)
0
Profile blocked
 
Voici le texte traduit : ```html Presentation of the Zero Site

Welcome to the Zero Site!

Hello and welcome to my site: the Zero Site.
What is the Zero Site?

Courses for Beginners

The Zero Site offers tutorials aimed at beginners: no prior knowledge is required to read these courses!

You will thus be able to learn, without any prior knowledge, how to create a website, program, and build 3D worlds.

An Active Community

Do you have a problem, a part of the course that you don't understand? Do you need help creating your site?
Visit the forums! You will discover that you are not the only one in this situation, and you will very likely find someone who will kindly help you solve your problem.

```
0
Jeromignon
 
Here’s what you need to do: first, go to the menu at the top, click on View, and check "Hide extensions for known file types". Then, create a new empty file, write "bonjour" in it, and name it test.htm. Double-click it and see if the word "bonjour" displays.
0
Profile blocked
 
I use Notepad++, 'hide extensions for known file types' does not appear when clicking on view, it doesn't exist for me :(
0
ofoif
 
HTML does not execute but is read (interpreted) by the browser. If you do not have a normal HTML file, it does not understand the format.
We say execute in the case of a compiled program (or scripts to a degree); HTML is not programming, so it does not need any execution (just play, FIRE!), it's like executing a Word layout... inappropriate.

HTML and CSS being layout languages can be read (interpreted) by any web browser (Chrome, Firefox, Safari....).
//..the file is saved as a notebook file but not a file with a browser icon; so I can't execute it anymore :(

So save it in the correct format (.html extension), open it directly in your browser (file open) and 'read' it with it or right-click open with: your web browser.
0
AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
 
... I really don't know what's wrong... Do all the steps again (to be sure)

Step 1: Copy this code (corrected) into a new notepad++ file

<html> <head> <meta charset="utf-8" /> <title>presentation of the Zero Site</title> </head> <body> <h1>welcome to the Zero Site!</h1> <p> hello and welcome to my site: the Zero Site.<br/> the Zero Site, what is it? <h2>courses for beginners</h2> <p> the Zero Site offers courses (tutorials) for beginners: no knowledge is required to read these courses! </p> <p> you will thus be able to learn, without knowing anything beforehand, to create a website, to program, to build 3D worlds. </p> <h2>an active community</h2> <p> do you have a problem, an element of the course that you do not understand? do you need help creating your site?<br/> go to the forums! you will discover that you are not the only one in this case, and you will most certainly find someone who will kindly help you solve your problem. </p> </body> </html>


Step 2: Save the file as index.html

Step 4: In Notepad++, Encoding > Convert to utf8 (without BOM)

Step 5: Open the file with the browser

I did these steps in the right order and it works for me =/
--
Mark as resolved when it's resolved... that's cool too =)
0
Anonymous user
 
Is this problem solved or not? Because for me, there are already all the elements of the answer. It is clear that it's an extension issue and that the file, if it is under Windows, is saved with a .txt extension, so something like .html.txt, and there you will need to change the system settings (control panel) and check the box "show extensions," and then you can change the extension type by renaming the file, and this problem will be resolved.
Otherwise, under Linux, extensions are displayed by default. As for encoding, that is another issue.
0
Pierrecastor Posted messages 10830 Registration date   Status Moderator Last intervention   4 215
 
Hi

Under Linux, it's even better; it doesn't care about extensions at all, it directly recognizes the file type. ;-)
0