This is not a Government of Canada website
Le but de ce site Web est de fournir un exemple fonctionnel du thème de la WET-BOEW-GCWeb créé par TNG Consulting Inc. en collaboration avec le gouvernement du Canada pour le logiciel Moodle . Les cours de démonstration ne sont disponibles qu'en anglais, mais les cours multilingues sont pris en charge.
The basic structure of an HTML file
What makes up an HTML file?
Other than the filename extension, the thing that makes an HTML file special is what’s inside.
The basic structure (or organization) of all HTML pages is:
<!DOCTYPE html>
<html>
<head>
<title>
This appears in the web browsers title bar
</title>
</head>
<body>
This stuff appears in the browser itself.
</body>
</html>
Copy and paste the above text into a text editor such as Notepad and save it as "index.html". When saving a file, take note of where you save it so you don’t have to look for it. A convenient place is on your Desktop.
Double click on the file to view it in your web browser. It should look something similar to this screenshot:
Congratulations! You have just created your first HTML web page. Double click on the file to see it in your web browser.
The only difference between this web page and the ones you access on the Internet is that this one is currently stored on your computer instead of a web server. This means that only you can see this page on this computer.
Next we will be looking at the codes called HTML tags.