HTML TPS
HTML TPS
INTRODUCTION TO HTML
</P>. Ans.
3) The browser ignores the paragraph created by user while writing codes by Dressine
Enter'. User must specifically define a paragraph in the code by using a paragaph
tag.
4) The <P> tag has one optional attribute called align. It is used to specify where the
text appear on SCreen.
i) <P align = left> Left alignment like normal text.
(ii) <Palign = right>:Text is aligned toright margin, but not justifiedto left.
(ii) <P align = center> :Text is centered.
(iv) <P align = Justify>: Text is justified to left and right margin.
(ii) <BR> tag: (March 2012, 16, 22 ;Oct. 2002, 2004
1) <BR> tag insert line break into a text flow. H23 24
2) It tells the browser to wrap the text that follows onto a new line without inserting
any extraspace between the lines. Q15
3) e.g.Sonia Gandhi, <BR> 10 Janpath, <BR> New Delhi.
In above example, the matter will be displayed as: Ans.
Sonia Gandhi,
10 Janpath,
New Delhi
4) For an entire blank line <BR> tag on that line. For multiple blank lines, just
them and type <BR> tag on every expected blank count
(iii) <HR> tag : (Mar, 2016; Oct. 2006, July 2016
Please refer Q. 15(c), Ch. 4, Pg. 4-9. H23 4)
J
ComputerScience- 4-8 HTML
TPS
<PRE> tag : W2ó;
18 H24
The text2004,07,12,22
(iv) (1) <PRE, is used to preformat the text.(March appcaring between start tag July
:Oct. 2003,06,14; <PRE>
and end tag </1RE> is
displayed in mono space form.
(2) This tag is used toposition the characters.
(3) This tag displays the text in exactly same format as the character and line spacing
format detined in sOurce HTML document.
(4) For example:
<PRE>
1
1 1
1 2 1
1 3 3 1
</PRE>
The display will be as:
1
1 1
1 2 1
1 3 3 1
14 How text is formatted by using <B>, <> and <U> tags?
Ans. : To give additional emphasis to the text, HTML provides bold face, italics and
underlining the words. This can be done by using <B>, <> and <U> tags as :
<B> tag: H23(Mar. 2005)
<B> is bold tag. The text appearing between start tag (<B>) and end tag (</B>) will be
displayed in bold letters.
e.g. <B> Bold Text </B> ’ Output :Bold Text
(ü) <> tag : (Mar. 2013)
<> is italic tag. The text appearing between start tag (<I>) and end tag (</>) will be
displayed in italics.
e.g. <I> Italic Text </> ’ Output : Italic Text
(üi) <U> tag: H24 Oct. 2007, July 2016
<U> is underline, tag. The text appearing between <U> and </U> tag will be
underlined.Generally, browser indicates hyperlinks in web pages by underlining them.
So it is generally avoided.
e.g. <U> Underlined Text </U>. ’ Output:Underlined Text
Qi5 Explain the purpose of following tags in HTML with example.
(a) <marquee> (b) <LIb (c) <HR> (March 2002,04,08; July 2019
Ans. : (a) <marquee>: (Oct: 2002,14)
) lt is used for scrolling the text and images on screen from right to left.
14) The text written between start tag <marquee> and end tag </marquee> will scroll on
screen, in horizontal line.
ror e-g. : <marquee> computer science </marquee>
screen.
Here, the word computer science will scroll on
There are several attributes associated with <marquee> such as BGCOLOR, HEIGHT
and WIDTH.
This is used to scroll the current news or position of different companies in stock
market.
TPS Computer Science -I 4-9 HTML