menu search
person
Explain the use of following tags with example .

a) <marquee>

b) <pre>

c)<sub>
thumb_up_alt 1 like thumb_down_alt 0 dislike
47 views

1 Answer

 
verified

A) <marquee>

Marquee  is a tag used to create scrolling text .

It supports attributes like , direction , height, width, bgcolor , loop etc common attributes.

Eg.

<Marquee direction="down" height="200"> my marquee text</marquee>

my marquee text

 

 

 

 

B) <pre> 

This tag is used to preformat  the text and text inside this tag is displayed in monospace format .

Eg. 

<Pre>my text</pre>

My text 

C) <sub>

 This tag is subscript tag used to display text in subscript format  it is useful to display chemical equations and mathematics formulas .

Eg .

H<sub>2</sub>SO<SUB>4</SUB> 

H​​​​​​2​​​​​SO​​​4

 

 

 

thumb_up_alt 0 like thumb_down_alt 0 dislike
...