And now it's finally time to jump into the HTML coding and create your very first web page!
Our HTML code won't do much by itself and is pretty much just a text file. To see the web page it describes we're going to have to open it in a web browser.
You should now see a page similar to this:
First let me tell you that the code I gave you above is as super correct as it gets and follows the W3C XHTML 1.0 specifications to the letter. You can safely use it as a XHTML 1.0 strict template for all your future web pages.
This first line is not a real HTML tag, nonetheless it is required in every HTML document. This so-called doctype tells the web browser what kind of file it's dealing with. In our case it's a XHTML 1.0 strict file. These doctypes are set in stone and can always be looked up so please save yourself the torture of learning this by heart.
This is where our actual HTML document starts. The <html>...</html> element isn't all that interesting by itself. It just marks the beginning and end of all our HTML code. The xmlns attribute is required for XHTML documents, the other two are optional but it's good practice to include them.
Next follows the <head> of our HTML document. Except for the <title> element which appears in the browser window, none of the head information is displayed on the page. The head usually carries information like language, character encoding, copyright information, page description and so on. The <meta> tag in our code is optional but should be included anyway as a backup in case the server is not providing this information or you're viewing the page offline.
This is where things start to get interesting. The <body> element holds all the content that will be displayed as a web page. In this case we have a paragraph element <p> with the text Hello there ... In the following chapters you'll get to know more of these HTML tags you can use to build your web page.
The best way to learn how to create a website is the do-it-yourself approach. I suggest you try out all tutorial examples in your own page and play around with the code to get a better understanding of how things work.