The girls have been asking me to write a post about HTML, so instead of talking about writing prose this week, I’m going to see if I can come up with some HTML basics for those of you who don’t already know them.
A bit of background
HTML means hypertext markup language. A HTML document is a plain text document that your browser reads and interprets in order to deliver web pages to your screen.
Luckily for us HTML is fairly simple to learn.
We use markup or tags to describe the structure and content of the webpage we want to build.
First we need a text editor. You can use wordpad, notepad or even get something as fancy as Crimson Editor to help you with your markup.
We start by telling the browser the document is HTML, and we do this with a <html> tag at the top of the document. We also put a </html> tag at the end of the document to show the code has finished, but we can worry about that later.
HTML documents are made of two parts, the head and the body. So we put a <head> tag after our initial <html> tag. All sorts of information can go in the head section of the document, but as we’re only looking at the basics I’ll leave that for another time. One of the things that does go in the head section is the page title. <title>My Webpage</title>.