First, type the first line of our web page
then type this
You can type them in capital case or lower case. It doesn't matter.I typed them in capital to make it easy to read. Nothing has happened yet; we have just told the browsers (Netscape, Internet Explorer, and etc.) that this is a HTML document. The first is to tell the browser that "Here's the begining of HTML section." tells the browsers that "Here's the end of HTML section." Inside these two tags is where you will put the contents of your web page in.
Notice that we have and . This is how we open and close HTML tags. The closing tag is always in format. In most case, you will have to close every tag that you open.
Next, add a HEAD section to your web page.
My first page
tells the browsers that the title of our web page is "My first page." This sentence will appear at the top of browser window. Where? Look at the top of this window (the one that you're reading) and you will see "The easiest HTML guide for beginners"
OK. Now, let's put in the first word that the browser will display.
My first page
HELLO
We put to tell the browser that this is the starting point of the body of our document.
refers to header 1, which is the biggest size (see below.) You can try from to . Different numbers will yield different sizes.
Here is an example:
h1
h3
h5
Let's get back to our document. It now looks like this in a browser.
HELLO
Let's save this web page and view it in your browser. Save the page using 'save as' and name it whatever you like. Let's name it "mypage.htm" Please remember the location of your file. You may create a new directory for it or just simply save it in drive C. Open your web browser (Netscape or Internet Explorer) and try to open the file that you just save. Click on 'File' -> 'Open' and type in c:\mypage.htm or the path to your file.
No comments:
Post a Comment