INTRODUCTION INTO HTML:
HTML was invented by Tim Berners-Lee in 1991, The first HTML version was 1.0 but the standard version 2.0 in 1999, HTML stands for Hyper text markup language
HTML VERSIONS:
- HTML 1.0
- HTML 2.0
- HTML 3.2
- HTML 4.01
- HTML 5.0 (the latest version)
HOW TO RUN HTML PROGRAMS:
- Open the notepad in your pc or laptop
- Type HTML code and save with .html or .htm extention
- Open folder where the HTML code has been saved
- Select the file and right click with mouse button and select open with then choose a browser & press enter and your browser display the output to code which you write in the notepad
- Most importantly make a new folder in the desktop and save all your HTML files in that particular folder
BASIC PROGRAM IN HTML:
Lets start hello world in HTML,
<html>
<body>
<p> hello world </p>
</body>
</html>
HTML made of tags, for every starting tag there must be a closing tag.
TITLE TAG:
Title tag should be given inside the head,you may think why,because <head> tag is container tag ,which contains <title>,<meta>,<script>.we gonna more about <meta> in later and about <script> in javascript
we gonna give title for this program,
<html>
<head>
<title>
my first program
</title>
</head>
<body>
<p> hello world </p>
</body>
</html>
Run it and observe the changes
Loot at top left, i'm highlighted the TITLE, run the first program and look at there,you may see the differences.
WHY THE TITLE IS GIVEN:
You all know that search is responsible to search the thing you gave search bar when you given a title
the google search engine or anything else brings your website or your webpage to home page of your search.
Note: HTML has title attribute don't confuse both , let's look title attribute later
Nice understandable
ReplyDelete