0% found this document useful (0 votes)
6 views

HTML

The document provides an overview of HTML (Hyper Text Markup Language), detailing its definition, features, advantages, and disadvantages. It explains various HTML tags such as <P>, <BR>, <HR>, <PRE>, <B>, <I>, <U>, <MARQUEE>, <FONT>, <TABLE>, and their attributes with examples. Additionally, it covers the RGB color code system used in HTML for specifying colors.

Uploaded by

mitv16686
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

HTML

The document provides an overview of HTML (Hyper Text Markup Language), detailing its definition, features, advantages, and disadvantages. It explains various HTML tags such as <P>, <BR>, <HR>, <PRE>, <B>, <I>, <U>, <MARQUEE>, <FONT>, <TABLE>, and their attributes with examples. Additionally, it covers the RGB color code system used in HTML for specifying colors.

Uploaded by

mitv16686
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

HTML (Paper I) Computer Science Std.

XII
Q.1 What is HTML ?
Ans 1)HTML is the most simplex text oriented programming language
2)HTML means Hyper Text Markup Language used to create World Wide Web document.
3)Using this language use can create web pages which can be viewed by any web browser i.e. Internet Explorer
4)Hyper Text is ordinary text with extra features such as formatting,images,multimedia & links with other documents
5)Markup is the process of tasking ordinary text & adding extra symbols which tells the browser how to
display the text
6)Markup lauguages are conserned with parts of ducuments according to their function
such as headings,subheadings etc
7)HTML contains a set of instructions for formatting & layout of web pages
8)HTML is not progrmming language by real mean
Q.2 Explain the features of HTML
Ans 1)HTML contains a set of instructions for formatting & layout of web pages
2)Using HTML user can jump from the topic rather than finding information linearly
3)HTML includes graphical & formatting tags
4)HTML is hyperlink specification language
5)HTML supports frames including target windows & borderless frames
6)It contains powerful formatting facilities for text,page,images etc )
7)HTML tages does not display but it tells the browser how to display the contents 9 01 of documents
5
8)It supports .BMP & animated .GIF images
3 26
Q.3 Write advantages of HTML
982
Ans 1)For creating HTML document only text editor is needed.No special software - is needed
2)HTML document can be created on any hardware platform al
w
3)HTML is eay to learn with use of implement b er
4)It contains powerful formatting facilities Ba
s y
5)Required HTML pages can by updated easily
S ir ’ without changing
n ja whole document
6)Any HTML document can be traversed i a
a th anywhere due to (S hyperlinking facility
ce
7)Need not to worry about editing the
rat
S E
R programs,if something
8)HTML will not cost anything forhaits use such as expensive cien
is not working,finding error is easy
licenses.
Q.4
Ans
Write disadvantages of HTML B

RI
1)HTML is not programming language in truepusense te r S

2)Any simple calculation can not be done oinmHTML


3)It can not be used to display even dateC
4)The Interactive web pages can not be built in HTML
5)The web pages developed in HTML can not behave like an application
6)The web pages developed in HTML do not have their own interface
7)HYperlink is provided,but for that we need a trip to server at each step
Q.5 Explain the tage <P> , <BR> , <HR> & <PRE> tags in HTML
Ans <P> 1) <P> tag us used for creating paragraph text
2)A paragraph can be created by enclosing text within <P> & </P> the used must specify a paragraph
within <P> tag
3)<P> tag has one optional attribute called “align” which shows where the paragraph will appear on screen
i) <P ALIGN=”LEFT”> - Left alignment of Paragraph, ii) <P ALIGN=”RIGHT”> - Right alignment of Paragraph
iii)<P ALIGN=”CENTER”> - Center alignment of Paragraph,
iv) <P ALIGN=”JUSTIFY”> - Paragraph is justified to left & right margins
<BR> : 1) <BR> tag insert the line break into a text flow
2)It tells the browser to wrap the text that follows onto a new line
3)e. g : Sonia Gandhi <BR>10 Janpath <BR>New Delhi
The matter will be displayed as Sonia Gandhi
10 Janpath
New Delhi
4)For entire blank line put <BR> tag on that line.
<HR> : 1) A web page can be divided into seperate sections by using Horizontal Rulers using <HR> tag
2)This tag is mostly used for decorative purposes
3)The <HR> tag has several attributes such as width & span e.g. <HR SIZE = “6” WIDTH=”60%”>
This displays a line of 6 pixels thick which spans 60% of the browsers window
<PRE> : 1) <PRE> tag is used to preformat the text i.e. the text appreaing within <PRE> & </PRE> is
dsiplayed in mono space form,2)This tag is used to position characters,3)This tag displays the text in
same format where it is positioned.
e.g. Output 1
<PRE> 1 2 3
2 3 4 5
4 5</PRE>
HTML (Paper I) Computer Science Std. XII
Q.6 How text is formatted using <B> , <U> & <I> tags in HTML ?
Ans <B> Tag : 1)It is Bold tag.The text appearing between <B> & </B> will be displayed in bold letters
2) e.g. : <B>Bold Text</B>
<I> tag : 1)It is italic tag.The text appearing between <B> & </B> will be displayed in italics
2) e.g. : <I>Italic Text</I>
<U> tag : 1)It is underline tag.The text appearing between <B> & </B> will be underlined
2) e.g. : <U>Underline Text</U>
Q.7 Explain the tags in HTML with suitable example i)<MARQUEE> ii)<SUP>
Ans 1)<MARQUEE> : 1)It is used to scroll the text or images from right to left
2)The text writted within <MARQUEE> & </MARQUEE> will scroll on the screen in horizontal line
e.g. : <MARQUEE>Computer Science</MARQUEE>,here the word Computer Science will scroll on screen
3)There are several attributes associated with <MARQUEE> tag such as BGCOLOR,HEIGHT & WIDTH
4)This tag is used to roll the current NEWS
2)<SUP> : 1)It is a superscript tag
2)The text writted within <SUP> & </SUP> will be displayed in super script form
2
e.g . : 2<SUP>2</SUP>= 4 ,it will be displayed as 2 =4
Q.8 How can unordered lists be created in HTML ?
Ans An unordered list is a list of items that have no particular order
1)Unordered lists requires start & end tags <UL> & </UL>
2)A special tag <LI> is used to indicate the actual list elements
3)These are bulleted list they can be preceded by bullet styles like closed circle  or open circle 
or a square )
e.g. : <TITLE>Items</TITLE> The List will be9 01displayed as
5
<UL>  Eggs 326
2
<LI>Eggs  Milk- 98
<LI>Milk al
wApples
r
<LI>Apples
a be
</UL> B
’s ay
ir
4)<UL> as attributes as TYPE=”CIRCLE” (Closed j circle) TYPE=”DISC” (open circle)
& TYPE=”SQUARE” (Square) h iS San
at (
e the end of unordered list.
Q.9
5)The end tag </UL>ais
How can ordered hlists
S E
t Ralways requiredncat
ar be created inciHTML e
I
?
B S
An unordered list is a list of itemserthat have particular order
Ans
R
1)Ordered lists can be preceeded
& alphanumeric charactersom
t
pu by arebic numeracals upper/lower case,roman numericals upper/lower
C
2)Ordered lists requires start & end tags <OL> & </OL>
3)A special tag <LI> is used to indicate the actual list elements
e.g. : <TITLE>Shopping List</TITLE> The List will be displayed as
<OL> 1. Eggs
<LI>Eggs 2. Milk
<LI>Milk 3. Apples
<LI>Apples
</OL>
4)The attbibutes are
i) TYPE=”I” (Arabic numbers) ii)TYPE=”a” (Lower case alphanumeric)
iii) TYPE=”A” (Upper case alphanumeric) iv)TYPE=”i” (Lower case Roman Numbers)
v)TYPE=”I” (Upper case Roman Numbers)
Q.10 Explain the tags in HTML with suitable example i)<FONT> ii)<SUB>
Ans <FONT> : 1) <FONT> tag is used to format the size,type, & colour of enclosed text
2)It can be used with different attributes : SIZE,FACE & COLOR
3)The SIZE attribute specifices relative values from 1 to 7
4)The COLOR attribute is specified with RGB code or by specifying color name
5)The FACE attribute is used to display face of text enclosed within this tag
6)e.g. : <FONT FACE=”ARIAL” SIZE=”+3” COLOR=”RED”>Computer Science </FONT>
<SUB> : 1)It is a subscript tag the text enclosed within <SUB> & </SUB> will be displayed in subscripted form
2) It is a bit higher than normal text & useful for chemical formulae
3)e.g : H<SUB>2</SUB>SO<SUB>4</SUB
It will be displayed as H SO
2 4
HTML (Paper I) Computer Science Std. XII
Q.11 Write a short note on RGB Code
Ans 1)In HTML color name is specified by RGB code i.e. Red,Green & BLue
2)There are 16 color names in HTML they are BLACK,SILVER,GRAY,WHITE,MAROON,RED,PURPLE,
FUCHISIA,GREEN,LIME,OLIVE,YELLOW,NAY BLUE,TEAL & AQUA
3)RGB codes contains 6 numbers with “#” first two numbers specify the amount of RED,next two
specify amount of GREEN,lat two specify the amount of BLUE
4)By mixing these three colours in different it is possible to derive any color
5)RGB codes uses Hexadecimal Number System
6)For RED color RGB is #FF0000,for BLUE it is #0000FF & for GREEN RGB code is 00FF00
7)For BLACK RGB code is #000000,WHITE it is #FFFFFF
8)YELLOW is the combination of max. RED & MAX GREE hence its RGB code will be #FFFF00
Q.12 What is <TABLE> tag ? What are the attributes of this tag ?
Ans 1)<TABLE> tag is used to create table,end with </TABLE>
2)A table consists of rows & columns called cells
3)The row is created using <TR> & </TR> tag
4)<TH> tag is used to display column heading end with </TH>
5)<TD> tag is used to display column data end with </TD>
6)Attributes of <TABLE> tag )
01 9
Attribute Description 5Example
6
1. Border Draw outline around cell,default <TABLE BORDER
232 = "2">
8
it has no border
l -9
2.Width Defines how wide your table a
<TABLE WIDTH="50">
r w
will appear on screen
a be
3.Cellpadding Decides the amount of spacing B <TABLE CELPADING="2"
’s ay
betweenSireach cell bordern& j the BORDER="2">
actual h i Sa
at content of celle (
4.Cellspacing
a ra
t
S
R
Creates
E space between
ienc two <TABLE BORDER="4"

5.Bgcolor
B h

RI
cells
To give background
table p ut
e r Sc CELLSPACING="4">
color to the <TABLE BORDER="4"
BGCOLOR="RED">
om
6.Bordercolor Give color C to the border <TABLE BORDER="4"
BORDERCOLOR="BLACK">
7.Align Decides the alignment of table <TABLE
ALIGNMENT="CENTER">

**** Best of Luck ****

You might also like