Step 1 – How to begin

Last update: February 15, 2019

Starting an HTML file is easy. The first thing we need to define, is the fact that we’ll be ‘programming’ in HTML. You do this as followed:

Type this in Notepad:

<html>
</html>

With <html>, you open your document and state that whatever is to come is written in HTML. With </html>, you close your document. Anything written in between is read as HTML by the browser.

Save the file:

– Go to File
– Save as
– Set “Save as” to All files
– Call the file “index.html” as file name
– Click OK

Optional Settings

Right now, we’re leaving the file as above, but within the HTML-element, you can also define which language you are using in your file. For English, it would look like this:

<html lang="en">
</html>

It’s always two characters that define the language. You can also define a country. For instance, for US:

<html lang="en-US">
</html>

Again, it’s two characters to define a country. So, first you define the language, followed by the country. For England, it looks like this:

<html lang="en-GB">
</html>

And for Australia:

<html lang="en-AU">
</html>

On to Step 2

Bookmark the permalink.

Comments are closed.