How to write the web page

How to write the web page

To create the web page, the main knowledge of HTML is necessary. At first it is necessary to understand, what is it. Html is a markup language of the hypertext. In other words is language which allows to place on the page references, graphics, the text, etc.

It is required to you

  • Notepad (text editor), browser.

Instruction

1. Create on the computer the folder with any name. For example "C:\website". Open a notepad and copy the code following html there:

<html>
<head>
<title> Hi everyone! </title>
</head>
<body>
Hi everyone! <br> Ya created the first page!
</body>
</html>

2. Execute The File — to Save command in the same notepad or using the CTRL + S keys specify path of saving the file with the final .html extension in the created C:\website folder.

3. Open this file by means of the browser. If all of you made correctly, then on your page started in the browser there has to be the following text:

Hi everyone!
I created the first page!

4. Sort each of tags which you used in the web page:

<html> - Any page should begin and come to an end with this tag. The tag says to the browser that the document is a HTML page. This tag is called pair since there is its opening (<html>) and closing (</html>).

<head> is so-called "head" of the document. There heading data contain. The tag is pair too (is available <head> and </head>)

<title> - specifies page heading. The text which was specified between the <title> tags and </title> will be visible in a browser window title.

<body> is "body" of the page. Everything that you arrange between the <body> tags and </body> will be after saving on the page. In the current example the text "Hi everyone there was placed! I created the first page!". As a result this text is visible in the browser.

<br> is one of the first tags which does not require the closing. It is necessary for an indent between lines, i.e. for transition to the next line. This tag is similar in the action to pressing Enter on the keyboard. For understanding of it try to remove the tag and everything will become more clear.

Author: «MirrorInfo» Dream Team


Print