![]() |
|
||||||
StructureHTML documents are composed of two parts: the head and body. The head part contains the document specific information’s such as the title to be displayed on the title bar of the browser, etc. The information to put in the head part should be placed inside the following tag: The body makes the rest of the document, it is in the body in which we place all the text which relates to the actual document along with all the formatting tags. See example below: Sample of an HTML Document StructureThe <html> </html> tag is the main tag or the umbrella tag under which all the other tags resides. HeadingsHeadings are usually used to imply the importance of a particular paragraph. You can insert a heading into html document using <h*> tag where * is the size of heading ranging from 1(large) to 6(small). If you need to add a large heading, you need to add the following line to your html document:This is your large headingIf your need is to add a smaller heading then you have to put the following line: This is your small headingHorizontal Ruled LinesHorizontal ruled lines are used to separate different areas of a web page. The tag used to insert a horizontal ruled line is <hr> . There is no closing tag for a <hr> tag.You can specify the behavior of the horizontal line such as size and width of the line by adding some special attributes to the <hr> tag. The default width of the <hr> tag is the width of your screen and has a default height of 2. This is your horizontal ruled line:
No Comments for this page. |
|
||||||||||||||||||||||||||||||||