WT Assignment 1-1
WT Assignment 1-1
Not
Explain follo coing
AnsDee
Aspect Talesnet
9DefiniHog A Coll ecionof Aglobal netoork
iateotopnected coeh of interconne cked
pages acces sible. Camputer Syslem
uia ineme
Handlinq TH ÎsCapable ot
inaccunate tyntaa handlin inaccuTae
T) tale and ecplaln 099 selectors
cofth guBable erample
Ansoet
Css Selecor9:
lniversal Selecter()
Tupe Selector (Element sele ctrr)
’ Ctassselector()
ID sel ector(t)
Descendant Selecto Cspace)
) Llnivea 5al Selector(t)
The universa! sele ctor selects all elements
ona page
Erample
mangin:0;
paddingi0;
Selecto)
2) Type Selecto (Element elemenks
Tipe selector 5elects all of
a Bpecic type.
Examplei
Color 'bluej
maxqin:2pxi
Peso t'o.
Dale
8) Class Selector ()
Class Selectox 9electe elementsoith
Specific class.
html:
<p>class "highlight"> THfs text is highlighked
CSSi
highlight /
3backqround-calor yelloc0)s
u)Th Selecto C#)
TD 9electots
colt specificselects
TO asingle lement
Erample
html:
<hi
C33
d"mainHHeMain THe <lht)
# main-tiHe
font- sne:24pri
color :ed
Dae
Example
div p
Color: bluei
font-size ': |opj
OThtenal css
Defined oihin the <otyle>'taqinside
he <heady oA HTmL Doaument
Eaample
<I DocCTUP£ html>
<html
<heody
Lshyle
bady bockyround-colerlig hblues
<atml)
<IP) inline <lbody
Ted" colcsor 20p3"fontparograph
erample</hi) -usesSize: CS Lnline
e" alin: shyle: This <P
te Col
x+ or:q1een style"
<hods<hi
<DOCryPE
Html htm
Example
ent athibute he
HIml aoitthhiinn directshylBey tDefi
aotaD nusiedng
cs Taline
Intenal
cs uslng stuled THisis lbodythtml
<P>
le.cthl) Ecamp essTnerrnal <hi)
<body
<Ihead>
</style>
Cnhet
tect-align:
s
bluej dor Color
Dale
tlo. Page
(3) Extemal css
Defned io
fn separate .css
.cS Ale and
tfaked using <lint> taq in HTMt do urnent
inder.ttml
<|DocTyp£ html>
<html
<head
elink gel =" styleshee type:"terk/cas"
hrefe" style. css">
<lhead)
<body
<hi ctemal sS Fxample <lhi
<p) This panaqraph uses eactemalss </P>
Llbody>
<htal>
Stylecss
body f
backyround-colo:beige ;
3
color nauys
tecl-aligni Cenletj
Ccample
HTTP{ 1 g00 ok
Content-Tåpe: text|html
oatet Length 256
<htmi)
<head)
<tiHe> Example Page </ EHey
heady
Qs ik a HIML Code to display form
tect field,che ckborec dnd co}h
radion
passtod Aeld and submi bultoo
Ansoo et butens
<DocTyPE Html>
(htmi langs"en">
<head
<mete chnset =" UTA- 8">
metahname"uieoport"
deuice-coldth, initial scale conl
e:0">nt"coidh:
<HHe> fom EocampleK/iHey
head)
(bods
<ht} Llsex Reqishahon fonm
<tom actione <ihty
/submit-fom' methode" Post'
(labelboye 'name".)
<input ype-"ext full Name:/]abel)
ide"nome"
pla
cehaldet"Enke
<hr)Kbr youn Aameallaane
name' eqimed
<label for
:"email>
(input ype:email "
Cmaul: abel
/d="email" name "emai'
olaceholdee :" Enten youm
br><b) email'rqud>
<label fer 'passDOTd"> PassuDork: Klabel)
Cinput type "passocrd" jd"'pasn ond'
</btml)
<lbody>
a) submit
types'submi!> <button
Lbrba)
bety Reading reading"y for <label
eading" Value
"igterests' name
eading "checkbaz'
id type: Sinput
/label> Coding coding"> forr-' <label
aluee'Coding
> "interests" name:
id:"coding" checkboz" Hype:" <input
<label> Tntevests: label>
<br)cbr
<label female female" fors" Klabel
female value
" ded
-"female" 'nid
adio! type <input
<label> Male male" for' <label
mequ1ed> "male" value
nameid:'male" type"radio" <inpu
</label> Gender <label