tags.
Tags
All tags have the same format: they begin with a less-than sign "<" and end with a greater-than sign ">".
There are two kinds of tags
1. opening tags: example < Html >
2. closing tags: example </ Html>
The only difference between an opening tag and a closing tag is the forward slash "/".
HTML Comprises two major elements.
1.Head
Head tag: < Head >.....< /Head >
Title of he document will come here.
2.Body
Body Tag:< Body > .....</ Body >
Body will contain the entire content of a web page.
Example 1:
< Html >
< Head >
< Title >Hello HTML</Title>
< /Head >
< Body >
< P >Hello World! < /P >
</ Body >
< /Html >
Title:
TAG:< Title > ...< /Title >
Title tag is used to put the name of your page into the top of the browser.
It starts with< Title > and ends with< /Title > .In-between the tag we can give the title.
Paragraph :
TAG:< P > ...< /P >
It starts with < P > and ends with < /P >.In between the tag we can give the text.HTML comment:
Comments are ignored by the browser and are not displayed.There is an exclamation point after the opening bracket, but not before the closing bracket.
TAG:<!--........... -->
Example:
<!--This is a comment. -- >
No comments:
Post a Comment