1 / 13

Basic Tags of HTML

Basic Tags of HTML. HTML Tag.

sadie
Download Presentation

Basic Tags of HTML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic Tags of HTML

  2. 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

  3. 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.

  4. 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

  5. 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

  6. 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”>

  7. 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.

  8. 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”

  9. 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

  10. Pre defined Colors Different predefined colors are: Black Maroon Navy Green purple olive Steal Red Blue Gray Aqua Lime Silver Yellow White

  11. 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.

  12. 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

  13. Attributes of Marquees • Hspace:- Specifies the left and right margins of marquee scroll. • Vspace:- Specifies the Top and Bottom margins of marquee scroll.

More Related