HTML (Hyper Text MarkUp Language) is used to create web pages. The codes are called tags. The tags are given within < and >.
There are two types of tags ,
i. Container Tag : It has both opening and closing tags.
ii. Empty Tag : It has only an opening tag.
The basic structure of a HTML document is
<html>
<head>
<title>
</title>
</head>
<body>
………
……..
</body>
</html>
Whatever is typed between <title> and </title> will be displayed on the title bar not in the web page.
<html>
<head><title> My Page BCBS</title>
</head>
<body>
Your text goes here.
</body>
</html>
The data entered between <body> and </body> only will be displayed in the web page.
Line Break Tag:
Paragraph Tag :
The cursor moves to the next line.
It gives a blank line.
Heading Tag : Heading tags are used to display the text slightly bigger and bolder. There are six levels. Level 1 is the largest.
Formatting Tags :
1. Bold : <b> …</b>
2. Italics : <I> …. </I>
3. Underline : <U> ….</U>
4. Superscript : <SUP>….. </SUP>
5. Subscript : <SUB> ….</SUB>
6. Center Tag: The spelling is important. It positions the text in the center of the screen. <center>....</center>
7. Strikethrough : <strike> ..... </strike> : It draws a line through
the middle of the text.
The output will be:
No comments:
Post a Comment