Web - Assignment 1
Web - Assignment 1
<fonre)
klabe) Finst name </label cbbr)
<tnput type tezt namesstname sise -us')
<label) Mtddlenarme: (/1abe i) sn) (oas
|<in puttype text' hame "middele hame'sie-''s'
<labei) lastname 'Vlabeis
"lezt" hame lattname" seic'd (bnbny
Knput type
Slabel)
CoUrse.
Klaber
kseleat)
<o pion Value z co unse" lourse </oph'on)
Kopon valae ( Be A") Bu <lophon)
<optbn value :BBA BbA </Dptior)
<opton value: B. Teeh) B.Teeh op tr'on)
<o ptn vlue teeb) Meeh <lo phon)
4seleet)
Klabei)
Cun den:
klabe) (bn) male/ Mae <bn)
|Sn put tygeanao namer «femala) female <bn)
Kinputtype adio name =
<bo)
|Kinput type nadio namee"Othen"/) 0hen <bn)
Klabe)
|Phone
klabeis value z9 1" sisel2")
Kin put by pe ext hame eounty code"
<br bn)
Kinput type =text'hame =Phone se "10"/)
Addnes con)
<texttea' cols =80 Ows =s Value addess"
|Vtetanca)
Ernatl: <bn)
Kn puttype ema |" 1d: email'name 'emi <bn
|Pa ss wond :
Knputtype = Pass Wond 1dr Pastiend rame Pas'bn) (bnl
Retype Pasmond:
<thput ype PassWond "id =Vnepass namy =ne pa s (bny(brs
<n put type = button" value subm "/>
sfonms
body
Kehtrm
9.) BrieBly explatn he Doeument stouchene of HML5
eith an exampla.
|The basic stouchere ot an HML document eles
to the ovenalt ongan'9aton and syntay ot an u TML 1le
Jt consis ts sevenal elements to Pnov le infonmation
hbout the web Rge's eontent
<DOLTYP£ Mtm: Thes deela na to speei fes the vensian
|of 4tnl trat the docurnentts wot ten tn.
2) (htmt element: Th's s the. noot
element of the
documentand ehclose qtl other element
3. <head element: This elerm ent con tatns metadata a bo ub
te doeument sueh as tue tLe, authon and chanatest.
t" le) element: This element conteint at s nes ted ntthi
Hhe head elennent and speatfey the Hie ot the heb page.
ontent
5)(body) elem ent: This element on tauns al vistble
such y texts mages, lmnS and othen Htn!
|On the Pag e,
elomen ts.
Vsenip4)
yhtrn)
6) Explatn the tollouing gava senipt obet in detail:
|() Fon m (b) Text (e) Pass won d d) Rado e) cheeu boX.
e) Pass Wond
Jnteraetibn wth Passond înputRelds tn Javascmp! ru
SPrntlan to text in put heid s. we can access then
thnough te fonm Dbgjet on by selethg then diney
Ustng DoM methods, We can nead on modify the'n
and handle een ts as ocia ted wh
Vale pro penty
then
a) Padio
Tn Java Seipt, we can access nadto button similarty
Used
Used þoM nethods
to othen fom elements .we can
sel eatadio button ele mant and man ipulate theha
4
thern Poopentes. You can also altach erent 'hand lus
TO espond to ehanges n the selee ted opHon wth in
the nadio button gnoup
Ke) cheen boy
invo Ne
ntera etng wttn cheenboxes n Javasempb by seletrg
Meessng them thnough te Pom obgut on ned o
DoM nmethods. You ean
them dinety using DoM to detemfne the state
modity t n checned Poopert
and handle eents anocra ted hith them