First off, what does HTML stand for? Hyper Text Markup Language. How does it work? By using codes that only a web browser can understand, you can make a webpage.
For this lesson, open up Notepad. This is a standard program all computers have.
In that blank Notepad document, type <html> and press enter a few times and then type </html>
Now, go to File and Save (keyboard shortcut: Ctrl+S) or Save As...
Type in mywebpage.html or whatever you like as long as it ends in .html
Once you go to open that file, you'll notice the icon next to it resembles your web browser logo. This is showing that it is an HTML file and can be viewed in your web browser. It is no longer simply a .txt file.
In your document you just saved, type <head> under <html>
.We're going to give your web page a title, so type <title>
Put it whatever you want your page's title to be. The title is what shows up on the very top of your web browser and on the tab, etc. Once you've typed your title, type </title>
The slash means end. The tag is now complete that you have an ending slash on it. This is a very important thing to learn as most tags need a starting tag and an ending tag (with a slash) to work properly. Otherwise, your web browser doesn't know when the tag ends and things get messy.
We'll keep this simple.. If you want to learn all the other things you can do in the <head> tag, you'll need to learn CSS (Cascading Style Sheet.) For now, let's just type </head> to show that the Head is done.
Now, let's type <body> and start working on the body of your web page. Let's put a banner, a paragraph, and an image.
We won't put an image banner up yet. Let's just write across the top "MY FIRST WEB PAGE!" in big letters. How do we do that so the computer recognizes it? Type <h1> and then type MY FIRST WEB PAGE! and finish it off with the ending tag </h1>.
We're going type a random paragraph that says "BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH." First type <p> to represent a paragraph is starting and then type your "Blah blah blah's" and then type </p> as your ending tag.
Let's make a break after that paragraph by typing <br /> which is the equivalent of pressing enter to make a line space.
Insert </body> to end the body of your page. Underneath this should be the original </html> ending tag from before.
Your document should look like this:
If your document looks like what is above, Save. Go to File > Open. Find your file (make sure the file type shows all files, not just text files) and right-click on it and Open With » and choose your web browser (Internet Explorer, Netscape, Opera, Safari, Chrome, Mozilla Firefox, etc..) Your web browser should open and display the work you've just done.
Now, to add other things to your page see the codes below. Many of the codes you can copy and paste into your web page, save it, and open it up in your browser to see what it looks like.
To make a new paragraph, put the [p] code in the beginning and end of your paragraph.
Predefined Text shows the spaces you want it to show. You can use the [pre] code to space what you want. Must use the spacebar because using Tab won't show up. You can find the [pre] code below.