Sunday 17 November 2013

Html Class 1: Learn The Basic Html Tags In This Class

Opening and Closing Tags

HTML code is most commonly referred to as tags. The majority of tags have both an opening tag and a corresponding closing tag. Every HTML file begins with this opening tag:

Every HTML file ends with the corresponding closing tag:

Notice the/in the closing tag?

All closing tags must have this slash. You know why? Because it's a closing tag, that's why. Below the opening html tag come the opening and closing head tags:

The head tag doesn't have any affect on what appears on the web page, it's job is to hold certain other types of tags, one being the title tag:

Ah, look at that, there's some text between the opening and closing title tags, this is where the title of a web page is entered, Next comes the closing head tag. Remember, a closing tag has a slash this thing. So this is what the code should look like so far:

Now let's get to putting something on the web page. Everything that is seen on web pages is found between the opening and closing body tags:

Example:

Look Ma, I'm Making my first webpage

Notice in the example that the closing html tag was added to the code. This means we are finished (at least for now), so save your code following the instructions given in the introduction of this tutorial.

Curious to see how the webpage looks?

Open the webpage in your browser and have a look. See? The text between the body tags is what shows on the web page. In the next lesson you will be introduced to more tags and what they do.

0 comments:

Post a Comment

 

Copyright @ 2013 The Best World's Blog About All Kind Of Information.