+1 vote
36 views
Explain the use of following tags with example .

a) <marquee>

b) <pre>

c)<sub>
in computerscience by
reopened by | 36 views

1 Answer

+1 vote
Best answer

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

 

 

 

by (427 points)
edited by
1,046 questions
880 answers
13 comments
25 users