We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 14
PART-A
SHORT QUESTIONS WITH SOLUTIONS
Q1. Write about difforent formatting tags
Answer
| ormatting the text content present in a web page can be done by using formatting tags. Various formatting tags in
HIME are
1. Paragraph
The lag ~ p> allows the text to be written in a paragraph (i.¢., block-wise).
2. Center Tag
The tag ~ center> allows the text to be written in center of a page.
3. Break Tag
The tag shows a line break.
4. Bold Text
The tag ~b> displays the text in bold format.
5. Italic Text
The tag ~1> displays the text in italicized format.
6. Marked Text
The tag ~mark> displays the text by highlighting or marking it.
7. Underlined Text
The tag ~u> displays the text in underlined format.
8. Subscript
The tag ~sub> displays the text in the subscripted format.
9. Superscript
The tag displays the text in the superscripted format.
10. Bgcolor
The tag provides color to the background of a page. This tag is used in the body of htm! document.
Q2. Write about various controls of forms.
Answer : ‘Model Paper, 08
Form Controls
(i) The BUTTON Element
In HTML, button is generally used to trigger appropriate code of javascript.
Syntax
Example
(ii) The TEXT Element
In HTML, Text elements are considered as data entry fields. These fields generally accept single line of text.
Syntax
Example
INPUT TYPE = “password” NAME = “emp_id” VALUE = “default">
‘SIA PUBLISHERS AND DISTRIBUTORS PVT. LTD.
Model Papert, og |
follows,
xt” Name = “name of text field” VALUE = “default value">
JOHN">NS
Introduction
Ln 3
uN gubmit Buen
«HTML. the submit button sends the data
ir the foe tothe Web server Ne data entered
syntax
yNPUT TYPE submit” NAME
trmut burton” VALUE name of the
“submit button label
Example
INPUT TYPE = "SUBMIT! NAME
VALUE “NALIDATE™ employee”
How to create col
as. values in HTML? Explain.
answer!
color Values in HTML
JoHTML colors are specified through the use a
Fey colot combination of fed, green and blue values from
Sets Avolor Value can be set through the attribute equal
we hend dectmal value. A pound sign must precede the
vac value
Example
The above statements creates the web page with
(4. Write about ALT attribute.
Answer :
ALT stands for alternative text. ALT attribute may
certain times that, the browser may fail to display the
required image due to several underlying reasons. In such
cuanons there should be certain (text relative to the image)
dssplayed on the account of its (image) absence. This can be
done using ALT attribute.
‘Syntax
with each
"
Here, anally the entire teat 1s ert
laps
text to be displayed «
independent sentence initiating with «10» and ct
wath These
Iists are used when user ts willing to display tests
ally using bullets
hers, small wn
sequer
Syntax
sol»
Definition Lists
This a special type of list that Insts terms and their
definitions. Itis created using (define Ist) dl - tag A
term in a definition lst is specified using ~dt «(define
term) tag and its definition 1s specified using ~ dé
(define definition) tag
Syntax
.
.
ite
Q6. Write about the tags used for creating table.
Answer : Mode! Paper at Qt
In HTML, data can also be represented in tabular
format, This format is considered as one of the traditional
approach of data management. In this approach a data 's usu
ally organized in terms of rows and columns. The tags and
attributes that helps in creating HTML table are as follows
re a
..~/TABLE>
..TH™
./TD>
.. STHEAD>
~ TROOP
_—_— SIA PUBLISHERS AND DISTRIBUTORS PVT. LTD.°
WED TECHOLED:2) \
7) Wenat 19 0 froma MTEL? Given cn oncmplo, —
Acoocr | ode! Papers oy
Fromo
Tes cxspat ccrcen of every HIME application nothing but frame Hence frame can be define a the region of
the rowan deploying certain ouput, The region of the Browser can he divided into’ multiple regrons, hence they cen by
rosea «where cach region corresponds to an independent frame) Here each independent freme ec
referred 63 Oc!
us files can be viewed at one glance
delay en indopendent “HTML.” file. Hence within a single window,
Encmpo
Fremo.himl
Codestin Search App
FRAME example
teg in HTML.
hunt °
y Acower 1
tay style ~ “background-color-blue”.> Image tag is used to add an umage to the page. This
cps sFRAME-2
is dome by prov ding suitable image source 1m the 18
ody Syntax of image tag #8,
nemi> —
rrome-3 ‘Aniributes supported by the image 18 aFe>
(a) se
(b) Alt