E N D
HTML Tag This tag contains information about the document ,including its title, scripts used, style definitions and descriptions .The portion enclosed between the <HEAD> and </HEAD> tags is called the header. The header of a document is where global setting are defined. With the help of HTTP protocol one can also download information given in the header. This technique is used by search engines to find basic information about a page
Tags included in <Head> • <Base>:-The element specifies an absolute URL address that is used to provide server and directory information for partially specified URL addresses, called relative URL’s used within the document • <Link>:-This element specifies a special relationship between the current document and another and another document • <Object>:-This element allows program and other binary object binary objects to be directly embedded in a web page • <Meta>:-This element uses name/value pairs to provide meta information about a document.
Tags included in <Head> • <Script>:-This element allows programs written in a scripting language to be directly embedded in a web page. • <Style>:-This element encloses style specifications covering fonts, color positioning and other aspects of content presentation. • <Title>:-This element contains the document title
Body Tag • The <body> element appears after the <head> element and contains the part of the Web page that you actually see in the main browser window, which is sometimes referred to as body content. • A <body> element may contain anything from a couple of paragraphs under a heading to more complicated layouts containing forms and tables. • Most of what you will be learning in this and the following five chapters will be written between the opening <body> tag and closing </body> tag
Attributes Of Body Tag • Background: Specify the name of any image file that you want to print on the background of the web page. • Text: Specify the color of the text in Hexadecimal followed by Hash # symbol. There are some pre defined color names also available. • Bgcolor: Back ground color. Used to change the background color of web page. • Specify either Bgcolor or Background • Example • <body Bgcolor=“yellow” text=“green”>
Paragraph Tags • <P>: This is pair tag. It indicates Paragraph break. There are further optional parameters attached with it to set the alignment of the paragraph .By default alignment is right. We can it to Left & Center too. • <BR>:In HTML enter key doesn't mean Line break. We specially have to mention the Line Break with the help of BR tag. It’s a singular tag. • <Pre>:It’s a Pair tag. It indicates formatted text. The enter key etc used under Pre tag block will be treated as their actual meaning. Even the fonts and special effects will also be shown as output.
Horizontal Tag <HR>: Stand for Horizontal ruler. It will draw a horizontal line across the page. Following are the parameters that can be used with <HR> • Size Specify the size of line in pixels. • Width Specify the width of line in pixels or in %. • Align By default it is center aligned. Specify right or left. • Color By default there is no fill color but we can give that. • E.g <HR SIZE=“5” Width=“50” ALIGN=“left” COLOR=“RED”
Font Tag It’s paired tag. This tag is used to specify the font size,Font Face and font color of the Lines of paragraphs coming used <Font>……</Font> tags. The attributes of <Font> tags are as • Face:- Specify the Font name • Size:- Specify the size of font • Color:-There predefined colors an we also specify the colors
Pre defined Colors Different predefined colors are: Black Maroon Navy Green purple olive Steal Red Blue Gray Aqua Lime Silver Yellow White
Marquee • This tag is used to scroll text horizontally across the screen .it is mainly used to deliver a specific message to the visitor or to scroll Ads on a page. It is not a standard HTML tag and so the browser support for it is typically limited to internet explore.
Attributes of Marquees • Bgcolor:- Specifies the background color of the marquee. • Direction:- Specifies the direction in which the marquee scroll. The values are left and right. • Height:- Specifies the vertical dimension of marquee scroll. • Behavior:- Sets the behavior of marquee. The values are Scroll, Slide, Alternate • Width:- Specifies the Horizontal dimension of marquee scroll
Attributes of Marquees • Hspace:- Specifies the left and right margins of marquee scroll. • Vspace:- Specifies the Top and Bottom margins of marquee scroll.