What is HTML:
HTML is Hyper Text Markup language. It is used to describe the structure of web pages using a process called "Markup". The building blocks of html are the elements called "Tags" which are discussed below:
Starting with html:
So lets start making our first html program. HTML contains tags and those tags helps us developing our website.
For Example:
<html> : Opening tag.
</html>: Closing tag.
The basic html tags:
- <!DOCTYPE html>: This shows that we are going to develop an html document type. This is not the case sensitive.
2.<html> </html>:Defines the file is of html type. This encloses all the html code.
3.<head> </head>: Makes a separate heading tag that can contain title of our html program or javascript that we will use later.
- <title> <title>: Should be placed inside the <head> </head> tag.
4. <body></body> It contains heading and paragraphs or the content that is visible to the viewer of the page.
- <H1></H1>: It is the heading tag of size "1".
- <p></p>:Inside it , we may write our paragraph.
Example:
<!DOCTYPE html>
<html>
<head>
<title>My first html program</title>
</head>
<body>
<H1>This is Heading</H1>
<H4>Smaller heading</H4>
<p>This is paragraph</p>
</body>
</html>
Output |
0 Comments