Videos Related with Different Tags Used in HTML

Note on Different Tags Used in HTML

  • Note
  • Things to remember
  • Videos
  • Exercise
  • Quiz

The paragraph Tag (< P >)

This tag is used to create a paragraph on the web page. It is a container tag but its closing tag < /P > is optional. You can align the paragraph either in left, right, center or justify using ALIGN attribute.

Syntax: < P ALIGN: "left"/ "right"/ "center" etc.. > ...... < /P >

Line Breaking Tag

This tag is used for starting a new line at that point. You can put < BR > tag on the document from where you want to break the line. But it does not break the paragraph. It does not have end tag as it is an empty tag.

Syntax: Text.... < BR >

Horizontal Line tag < HR >

This tag is used to draw the horizontal line across the page. It is an empty tag. you can use different attributes with this tag such as Align, Color, Size, Width etc.

Syntax: < HR Align = "left" / "right"/ "center"/ no shade

Color = " Color _ name "

Size = " Pixels "

Width = " Percentage "

Heading Tags ( < H1 > ...... < H6 > )

The heading tags are used to set different headings on the document. In the HTML, headings are used up to 6 levels ( H1 to H6 ). The first level of heading is defined using < H1 > tag. In the < H1 > tag, the heading appears in large size. < H6 > is the last level heading where text appears in small size.

Syntax: < Hn align = "left"/ "right" / "center" > text < /Hn >

where, n is a number from 1 to 6.

Image tag (< IMG >)

Using < IMG > tag you can insert inline images into the web page. This tag does not have the end tag. Some attributes of this tag are src, width, height, align, border etc.

Syntax: < IMG >

SRC = " image file "
Width = " value "
Height = " Value "
Align = " Left " / " Right " / " Center " / " Top" / "Bottom"
Border = " Value "

Marquee Tag < MARQUEE >

The < marquee > tag is used for scrolling piece of text or image displayed either horizontally across or vertically down on the web page. the text or picture can be animated in the browser with the help of < MARQUEE > tag. The text or picture can be put in between opening and closing < MARQUEE > tag.

Syntax:
< MARQUEE >
Behavior = " Slide " / " Scroll " / " Alternate "
Bgcolor = " Color name "
Direction = " Left " / " Right " / " Up "/ "Down "
Scroll delay = Time in millisecond
< /Marquee >

Where,

  • Behavior: It specifies the movement of the MARQUEE text.
  • Direction: It specifies scrolling direction of the MARQUEE text.
  • Bgcolor: it specifies the background color of MARQUEE.
  • Scroll delay: It defines how long to delay between each jump.

Anchor Tag (< A >)

The Anchor tag < A > is used to create all types of hyperlinks in the web page. every anchor tag must have a closing or end tag ( < /A >). The href attribute is compulsory used with this tag.
Syntax: < A HREF = "URL" > text or image to describe link < /A >

HTML Document Formatting Tags

Different formatting tags are used in HTML document to give different design in the web page. using these tags you can make your web page more attractive. Some commonly used formatting tags are < FONT >, < U >, < SUB > etc...
The font style tags are used to change the appearance of the text such as Bold, Italic, Underline, etc. Some font style tags and their syntax are as follows:
  • < B > tag: This tag is used to set the text in boldface.
    Syntax: < B > Text... < /B >
  • < I > tag: This tag is used to set text in italic format.
    Syntax: < I > Text... < /I >
  • < U > tag: This tag is used to underline the text.
    syntax: < U > text.. < /U >
  • < SUP > tag: This tag is used to convert the text in superscript like a2, b2 etc..
    Syntax: < SUP >.....Text < /SUP>
  • < SUB > tag: This tag is used to convert text in subscript like a2, b2 etc..
    Syntax: < SUB > Text... < /SUB >

  • The paragraph tag is used to create a paragraph on the web page.
  • The < marquee > tag is used for scrolling piece of text or image displayed either horizontally across or vertically down on the web page.
  • The horizontal tag is used to draw the horizontal line across the page. 
  • Using < IMG > tag, we can insert inline images on the web page.
  • The Anchor tag < A > is used to create all types of hyperlinks on the web page.
  • The font style tags are used to change the appearance of the text such as Bold, Italic, Underline, etc. 
.

Very Short Questions

The marquee tag creates a scrolling effect and can be tailored to include any HTML content.
The attributes of marquees tags are:

  1. ALIGN-To set position of the text
  2. BEHAVIOR -To set movement of marquee
  3. BG COLOR -To set background color of the marquee
  4. DIRECTION -To specify the direction in which the text will scroll

HTML supports six different heading levels from <H1> to <H6>.

The Anchor tag < A > is used to create all types of hyperlinks in the web page. every anchor tag must have a closing or end tag ( < /A >). The href attribute is compulsory used with this tag.

The font style tags are used to change the appearance of the text such as Bold, Italic, Underline, etc

0%
  • Which tag is used to convert text in subscript like a2, b2 ?

    < SUB >


    < I >


    < U >


    < SUP >


  • What is the correct HTML tag for inserting a line break?

    < hr>


    None of the above
    < p>

    < br >
  • The movement of text on the page is called _______.

    Marquee
    Transfer
    Font style
    Colspan
  • < H 1 > is used for _______.

    display text in Italics
    display text in bold type
    None of the answers are correct.

    display text in smaller font
  • <SUP > </ SUP> tag is used to display __________.

    typeface
    smaller font
    superscript
    subscript
  • <SUB > </ SUB> tag is used to display __________.

    big letter
    subscript 
    small letter 
    superscript 
  • < Imgsrc> helped to  _______.

    add colour


    add text 


    add sound 


    add image 


  • You scored /7


    Take test again

DISCUSSIONS ABOUT THIS NOTE

You must login to reply

Forum Time Replies Report


You must login to reply


You must login to reply

Bibek Adhikaro

it os wrongvin one test you have told that h1 chandes into small colour but is it so i dont think so because h1 changes the text in big size


You must login to reply


You must login to reply