What is HTML?
The full form of HTML is Hyper Text Markup Language. Markup language doesn't need any script to perform function it uses tags for identifying any content. For example- <p>I am a sentence</p>. Here '<p>' is opening tag and '</p>' is closing tag.
The <html> Tag
There are several versions of HTML but the basics are same. The opening tag is <html> and the closing tag is </html>. Example-
<html>
----------
</html>
The <head> Tag
Your document should posses a head portion which contains some non visible element that helps the page to work. To set head in your document write like this-
<html>
<head>..</head>
</html>
The <body> Tag
There is no document possible without body. So, to define body you should write like this-
<html>
<head>..</head>
<body>..</body>
</html>
Create Your HTML Page
You can use any kinds of notepad to write HTML as they are simple text files, but I prefer code editor notepad like Notepad++ as they help you to organize your codes very easily. Open your notepad and write the following things-
<html>
<head></head>
<body>This is my first text line</body>
</html>
Now save the file as .htm or .html file format. Example- Newpage.html
Use <title> Tag
You should have a title in your page. So, add title by following manner-
<html>
<head><title>The first page</title>
</head>
<body>This is my first text line</body>
</html>
Congratulation! You have learnt how to create a basic HTML page. For advanced learning click h e r e .
0 comments:
Post a Comment