Hello guys... hope you all are doing well...
If you are reading this, then let me tell you that this is the second post of mine in this blog. You can see the first one here >> http://sidsahoo20.blogspot.in/2015/01/html-intro.html
This is gonna be a quick one. As I said, we will be discussing each and every tag which I used in the last example. Okay, let me rewrite that example for better understanding :
<!DOCTYPE HTML>
<html>
<head>
<title>My page</title>
</head>
<body>
My first web page.
</body>
</html>
The <!DOCTYPE> tag is used to define what kind of language is used to write the web page. If you are thinking, only HTML is used to create web pages, then let me tell you that there are other languages like PHP, ASP.NET which can be used to create web pages as well. So the browser needs to have the information about the language that is being used.
The <html> tag is like a parent tag and contains all other tags. So it's the parent container tag.
The <head> tag contains information about the web page. If you notice the <title> tag is inside the <head> tag, which is used to show "My page" on the title bar of the browser and the browser tab. The <head> tag can also contain other information about the web page, which we will discuss later.
The <body> tag is the showman of all the tags, as it contains all the data that need to be displayed on the browser.
Now if you want to see how the above example works, what you need to do is :
1. Write the above code in a Notepad or any text editor.
2. Save it with a .htm / .html(reccomended) file extension.
3. Go to the folder where you have saved it, then open that file. That's it and you can see how it works.
So let's get started. Please try this, while I get some more interesting information about HTML for you.
Thank you for reading.... we'll meet soon.....
If you are reading this, then let me tell you that this is the second post of mine in this blog. You can see the first one here >> http://sidsahoo20.blogspot.in/2015/01/html-intro.html
This is gonna be a quick one. As I said, we will be discussing each and every tag which I used in the last example. Okay, let me rewrite that example for better understanding :
<!DOCTYPE HTML>
<html>
<head>
<title>My page</title>
</head>
<body>
My first web page.
</body>
</html>
The <!DOCTYPE> tag is used to define what kind of language is used to write the web page. If you are thinking, only HTML is used to create web pages, then let me tell you that there are other languages like PHP, ASP.NET which can be used to create web pages as well. So the browser needs to have the information about the language that is being used.
The <html> tag is like a parent tag and contains all other tags. So it's the parent container tag.
The <head> tag contains information about the web page. If you notice the <title> tag is inside the <head> tag, which is used to show "My page" on the title bar of the browser and the browser tab. The <head> tag can also contain other information about the web page, which we will discuss later.
The <body> tag is the showman of all the tags, as it contains all the data that need to be displayed on the browser.
Now if you want to see how the above example works, what you need to do is :
1. Write the above code in a Notepad or any text editor.
2. Save it with a .htm / .html(reccomended) file extension.
3. Go to the folder where you have saved it, then open that file. That's it and you can see how it works.
So let's get started. Please try this, while I get some more interesting information about HTML for you.
Thank you for reading.... we'll meet soon.....
nice and simple writing..good
ReplyDelete