Fjí Wvú Ks Udkh I - Yd: M Wfhaia PDKQL
Fjí Wvú Ks Udkh I - Yd: M Wfhaia PDKQL
Fjí Wvú Ks Udkh I - Yd: M Wfhaia PDKQL
M wfhaIa pdkql
fjí wvú ks¾udKh i|yd HTML
M wfhaIa pdkql
2
fjí wvú ks¾udKh i|yd HTML
© M . wfhaIa pdkql
ksl=;l
a sÍu - 2018 foieïn¾
https://www.e-ketha.home.blog
https://www.facebook.com/eketha
3
msÿu
f;dr;=re ;dlaIK úIh Tiafia
Ôú;h ch .kakg
ux fm;a újrlr ÿka
4
l;Df.ka
wka;¾cd,h w;sYh ÈhqKq hq.hl isák Tng wka;¾cd,h hkq l=ulao hkak meyeÈ,s
lsÍug wjYH fkdjk nj ud oksñ. fmrlS ÈhqKqj ksidu rcfha wdh;k ,úYd,
fm!oa.,sl jHdmdr fukaau k.rfha we;s l=vd lvidmamq ysñhkao ;u jHdmdrfha ÈhqKqjg
fm!oa.,sl fjí wvú Ndú;d lrñka ck;dj fj; ióm ù we;. wo jk úg lsisÿ jhia
fNaohlska f;drj wka;¾cd,h Ndú;d jk ksid úYd, mqoa.,hska ixLHdjla fuu fjí
wvú Ndú;d lrhs. ta ;=<ska jHdmdrj,g fukau mdßfNda.l s hdg;a úYd, myiqjla ie,fia.
tfukau wka;¾cd,h u.ska b.kSu, wka;¾cd,h u.ska b.ekaùu, wka;¾cd, /lshd iy
úfkdaodYajdo jeks lafIa;% Tiafia wka;¾cd,h fõ.j;aj ÈhqKqù we;.
by; i`oyka lafIa;% fukau ;j;a úYd, lafIa;% .Kkdjla mokï lrf.k fjí wvú
ks¾udKh fjñka mj;S. tuksid fjí wvú ks¾udKh wo jk úg úYd, wdodhula ,eìh
yels wdodhï ud¾.hla njg m;aù we;. tfukau fjí wvú ks¾udKh wo ish¨ fokd
oek .; hq;= úIh lafIa;h
% laù we;.tu ksidu fjí wvú ks¾udKh ms<sn`o mdi,a úIh
ks¾foaYhgo we;=<;aj mj;S .
fuu .%ka:h ;=<ska Tng tA ms<sno ukd oekqula ,efí hehs uf.a ye`.Suhs. fmr lS
mßÈ ;dlaIKh iy wka;¾cd,h fl;rï ÈhqKq jqjo fujeks jákd úIh lafIa;% ms<sno
isxy, udOHfhka ,shù we;s fmd;a b;d w,amh. tu ysvei iq¿jYfhka fyda msrùug
fuu .%ka:fhka yels fõhe hs uu is;ñ.
wjidk jYfhka f;dr;=re ;dlaIK úIfhys udf.a oekqu j¾Okh lsÍug lemù
l%shdlrk iquÿq wfíiQßh .=re mshdKkag udf.a f.!rjKSh ia;=;h
s mqolr isáñ. uf.a uj
mshd we;=¨ mjqf,a ish¿ fokdg;a ,fuu .%kA:h lshjñka ;j ;j;a woyia ,nd foñka ud
Èßu;a lrk ud yd b.kqu ,enQ fidhqr fidhqßhkag;a Wojq Wmldr l< ish,a,kag;a
úfYaI ia;=;sh mqolr isáñ.
fuu .%ka:h ms<sn`oj mdGl Tnf.a woyia udfj; bÈßm;a lsÍug yelskï th b;d
w.hfldg i,lñ th fuu .%ka:fha wvqmdvq yÿkd .ekSug;a tajd ksjrÈ lrñka
bÈß .%ka: iïmdokh lsÍug;a buy;a rel=,la jkq we;
M . wfhaIa pdkql.
e-mail : [email protected]
[email protected]
5
mdGl Tng
fuu .%ka:h Wiia fm< úIh ks¾foaYh b,lal fldg ks¾udKh lrk ,oaols. tneúka
úIh ks¾foaYhg wod, fkdjk fldgia fuu .%ka:fhka §¾> jYfhka meyeÈ,s lsÍug
n,dfmdfrd;a;= fkdfõ. tjeks úIh ks¾foaYhg wod, fkdjk fldgia meyeÈ,s lsÍfu§ ta
ms<sn`oj i`oyka lr we;.
tfukau fuu .%ka:h m%dfhda.sl úYh tallhla ms<sn`oj iïmdokh jQ .%ka:hls. tu ksid
fuu .%ka:fhka meyeÈ,s lr we;s ish`Mu fldgia m%dfhda.slj w;ayodn,d tajdfha l=vd
fjkialï isÿlrñka kej; kej; w;ayod n,ñka fuu .%ka:h mßYS,kh lsÍu u`.ska
fuu .%ka:fhka Wmßu m%fhdack ,nd .ekSug yelsjkq we;ehs uf.a úYajdihhs. tf,i
m%dfhda.l
s w;ayod ne,Sï lsÍfu§ we;súh yels .eg`M yels;dla yÿkd.ksñka tajdg
úiÿï iemhSugo fuu .%ka:h ;=,ska W;aiy ord we;. ta i`oyd úfYaIfhkau wjidk
mßfþoh jk w;sf¾l lshùï ;=, bvla fjkalr we;.
tfukau m%dfhda.sl l%shdldrlï isÿlsÍug rel=,la jYfhka fuu .%ka:fha meyeÈ,s lr
we;s ish`M WodyrK j,g wod, fjí msgq tl;=jla iys; f.dkqjla Tn fj; bÈßm;a lr
we;.my; fjí msgqj fj; msúiSfuka tu f.dkqj ,nd.; yel.
https://www.e-ketha.home.blog
fuu .%ka:h ;=, olakg ,efnk ish`M WodyrKj,g wod, fjí msgq tu f.dkqj ;=,
olakg ,efnk w;r tu.ska hï WodyrKhla ms<sn`oj .eg`Mjla we;sjQ úg th
ksrdlrKh lr.ekSug myiqjkq we;.
tu f.dkqfõ m%Odk fjí msgqj index f,i kï lr we;s w;r th yryd wfkl=;a ish`M
fjí msgqj,g .uka l< yel. tneúka index fjí msgqj yryd iïmQ¾K f.dkqju
mßYS,kh l< yel.
tfukau fuu .%ka:h idïm%odhl .%ka:hla fuka fkdj B-fmd;la f,iska tng
ms<s.ekafjk ksid idudkH .%ka:hlg jvd fjkia w;aoelSula Tng ióm jkq we;.
.%ka:h ;=, úúO ia:dk j, flá ud¾. ks¾udKh lr we;. tu.ska b;d myiqfjka tla
tla msgq i`oyd msúiSfï yelshdj Tnfj; ,nd § we;.
6
mgqk
01 HTML wrUuq 08
05 wlaIr yev.ekaùu 26
06 újrK fh§u 35
09 miq;,h ieliSu 55
10 Marquee Wiq,kh 58
11 HTML ,ehsia;= 63
12 HTML j.= 76
13 HTML rduq 89
14 HTML wêiïnkaOl 94
HTML ye`Èkaùu
HTML b;sydih
Text editor uDÿldx.
HTML Tags ye`Èkaùu
8
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
HTML ye`Èkaùu
Hyper Text Markup Language hkafkys wlaku HTML f,i y÷kajkq ,efí' fuh l%uf,aL
NdIdjla fkdjk w;r i,l=Kq lsÍfï fla;hla fõ' Standard General Markup Language -
SGML j, Wml=,lhla jk fuh i,l=Kq lsÍfï Wiq,khka (markup tags) iuQyhlska
iukaú; fõ‘.
HTML b;sydih
HTML 1991 oS áï n¾kia,S uy;d úiska ksmojk ,oaols .
kuq;a fuh fndfyda ckm%sh jkqfha 1995 § ksl=;a jQ HTML 2.0 keue;s
ixialrKh (version) iu. fõ.
bka miq m%Odk ixialrKhla f,i 1999 § ksl=;a jQ HTML 4.01 yÿkajdÈh yel.
e fl;
9
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
jHqyh
jeiSfï Wiq,kh
újD; lsÍfï Wiq,kh
<P> </P>
fldaK jryk
jeiSu i`oyd Ndú;d l< we, br
<P align=center>
Wiq,kh Wm,laIKh w.h
e fl;
10
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu WmfoaY fla; i|yd lemsg,a (CAPITAL) wl=re fyda isïm,a (simple) wl=re Ndú;
l< yels jk w;r tA fya;=j ksid lsis fjkila fjí msgqj, isÿfkdfõ'
WodyrK
<HTML> <Html> <HTml>
<htML> <HtMl>
WodyrK
= .
Centre f,i fkdj center f,i ioyka l< hq;h
colour f,i fkdj color f,i ioyka l< hq;=h.
fuu Wiq,k ms<sn`o ukd wjfndaOhla óS<`. mßfþo wOHkh lsÍfu§ ,efnkq we;.
Wm,laIK j,g w.hka fh§fï§ we;eñ wjia:dj, Wvq fldudhq.,h ^ z Z& fh§u l<
hq;=h. tfia fh§fu§ ie,ls,su;a úh hq;= lreKq lSmhla we;s w;r tjd ksis f,i Ndú;d
fkdl,fyd;a fjí msgqfõ l%shdj,shg n,mEï t,a, úh yel tu lreKq iïNkaoj §¾>
meyeÈ,s lsÍula w;sf¾l lshùï ;=, wvx.= fõ'
e fl;
11
02
m<uq fjí msgqj
12
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
YS¾Ih - head
l`o - body
e fl;
13
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
14
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuf,i Wiq,k fhdod ilia l< fldgi fjí msgqfõ m%Nj fla;h (source code) f,i
yÿkajhs'
e fl;
15
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
jeo.;au lreK jkafka save lrk úg ,ndfok ku wjidkfha .html f,i ,nd osh
hq;=ùuhs. fuh f.dkqfõ f.dkq È.=j f,io yeÈkafõ. WodyrKhla f,i f.dkqfõ ku
first web page kï th first web page.html f,i fhdod iqrlsh hq;=h.
by; fjí msgqfõ i`oyka mßÈ isxy, wl=re Unicode wlaIr l%uh Ndú;d lrkafka kï
Encoding hkak unicode f,i f;dard.; hq;=h. th Notepad uDÿldx.h ;=, kï f.dkqj
iqrlSu§ ,ndÈh yel.
e fl;
16
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu f.dkqj újD; l< miqj my; mßÈ m%;sM,hla ,efnkq we;.
we;eï úg tf,i fjí w;ßlaif q jka (web browser) újD; ùug iQodkï ù fkdue;s
wjia:djkao ;sìh yel. tjeks wjia:djkays§ we;súh yels .eg`M i`oyd úi`ÿï w;sf¾l
lshùï ;=, wvx.=fõ.
tfukau fjí msgqj f.dvke.Sfuka wk;=rej kej; kej; fjkialï lsÍu ms<sn`oj
meyeÈ,s lsÍula w;sf¾l lshùï ;=, wvx.=fõ.
w;sf¾l lshùï fj; .uka lrkak >>
,eî we;s m%;sM,h iy th ks¾udKh lsÍug fhdod.;a Wiq,khka my; mßÈ iei§ula
isÿl< yel.
fuys <titel> yd </title> w;r we;s ish¨ oE fjí msgqfõ YS¾Ifha(head) ud;Dldj f,i
fh§ we;s w;r <body> yd </body> ;=, we;s ish¨ oE fjí msgqfõ l`o(body) ;=, fh§
we;.
e fl;
17
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
18
03
fjí msgqjg fPao
we;=,;a lsrSu
19
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h iys; fjí msgqfõ l`o (body) fldgi mukla my; oelafõ.
e fl;
20
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
21
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
22
04
fma<s fjka lsÍu
23
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
by; WodyrKfhka fmkS hkafka fjí msgqj ilik wjia:dfõ fm<ska fm<g wlaIr
fh§u isÿl<o m%;sM,fha tu wlaIr Èiajkafka tl fm<g njhs. tu ksid kj
= .
fm<lg .uka lsÍugo Wiq<k Ndú;d l< hq;h
e fl;
24
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
by; .eg¿jg úi`ÿula f,i <br> Wiq,kh yÿkajdÈh yel. fuys br hkq Break hkak
flá lr oelaùula fõ. tu.ska isÿjkafka tu Wiq,kh fh§fuka miqj fhdok ish¿ foa
kj fma<shl igyka ùuhs. tfukau fuys úfYaI;ajh jkafka wjika lsÍfï Wiq,khla
fyj;a </br> wjYH fkdùuhs.
e fl;
25
wlaIr yev.ekaùu
05
uQ,sl yev.ekaùfï Wiq,k
ud;Dld Wiq,k
<font> Wiq,kh iu`. wlaIr yev.ekaùu
26
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
27
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
23= 8
H2O
fuys§ <b> iy </b> w;r we;s wlaIr ;o meye .ekaù we;. fuf,iu wfkla Wiq,k j,
l%shdldÍ;ajho jgyd .ekSug wmyiq fkdjkq we;ehs uf.a ye.Suhs.
ud;Dld Wiq,k
<h1> isg <h6> olajd Wiq,k ud;Dld ioyd fhdod .kS. fuys úfYaI;ajh jkafka fuu
Wiq,kh fh¥ wlaIr ;o meye ùu iy Wiq,kh wjidkfhaoS kj fma<lg .uka lsÍuhs.
ir,j .;aúg fuu ud;Dld Wiq,k ;=, <b> Wiq,khla iy <br> Wiq,khl
l%shdldÍ;ajho wka;¾.;j mj;S.
e fl;
28
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6
e fl;
29
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
30
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
Font 7
Font 4
Font 4
e fl;
31
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuysoS j¾K Ndú;d l< yels wdldr wdldr 2 la mj;sk w;r ta ms<sn`oj wjidk
mßÉfþoh jk zw;sf¾l lshùïZ ;=, §¾> úia;rhla wvx.= fõ.
fuys§ ksjrÈ f,i m%;sodkh ,ndfokafka mß.klfha mj;sk wl=re j¾. fh§fï§ muks
e fl;
32
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fmr wOHkh l, ish¿ Wm,laIK tlu Wiq,kh hgf;a tljr fhÈh yels w;r ta
i`oyd wkqms<sfj<la wjYH fkdfõ.
my; WodyrKfha wlaIrj, m%udKh 5 f,i;a j¾Kh r;= f,i;a wl=re j¾.h Chiller
f,i;a ilid we;s w;r tA i`oyd tlu Font Wiq,kh hgf;a Wm,laIK fhdod we;.
Hello
fuys§ wm Ndú;d lrk wlaIr j¾. fï jkúg mß.Klfha ia:dmkh lr ;sìh hq;=h.
e fl;
33
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
HTML
e fl;
34
06
újrK fh§u
újrK yÿkd.ekSu
újrK fhoSfï jeo.;alu
újrK fh§u
35
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
újrK yÿkd.ekSu
fjí wvúh krUkakdg fkdj fjí wvúh ks¾udKlreg muKla ;u wjYH;djka wkqj
html Wiq,k w;r fhÈh yels fldgia újrK fõ.fïjd lsiÿ
s whqrlska m%;sodkh fkdfõ.
újrK fh§u
fï ioyd újrKh lsÍug wjYH fldgi <!-- iy --> w;r fhÈh hq;=h.
e fl;
36
07
;sria f¾Ld fh§u
37
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
38
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
f¾Ldfõ m%udKh
e fl;
39
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
f¾Ldfõ j¾Kh
e fl;
40
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
f¾Ldfõ È.
fuh m%ldY l< yels m%Odk wdldr 2 ls. m<uq l%uh È. m%udKh mslai,a
w.hkaf.ka ,nd§uhs. fojk l%uh jkafka È. m%udkh msgqfõ iïmQ¾K Èf.ka m%;sY;hla
f,i ,nd §uhs.
e fl;
41
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
f¾Ldfõ msysàu
fuysoS f¾Ldfõ msyà
s u jug ueog ol=kg f,i fjkia l< yel. fuh fydÈka wjfndaO
lr .ekSug È. 500 jQ f¾Ldjla (width = 500) WodyrKhg f.k we;.
e fl;
42
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
by; b.k.;a Wm,laIK ish,a, Ndú;d lrñka my; WodyrKh ks¾udKh lr we;.
fuysoS j¾K Ndú;d l< yels wdldr wdldr 2 la mj;sk w;r ta ms<sn`oj wjidk
mßÉfþoh jk zw;sf¾l lshùïZ ;=, §¾> úia;rhla wvx.= fõ.
e fl;
43
08
nyq udOH fh§u
44
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
src mska;+r f.dkq ud¾.h f.dkq kduh iy f.dkq È.=j ,nd Èh hq;=h
Img Wiq,kh hgf;a src Wm,laIKhg mska;+rfha f.dkq ud¾.h f.dkq kduh iy f.dkq
È.=j ,ndoSfïoS b;d ie,ls,su;a úh hq;=h. thg fya;=j jkafka l=vd fyda w;ajer§ula
ksid mska;+rh m%;sodkh fkdúh yels ùuhs.
tu ksid f.dkq ud¾.h f.dkq kduh iy f.dkq È.=j ms,sn`oj ksjrÈj oek isàu jeo.;a
jk w;r tA ms<sn`oj úia;r lsÍula w;sf¾l lshùï ;=< wvx.= fõ.
e fl;
45
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
46
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ó<`. WodyrKfh§ mska;+rfha i;H ku jQ fruits fjkqjg fruit f,i l=vd fjkia lula
lr kej; fjí msgqjla ks¾udKh lruq. tfukau alt fldgig image of fruits f,i
fh§fuka alt fldgi ksjerÈj l%h
s d;aul fõ oehs mßlaId l, yel.
fuys§ wm we;=,;a l< ia:dkfha fruit kï f.dkqjla fkdue;s neúka id¾:l f,i
mska;+rhla m%;sodkh fkdùh. tu fodaYh ksid alt hgf;a ,ndÿka fldgi o¾Ykh ùula
isÿù we;.
wm alt fldgila fkdÿkafka kï Èiajkafka jeks fldgils.
tu ksid fjí msgq ks¾udKfh§ isÿjk fodaY fyda cd,fha isÿjk fodaY jeks ´kEu
isÿùula ksid mska;r
+ ksismßÈ o¾Ykh fkdúh yel. tjeks wjia:djl§ fjí wvú
mßYS,lf.a myiqj fjkqfjka mska;r+ fha wvx.= foa ms<sn`oj flá yeÈkaùula fuf,i
o¾Ykh l, yel.
e fl;
47
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
48
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
49
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
Embed Wiq,kh
ish`M nyq udOH fhoSug yels fmdÿ Wiq,khla f,i embed Wiq,kh Ndú;d l< yel.
fuys§ src hgf;a ,ndfok ´kEu j¾.fha f.dkqjla fuys m%;sodkh fõ. kuq;a tu f.dkqj
fuu Wiq,khg iyh olajk f.dkqjla úh hq;=h.
e fl;
50
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
wu;r plugin tlla wjYHùu iy úúO browser fuu Wiq,khg m%;spdr olajk
wdldrh úúO ùu ksid j¾;udkfha fuu Wiq,kh t;rï m%dfhda.slj Ndú;d fkdfõ.
fuu fya;=j ksidu kj úYh ks¾foaYh ;=, fuu Wiq,kh ms<sn`oj meyeÈ,s lsÍug
n,dfmdfrd;a;= fkdfõ.
e fl;
51
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu Wiq,kh HTML 5 j¾.hg wh;a jk ksid we;eï Wm,laIK fh§fu§ w.hla wdfoaY
lsÍu wksjd¾h fkdfõ. Controls iy loop hkq tjeks Wm,laIK folls tu Wm,laIK
fol my; WodyrKfha§ w.hka wdfoaYhlska f;drj fhdod we;.
WodyrK chapter_08 /video.html
<html>
<head>
<title> video-Example</title>
</head>
<body>
<video src = “data/video.mp4” controls loop>
</body>
</html>
e fl;
52
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys Controls fldgi fkdfhdod l%shd;aul lf,a kï my; oelafjk Toolbar fldgi
fkd,efí.
e fl;
53
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
54
09
miq;,h ieliSu
55
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
56
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
57
Marquee Wiq,kh
10
Marquee Wiq,kfha Wm,laIK
p,kh jk osYdj
yeisÍu fjkia lsÍu
p,kh jk fõ.h
58
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu Wiq,kfha l%h s dldÍ;ajh .%ka:hla u.ska oelaùu wmyiq fõ. kuq;a fuu .%ka:h
iu`. we;s m%dfhda.sl WodyrK tl;=fõ 10 mßÉfþoh hgf;a we;s HTML f.dkq Odjkh
lr ne,Sfuka fï ms<sn`oj ksjrÈ wjfndaOhla ,nd .ekSug yelshdj ,efnkq we;.
m%dfhda.l
s WodyrK f.dkqj ms<sn`o f;dr;=re .%ka:h wdrïNfha 06 jk msgqfõ i`oykaj
we;.
<< 06 jk msgqj fj; .uka lrkak
Scrolldelay p,kh úh hq;= fõ.h ^jeä w.hla ÿka úg fyñka l%Shd;aul fõ.&
Scrollamount p,kh úh hq;= fõ.h ^jeä w.hla ÿka úg fõ.fhka l%Shd;aul fõ.&
p,kh jk osYdj
p,kh jk ÈYdj fjkia lsÍu ioyd marquee Wiq,kh hgf;a Ndú;d l< yel Direction
Wm,laIKh Ndõ;d l< yel. fuhg right , up , down , left f,i w.hka fjkia l,
yel. tu`.ska ms<sfj,ska ol=Kg by<g my<g jug jk mßÈ p,kh ùu isÿfõ. fï
i`oyd w.hla ,nd fkdÿka úg left wjia:dfõ mj;S.
e fl;
59
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
60
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
p,kh jk fõ.h
p,kh jk fõ.h fjkia lsÍu ioyd marquee Wiq,kh hgf;a Scrollamount iy
Scrolldelay Wm,laIK Ndõ;d l< yel. Scrollamount u`.ska p,kh úh hq;= fõ.h
fjkia l< yel. Scrolldelay u`.ska p,kfha m%udoh fjkia l< yel. ta wkqj
Scrollamount w.h jeä lsÍu u`.ska p,kh jk fõ.h jeä l< yel. Scrolldelay w.h
jeä lsÍu u`.ska p,kh jk fõ.h wvq l< yel.
e fl;
61
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu marquee Wiq,kh u`.ska jpk muKla fkdj fjí msgqj ;=, mj;sk fþo mska;+r
jeks wx.o p,kh l< yel.
e fl;
62
11
HTML ,ehsia;=
mßmdá.; ,ehsia;=.
mßmdá.; fkdjk ,ehsia;=.
ks¾jpk ,hsia;=.
63
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
mßmdá.; ,ehsia;.=
fï ioyd ol Wiq,kh Ndú;d fõ. ol hkq Ordered List hkak flálr oelaùuls ta hgf;a
o;a; fhoSug li Wiq,kh Ndú;d l< hq;h= .
jHqyh
e fl;
64
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys§ ,ehsia;=j 1 2 3 jYfhka wxl fh§ ilia ùu isÿfõ. fuh wdldr lSmhlg fjkia
lsÍu l< yel. tu wdldr my; olajd we;s WodyrK lSmhlska meyeÈ,s lr we;.
fï i`oyd ol Wiq,kh hgf;a type Wm,laIKh fhdod .; hq;=h. type Wm,laIKhg úúO
w.hka fh§fï§ isÿjk fjkialu ms<sn`oj my; WodyrK ie<lSfuka wjfndaO lr .;
yel.
e fl;
65
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
66
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
67
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
Type hkakg Ndú;d fkdfldg tkï thg w.hla wdfoaY fkdl< úg tys w.h bfíu 1
wjia:dfõ mj;S.
e fl;
68
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys§ o;a; 1 isg ms<sfj<g wxl .ekafõ. fuh wmg wjYH b,lalfï isg wdrïN ùug
start Wm,laIKg wjYH w.h wdfoaY l< hq;=h.
tla whs;uhl mukla w.h fjkia lsrSu i`oyd value Wm,laIK i`oyd w.h wdfoaY l<
hq;=h.
ta wkqj fuu ,ehsia;=j 5 isg wdrïN ù we;s w;r ALU ys w.ho 20 f,i fjkia ù we;.
kuq;a fuys§ tla úfYaI;ajhla isÿfõ tkï value Wm,laIK fhdod w.h fjkia l< miq
t;eka isg mj;sk ish`Mu whs;uj, w.hkao fjkia fõ. tkï fuu ,ehsia;=fõ
w.g ;j;a whs;ula tla lf,a kï tys w.h 22 jkq we;.
e fl;
69
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ROM
ALU
CU
fuys§ ,ehsia;=j bullets fh§ ilia ùu isÿfõ. fuu bullets j, iajrEmho wdldr
lSmhlg fjkia lsÍu l< yel. tu wdldr my; olajd we;s WodyrK lSmhlska olajd
we;.
e fl;
70
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
= . type
fï i`oyd fmr mßÈu ul Wiq,kh hgf;a type Wm,laIKh fhdod .; hq;h
Wm,laIKhg úúO w.hka fh§fï§ isÿjk fjkialu ms<sn`oj my; WodyrK
ie,lSfuka wjfndaO lr .; yel.
ROM
ALU
CU
e fl;
71
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
▪ ROM
▪ ALU
▪ CU
Type hkakg Ndú;d fkdfldg tkï thg w.hla wdfoaY fkdl< úg tys w.h bfíu
disk wjia:dfõ mj;S.
e fl;
72
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ks¾jpk ,hsia;=.
fuys§ o;a; j¾.SlrKh lrñka oelaúh yel. tkï uq,k s a m%Odk o;a;hla ,nd oS bkamiq
ta hgf;a th úia;r lsÍug Wmo;a; ,nd Èh yel.
fï ioyd dl Wiq,kh Ndú;d fõ. ta hgf;a m%Odk o;a; fhoSug dt Wiq,kho Wmo;a;
fhoSug dd Wiq,kho Ndú;d l< hq;h = . fuys§ wxl fyda i,l=Kq fkdfhfoa.
fï ms<sn`oj wjfndaOhla ,nd .ekSug my; úHqyh i,lkak.
jHqyh
e fl;
73
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
74
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu j.= l%u lsysmhla ñY%j Ndú;d l< yel. my; WodyrKfha mßmdá.; ,ehsia;=fõ
m<uq whs;ufhka miqj kej;;a mßmdá.; ,ehsia;j= la fhdod we;. bka miq fojk
whs;ufhka miqj mßmdá.; fkdjk ,ehsia;=jla fhdodwe;.
WodyrK chapter_11 /All_In_One(list).html
<html>
<head>
<title> All In One (list)-Example </title>
</head>
<body>
<ol>
<li> RAM </li>
<ol type=“a”>
<li> S-RAM </li>
<li> D-RAM </li>
</ol>
<li> ROM </li>
<ul>
<li> PROM </li>
<li> EPROM </li>
<li> EEPROM </li>
</ul>
</ol>
</body>
</html>
e fl;
75
12
HTML j.=
76
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
j.=jl úHqyh
jHqyh
m<uq ;Srej fojk ;Srej
m<uq ;sria m<uq ;sria fma<sh hgf;a m<uq ;sria fma<sh hgf;a
fma<sh m<uq ;Srej fojk ;Srej
e fl;
77
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
<table>
</table>
e fl;
78
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
79
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
Name ID
Kavindu 0012456
Ravindu 0023456
j.=jl ud;Dldj
WodyrK chapter_12 /table_caption.html
<html>
<head>
<title> table caption-Example </title>
</head>
<body>
<table border = 1>
<caption> Student Data </caption>
<tr>
<td> Name </td>
<td> ID </td>
</tr>
<tr>
<td> Kavindu </td>
<td> 0012456 </td>
</tr>
</table>
</body>
</html>
e fl;
80
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys§ table Wiq,kfhka miqj caption Wiq,kh hgf;a j.=jg wjYH ud;Dldj ,nd Èh
hq;=h.
Student Data
Name ID
Kavindu 0012456
e fl;
81
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
<tr>
<td> Kavindu </td>
<td> 0012456 </td>
</tr>
<tr>
<td> Ravindu </td>
<td> 0023456 </td>
</tr>
</table>
</body>
</html>
Student Data
Name ID
Kavindu 0012456
Ravindu 0023456
e fl;
82
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
jHqyh
m<uq ;Srej fojk ;Srej
fuys m<uq fma<sfha m<uq;Srej yd fojk ;Srej tlaù we;.tkï fuys m<uq ;sria fma<sfha
fldgq 1lao fojk ;sria fma<sfha fldgq 2la o we;.m<uq fma<sfha m<uq ;Srefõ fldgqj
ol=Kq mig fldgq folla wh;a lr f.k ñY% fldgqjla idodf.k we;. fuh HTML ;=<
ks¾udK lr .ekSug colspan kï Wm,laIKh Ndú;d fõ.fuu`.ska isÿù we;af;a ;Sre
fyj;a column folla tla ùuhs tu ksid fuh colspan f,i yÿkajhs
jHqyh
e fl;
83
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
A
B C
e fl;
84
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ó<`.g wms ;j;a ñY% j.= jHQyhla ms<sn`oj wjodkh fhduq lruq.
my; j.=fõ jHqyh fydÈka wOHkh lrkak.
jHqyh
m<uq ;Srej fojk ;Srej
m<uq ;sria m<uq fma<sfha m<uq ;Srej m<uq ;sria fma<sh hgf;a
fma<sh iy fojk ;Srej
fojk fma<sfha m<uq ;Srej
tlaù we;.
fuys m<uq fma<sfha m<uq ;Srej fojk fma<sfha m<uq ;Srej iu`. tlaù we;.tkï m<uq
fma<sfha m<uq fldgqj fojk fma<sfha m<uq fldgqj iu. tlaù my<g fldgq folla ñY%
jQ ;ks fldgqjla iodf.k we;. túg tu ñY% fldgqj wh;a jkqfha m<uq fm<shg fõ.
tkï m<uq ;sria fma<sfha fldgq 2 o fojk ;sria fma<sfha fldgq 1 o we;. fuh HTML ;=<
ks¾udK lr .ekSug rowspan kï Wm,laIKh Ndú;d fõ. fuu`.ska isÿù we;af;a fma<s
fyj;a row folla tla ùuhs tu ksid fuh rowspan f,i yÿkajhs
jHqyh
e fl;
85
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
A B
C
e fl;
86
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuf;la wm Ndú;d l< ir, j.= ks¾udK lsÍfï l%ufõo ish,a, tl;= lr .ksñka
m%dfhda.l
s jYfhka jeo.;a jk ks¾udKhla isÿlrk wdldrh my; WodyrKfhka olajd
we;.
e fl;
87
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
<tr>
<td> Vikum </td>
<td> 19 </td>
<td> 04 </td>
<td> 1999 </td>
</tr>
<tr>
<td> Pathum </td>
<td> 22 </td>
<td> 12 </td>
<td> 1998 </td>
</tr>
</table>
</body>
</html>
e fl;
88
13
HTML rduq
rduq yeoskaùu
;sria rduq
isria rduq
89
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
rduq yeoskaùu
tlu fjí msgqjl fjí msgq lsysmhla o¾Ykh lr .ekSug rduq Ndú;d l< yel. fuys§
ienúkau isÿjkafka fjí msgqj fldgia lSmhlg fjka lr tu tla tla fldgig wm óg
fmr ks¾udKh l< fjí msgq we;=<;a lsÍuhs.
flfia kuq;a fuu l%ufõofha hï ÿ¾j,;djhkao mj;S tu ksid fuu l%ufõoh kj úIh
ks¾foaYfhka bj;a fldg we;
rduq fh§u i`oyd frameset Wiq,kh Ndú;d fõ. tfukau fuu Wiq,kh fhÈh hq;af;a
head fldgiska miqjh. ieneúkau frameset Wiq,kh fhdod .;a úg body fh§u wjYH
fkdfõ thg fya;=j jkafka frameset u`.ska msgqj fldgia lSmhlg fjka lr tu
fldgia ;=, óg fmr wm ks¾udKh lr .;a fjí msgq o¾Ykh ùug ie,eiaùuhs. we;a;
jYfhkau .;a úg fuys§ wm ks¾udKh lrk fjí msgqjg body fldgila ke;. body
fldgi f,i mj;skafka óg fmr ks¾udKh lr rduq ;=,g wdfoaY lr.;a fjí msgqh.
kuq;a hï fya;=jla ksid frameset ksis mßÈ l%shd fkdlr rduq o¾Ykh fkdjqkfyd;a fjí
msgqj ysiaj o¾Ykh fõ tjeks ;;ajhl§ mßYS,lg o¾Ykh úh hq;= foa wjYH kï body
fldgila ;=, fhdod ;eìh yel. túg noframes Wiq,kh hgf;a body fldgi fhÈh
hq;=h. fï ish,a, ms<sn`o ksjrÈ wjfndaOhla bÈß jHQyhka iy WodyrK ;=,ska ,efnkq
we;.
;sria rduq
fuys§ fjí msgqj ;sria w;g fldgia lsysmhlg fjka lsÍu isÿfõ. fuh fydÈka
wjfndaOlr .ekSu i`oyd my; jHQyhg wjOdkh fhduqlrkak.
jHqyh
e fl;
90
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
91
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
isria rduq
fuys§ fjí msgqj isria w;g fldgia lsysmhlg fjka lsÍu isÿfõ. fuh fydÈka
wjfndaOlr .ekSu i`oyd my; jHQyhg wjOdkh fhduqlrkak.
jHqyh
e fl;
92
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
<noframes>
<body>
Your browser does not support frames
</body>
</noframes>
</frameset>
</html>
fuys§ rduqfõ m%udKh m%;sY;hla f,i ,nd § we;. tfukau tu w.h mslai,a
u`.skao ,nd Èh yel. kuq;a túg msgqfõ m%udKh ms<sn`oj ksjrÈ wjfndaOhla ;sìh
hq;=h.
wjidk jYfhka rduq ms<sn`o i`oyka lsÍfu§ oelaúh hq;= jeo.;a lreKla we;. ta
j¾:udkfha fuu l%uh t;rï Ndú;d fkdjk njhs. fuhg fya;= f,i iEu web browser
^fjí w;ßlaiqjla& ;=,u fuu l%uh ksjrÈj ls%hd fkdlsÍu rduqfõ m%udKh iu`. fjí
msgqfõ m%udKh fkd.e,mSu ksid ksjrÈj fjí msgqfõ wka;¾.;h o¾YKh fkdùu
msgqmig hdfï fnd;a;u (back button) ksjrÈj l%h
s d;aul fkdùu jeks lreKq fmkajd Èh
yel.
e fl;
93
HTML wêiïnkaOl
14
wêiïnkaOhl jeo.;alu
wêiïnkaOhl jHQyh
wêiïnkaOhla ks¾udKh
mska;+r i`oyd iïnkaO;dj ,nd §u
target Wm,laIKh
94
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
wêiïnkaOhl jeo.;alu
tÈfkod fjí wvú Ndú;d lsÍfu§ wm fï fudfydf;a mßYS,kh lrñka isák fjí
wvúfha isg ;j;a fjí wvúhlg .uka lsÍug isÿjk wjia:d ´kE;rï oelsh yel.
fjí wvúh mßYS,k lrñka isák wmf.a myiqj i`oyd fjí wvú ks¾udKlrejka wm
fï fudfydf;a mßYS,kh lrñka isák fjí wvúfha isg wmg .uka lsÍug wjYH wfkla
fjí wvúhg myiqfjka .uka l< yels flá ud¾. ks¾udKh lr we;. fïjd
wêiïnkaOl f,i yÿkajhs. fuu iïNkaO;dj fndfyda úg jpkhlg fyda jdlH
Lkavhlg fyda mska;+rhlg fhdod ;sìh yels w;r túg tu jpkhu; fyda jdlH
Lkavhu; fyda mska;+rhu; click lsÍfuka th iïnkaO lr ;snQ fjí msgqjg .uka l<
yel.
WodyrKhla f,i .;a úg wm ks;r Ndú;d lrk Google fjí wvúh ;=, hula fiùu
(Search) l< úg m%;sM,h f,i ,efnkafka wêiïnkaOl rdYshlska hq;a fjí msgqjls.
e fl;
95
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
wêiïnkaOhl jHQyh
jHqyh
< a href = .uka l< hq;= fjí msgqfõ ud¾.h iy ku > iïnkaO;dj ,nd ÿka ia:dkhg
wêiïnkaO ks¾udKh i`oyd a Wiq,kh Ndú;d fõ. .uka l< hq;= fjí msgqfõ ud¾.h
iy ku ,nd §ug href Wm,laIKh fhdod .; yel.
wêiïnkaOhla ks¾udKh
WodyrK chapter_14 /hyperlink.html
<html>
<head>
<title> Hyperlink-Example </title>
</head>
<body>
<a href = “Others/nextpage.html”> Next page </a> <br>
<a href = “http://www.google.com”> Google </a>
</body>
</html>
by; WodyrKh l%h s d;aul lsÍug fmr Others kï folder ;=, nextpage.html kï fjí
msgqjla ks¾udKh l< hq;h= .
fuys Others kï folder tl wm ks¾udKh lrk fjí msgqj tkï hyperlink.html iu`.u
mej;sh hq;= w;r thg fya;=j iy f.dkq ud¾.h f;dard .ekSu ms<sn`oj ksjrÈ
wjfndaOhla fkdue;s kï wjidk mßÉfþoh wOHkh lsÍfuka ta ms<sn`oj
wjfndaOhla ,nd .; yel.
e fl;
96
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys Next Page u; click l< úg Others kï folder ;=, nextpage.html kï fjí msgqj
o¾Ykh fõ.
fuys Google u; click l< úg Google fjí wvúfha ksjiak msgqj (home page) o¾Ykh
fõ. ta i`oyd Tnf.a mß.Klhg wka;¾cd, iïnkaO;djla imhd ;sîu wksjd¾Hh fõ.
e fl;
97
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
98
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys mska;+rh u; click l< úg fmr fukau Google fjí wvúfha ksjiak msgqj (home
page) o¾Ykh fõ. ta i`oyd Tnf.a mß.klhg wka;¾cd, iïnkaO;djla imhd ;sîu
wksjd¾Hh fõ.
e fl;
99
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
target Wm,laIKh
fuys§ iñnkaO;djh ,ndÿka f.dkqj fyda fjí msgqj újD; jkafka wm Ndú;d lrñka
isá má;a; (tab) ;=,u fõ. tuksid wm Ndú;d lrñka isá fõímsgqj u.yeÍhhs. fuh
fndfyda úg wjOdkh fhduq fkdjk lreKla jqjo we;eï wjia:djka j, fuh mßYS,lg
wmyiq;djla we;slrkq we;.
fuhg úiÿula f,i target Wm,laIKh yÿkajdÈh yel. ta iu`. fhÈh yels w`.hka
lsysmhla my; oelafõ.
rduq iys; fjí msgqjl ish`M rduq bj;aù iïnkaO l< fjí msgqj
_top
iïmQ¾K msgqjla f,i újD; fõ
fuys _self iy _top hk w.hka fhÈh yelafla rduq fhdod we;akï muks.
e fl;
100
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys Next Page u; click l< úg fjí msgqj kj tab tllska újD; fõ.
e fl;
101
HTML f*daru(form)
15
f*druhl Ndú;h iy jeo.;alu
joka we;=<;a lsÍu
uqrmo we;=<;a lsÍu
fma<s lsysmhl jdlH we;=<;a lsÍu
f;dard.ekSï lsysmhla tljr isÿlsÍu
f;dard.ekSï lsysmhlska tlla f;dard.ekSu
o;a; weoye,Sfï ,ehsia;=
fnd;a;ï we;=<;a lsÍu
o;a; ldKav lsÍu
wu;r we;=<;a lsÍï
o;a; fjk;a ia:dkhlg f.khdu
102
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fujeks fjí f*daru j, uQ,l s wruqK jkafka mßYS,lf.ka o;a; tla/ia lr fjí
fiajdodhla ;=, ;ekam;a lsÍu fyda fjk;a fjí msgqjlg f.k hdu jeks lreKq fõ.
fujeks f*daru ks¾udKh lsÍfu§ nyq,j Ndú;djk Wiq,k f,i form iy input
yÿkajdÈh yel.
tla tla j¾.fha o;a; we;=,;a lsÍfï § fuu Wiq,kh Ndú;d l<
input hq;=h fuys§ fuu Wiq,kh hgf;a ,nd fok type Wm,laIKh u`.ska
we;=,;a l< hq;= o;a; j¾.h f;dard .; yel
tfukau fuys§ Ndú;d jk Wm,laIK folla jk name iy value ms<sn`oj ieu fldgila
wjidkfhA meyeÈ,s lr we;. kuq;a ta ms<sn`oj mQ¾K wjfndaOhla ,nd .ekSug PHP jeks
l%ufõo ms<sn`oj oekqula ;sìh hq;=h. kuq;a fuu .%ka:fhka PHP ms<sn`oj wOHkh lsÍug
nd,dfmdfrd;a;= fkdjk neúka HTML úIh tallh ;=,§ wjYH jk m%udKhg fuys§
meyeÈ,s lsÍula ,nd § we;.
flfia fj;;a Wiia fm< úYh ks¾foaYh ;=, name iy value ys lsh % dldÍ;ajh ms<sn`oj
wjfndaOhla ,nd.ekSug PHP tallh ;=,§ n,dfmdfrd;a;= jk neúka fuu tallh ;=, ta
ms<sn`oj .eUqßka meyeÈ<s lsÍug n,dfmdfrd;a;= fkdfõ.
e fl;
103
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys Username: hkak Wiq,khg wod< fkdfõ. th idudkH f,i fjí msgqfõ fh¥
jpkhla muKs. th fhdod we;af;a o;a; we;=<;a lrkakdg ;uka we;=<;a l< hq;f
a ;a
l=uk o;a;hlao hkak oek .ekSu i`oyd muKs.
e fl;
104
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
105
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys§o maxlength Wm,laIKh fhdod.e; yel. tfukau fuys§o name iy value by;
meyeÈ,s l< mßÈu ls%hd;aul fõ.
e fl;
106
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuys§o maxlength Wm,laIKh fhdod.e; yel. fuys rows u.ska Wi o cols u.ska È.o
fjkia l< yel. tfukau fuys§o name iy value by; meyeÈ,s l< mßÈu ls%hd;aul
fõ. ;j;a jeo.;a lreKla jkafka <textarea> iy </textarea> w;r fhdok wlaIr ta ;=<
i`oyka ùuhs tkï by; WodyrKfha .
e fl;
107
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
108
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu l%uh hgf;a§ name iy value ys yeisÍu ;rula ÿrg ixlS¾K jk w;r tams<sn`oj
ir, yeÈkaùula my; oelafõ.
fuys name i`oyd wmg leu;s w.hla ,nd Èh yels w;r value i`oyd ,nd Èh hq;af;a
tu Checkbox Control tl il%Sh l<úg name g ,nd ÿka úp,Hg wdfoaY úh hq;=
jákdluhs. Checkbox il%h
S l< úg tajdfha kug(name) ,nd§ we;s w.h(value) wdfoaYfõ.
tkï fuys maths=yes f,i;a ict=yes f,i;a w.hka wdfoaY lr.kS. ta ksid ieliSu fyda
fjk;a ia:dkhlg /f.khdu jeks wjia:dj,§ maths iy ict w.hka yes f,i yÿkd.kS.
Checkbox wlS%h l< úg tajdfha kug ,nd§ we;s w.h wdfoaY fkdù th fkdi,ld yßhs.
e fl;
109
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu l%uh hgf;a§ name iy value ys yeisÍu ;rula fmr mßÈ jk w;r name g
w.hla fh§fu§ ie,ls<su;a úh hq;=h.
fuys name i`oyd wmg leu;s w.hla ,nd Èh yels jqjo ish`M wjia:djkayS § we;=<;a
l< hq;af;a tlu w.hls. value i`oyd ,nd Èh hq;f a ;a tu Radio Control tl il%Sh
l<úg name g ,nd ÿka úp,Hg wdfoaY úh hq;= jákdluhs. by; WodyrKh ie,l+úg
wjia:d foflysu name i`oyd ,nd § we;af;a gender hkakhs. tfukau tla wjia:djl
value i`oyd male hkako wfkla wjia:djl value i`oyd female hkako ,nd § we;.
fuys§ wfhla male wjia:dj f;dard .;fyd;a gender=male f,i gender i`oyd w.h
wdfoaY fõ. wfhla female wjia:dj f;dard .;fyd;a gender=female f,i gender i`oyd
w.h wdfoaYfõ. ta wkqj name i`oyd tlu úp,Hhla ,nd § we;s fya;=j Tng jegfykq
we;. ieneúkau ,eî we;s f;dard .ekSï wjia:d lsysmh w;ßka tlla mukla f;dard .;
yelafla tu f;dard .ekSï wjia:d ish,af,au name i`oyd ,nd § we;af;a tlu úp,Hhla
kï muKs. ir,ju .;aúg name i`oyd tlu úp,Hhla ,nd§ we;s ish`M Radio
Control ;ks moaO;shla f,i l%shd lrhs. tu Radio Control w;ßka f;dard .; yelafla
tlla muKs. tkï Tng ;j;a f;drd.ekSula lsÍug fjk;a Radio Control moaO;shla
wjYH jkafka kï tys name i`oyd fjku úp,Hhla wdfoaY l< hq;h = .
fuu lreKq ;rula ixlS¾K jk w;r ta ms<sn`oj i`oyka l< we;af;a Tnf.a oekqu
iïmQ¾Kùu i`oyd muks. fmr i`oyka l< mßÈ Wiia fm< úYh ks¾foaYh ;=, name iy
value ys ls%hdldÍ;ajh ms<sn`oj m%dfhda.sl wjfndaOhla ,nd§ug PHP tallh ;=,§
n,dfmdfrd;a;= jk neúka fuu tallh ;=, ta ms<sn`oj .eUqßka meyeÈ<slsÍu
n,dfmdfrd;a;= fkdfõ.
e fl;
110
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
111
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m<uqfjkau wjodkh fhduql< hq;= lreK jkafka Wiia fm< úYh ks¾foaYh ;=, submit
iy reset fnd;a;ï ms<sn`oj mukla meyeÈ,s lsÍug n,dfmdfrd;a;= jk njhs
fuys submit iy reset úfYaI ld¾Hhka i`oyd ks¾udKh lrk ,o tajd fõ. tams<sn`o by;
j.=fõ úia;r lr we;. kuq;a button u.ska idudkH fnd;a;ula ,ndfok w;r ta i`oyd
úfYaI ld¾Hhla fkdmj;S. tu fnd;a;u tîfuka isÿúhhq;= ld¾Hh wm úiska ,nd Èh
hq;=h. tfukau mska;+r fnd;a;fï l%shdldÍ;ajh tfiau jqjo tys tla úfYaI;ajhla mj;S
tkï mska;+r fnd;a;u i`oyd isÿúhhq;= ld¾Hh wm úiska ,nd fkdÿka úg th submit
fnd;a;ula f,i l%shdlsÍuhs. flfia fj;;a fnd;a;ula i`oyd ld¾Hhka ,nd§u ms<sn`oj
fuu .%ka:h ;=,ska yeoEÍug n,dfmdfrd;a;= fkdjk w;r bÈß .%ka:hla ;=,ska
tams<sn`o .eUqßka meyeÈ,s lsÍug n,dfmdfrd;a;= fõ.
WodyrK chapter_15/submit_buttons.html
<html>
<head>
<title> Submit Buttons-Example </title>
</head>
<body>
<form>
<input type=“submit” name=“b1” value=“send”>
</form>
</body>
</html>
e fl;
112
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_15/submit_buttons.html
fuys value hgf;a ,ndÿka w.h fnd;a;fï igyka fõ. value hgf;a lsis`ÿ w.hla ,nd
fkdÿkak fyd;a fnd;a;fï submit f,i i`oykafõ. fuu submit fnd;a;fï l%shdldÍ;ajh
yÿkd.; yels WodyrKhla o;a; fjk;a ia:dkhlg /f.k hdu hgf;a meyeÈ,s lr
we;.
WodyrK chapter_15/reset_button.html
<html>
<head>
<title> Reset Buttons-Example </title>
</head>
<body>
<form>
Enter Your First Name :
<input type=“text”> <br> <br>
Enter Your Last Name :
<input type=“text”> <br> <br>
<input type=“reset” name=“b2” value=“clear”>
</form>
</body>
</html>
e fl;
113
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_15/reset_button.html
fuys text box ;=,g leu;s fohla we;=,;a lr bkamiq reset fnd;a;u tîfuka text
box ;=, we;=,;a l< ish`M foa uelShhs. text box mukla fkdj ´kEu j¾.fha o;a;
we;=,;a lsÍfï l%ufõohlska we;=,;a l< o;a; fuu`.ska uld oeñh yel. tu ksid reset
fnd;a;ula u`.ska tu fnd;a;u msysgd we;s f*daruh ;=, we;s ish`M olal uld oeñh
yel.
ó<`.g meyeÈ<s lrk fnd;a;ï l%ufõofha fmr i`oyka l< mßÈ wmg wjYHmßÈ
l%shdlrùug ks¾udKh l< yel úYh ks¾foaYh ;=, fï ms<sn`oj wOHkh lsÍu isÿ
fkdlrk neúka fuu .%ka:fhka fï ms<sn`o meyeÈ,s lsÍug n,dfmdfrd;a;= fkdfõ. kuq;a
bÈßfha§ t<soelaùug n,dfmdfr;a;= jk .%ka:hla ;=,ska fujeks .eUqre lreKq rdYshla
meyeÈ,s lsÍug kshñ;h.
WodyrK chapter_15/normal_button.html
<html>
<head>
<title> Normal Buttons-Example </title>
</head>
<body>
<form>
<input type=“button” name=“b3” value=“Click Me”>
</form>
</body>
</html>
e fl;
114
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_15/normal_button.html
WodyrK chapter_15/image_button.html
<html>
<head>
<title> image Buttons-Example </title>
</head>
<body>
<form>
<input type=“image” name=“b4”
src=“data/picbutton.jpg”>
</form>
</body>
</html>
e fl;
115
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_15/image_button.html
e fl;
116
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_15/grouping.html
o;a; ldKav lsÍu u`.ska tu o;a; ldKavhu tljr yeisrùug wjia:dj ie,fia
<input type=“date”>
fuu l%ufõoh u`.ska oskhka we;=,;a lsÍu i`oyd Ndú;d l<
yel.
<input type=“number”>
fuu l%ufõoh u`.ska ixLHd;aul o;a; mukla we;=,;a lsÍu i`oyd wjia:dj i,id foa.
e fl;
117
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
<input type=“url”>
fuu.ska ,efnk m%;sodkho idudkH text box tll iajrEmh .kS kuq;a fuys
l%shdldÍ;ajh text box tllg jvd úfYaI fõ. tkï fuysoS wksjd¾fhkau url ,smskhla
we;=<;al< hq;=h. fuys§ isÿjkafka wm we;=,;a lrk o;a;fha url ,smskhl ,laIK mj;S
oehs mßlaId lsÍuhs. hï wdldrhlska url ,smskhl ,laIK fkdue;s o;a;hla fhdod
submit fnd;a;u click l<fyd;a url ,smskhla we;=,;a lrk fuka mKsúvhla Èiafõ.
<input type=“range”>
e fl;
118
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu WodyrKfha input wjia:d folgu required f,i ,nd § we;. fuys§ password
fldgig w.hla ,nd fkdoS submit fnd;a;u click l< úg tu ysia;eka iys; fldgi
iïmQ¾K lrk fuka mKsúvhla Èia ùu isÿfõ.
kuq;a fmr i`oyka l< mßÈ by;§ W.;a lreKq iïNkaofhka ir, WodyrKhla
ms<sn`oj ó,`.g meyeÈ,s lr we;.
e fl;
119
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
by; WodyrK j,§ name iy value Wm,laIK ms<sn`oj ;rul flá meyeÈ,s
lsÍula ,nd fok ,È. tys§ o;a; fjk;a ia:dkhlg f.k hdfïoS name = value
f,i .uka lrk nj meyeos,s lrk ,È. th my; WodyrKh u.ska ;j ÿrg;a meyeÈ,s
lr we;.
WodyrK chapter_15 /sending_data.html
<html>
<head>
<title> sending data-Example </title>
</head>
<body>
<form>
Usename :
<input type=“text” name=“uname”> <br>
password :
<input type=“password” name=“pw”> <br>
<input type=“submit” name=“b1” value=“send”>
</form>
</body>
</html>
by; WodyrKfhka fuu m%;sM,h ,efnk w;r fuys§ wmg leu;s mßos o;a; we;=,;a
l< yel.
fuys § ó<`. mshjr jYfhka Username i`oyd Ayesh f,i;a Password i`oyd 1234
f,i;a ,nd§ we;.
e fl;
120
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
bka miq submit fnd;a;u tîu isÿl< hq;=h. túg lsisÿ fjkia lula is`ÿfkdjqfka hehs
fmkqko ó,`.g Tn wjodkh fhduql, hq;=f;a fjí msgqfõ URL fldgi fj;hs.
ieneúkau Tn fuys wjodkh fhduq l< hq;af;a URL ,smskfha wjidk fldgighs.
fuys ? ,l=Kska miqj we;s fldgi fj; wjodkh fhduq lrkak. tys uname=Ayesh f,i;a
pw=1234 f,i;a i`oyka ù we;. ta wkqj name i`oyd wm we;=,;a l< w.hg value
i`oyd wm we;=,;a l< w.h iudk ù we;. ta wkqj wm óg fmr wOHkh l< lreKq
fuu WodyrKh u`.ska m%dfhda.l s j meyeÈ,sù we;.tfukau URL f;aÍug ,la fkdlr ta
u;g Bysi f.k hdu u`.ska fuu fldgi o¾YKh fõ.
f*daru ms<sn`oj mq`M,aj wOHkh l< hq;= action , method jeks lreKq HTML oekqu
mukla Ndú;fhka wjfndaOlr .; fkdyel. tuksid tjeks lreKq fmr i`oyka l<
mßÈ bÈßfha§ ksl=;a jk PHP .%ka:hlska meyeÈ,s lsÍug n,dfmdfrd;a;= fjñ.
e fl;
121
fjí msgqj fldgia lsÍu
16
yd tajdg iïnkaO;d
we;s lsÍu
122
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
WodyrK chapter_16/Page_Section.html
<html>
<head>
<title> Page Section-Example </title>
</head>
<body>
<a name=“part1”>
<font color=“red”>
<h1> First part of the document </h1>
</font>
</a>
<a name=“part2”>
<font color=“blue”>
<h1> Second part of the document </h1>
</font>
</a>
</body>
</html>
e fl;
123
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_16/Page_Section.html
<a name=part1> fldgiska tu m%foaYh part1 f,i kï lr we;s w;r tu m%foaYh </a>
hk fldgiska wjika fõ. ta wkqj part1 m%foaYh ;=< <h1> m%udKfha first part of the
document fldgi mj;S.
tfukau <a name=part2> fldgiska tu m%foaYh part2 f,i kï lr we;s w;r tu
m%foaYh </a> hk fldgiska wjika fõ. ta wkqj part2 m%foaYh ;=< <h1> m%udKfha
second part of the document fldgi mj;S.
e fl;
124
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
WodyrK chapter_16/Linking_to_a_Page_Section.html
<html>
<head>
<title> Linking to a Page Section-Example </title>
</head>
<body>
<a href=“#part1”> First part </a>
<a href=“#part2”> second part </a>
<a name=“part1”>
<font color=“red”>
<h1> First part of the document </h1>
</font>
</a>
<a name=“part2”>
<font color=“blue”>
<h1> Second part of the document </h1>
</font>
</a>
</body>
</html>
e fl;
125
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
m%;sM,h chapter_16/Linking_to_a_Page_Section.html
fuu WodyrKh ksjrÈj l%shd;aul ùu i`oyd m%udKfhka úYd, fjí wvúhlg fuu
l%uh fhdod w;ayod ne,sh hq;h= .
fuu WodyrKh wkqj First part u; click l< úg part1 f,i kï l< fldgig .uka
lsÍu;a Second part u; click l< úg part1 f,i kï l< fldgig .uka lsÍu;a isÿfõ.
tu .uka lsÍu ksjrÈj o¾YKh ùug fjí msgqj m%udKfhka úYd, tlla úh hq;=h.
e fl;
126
w;sf¾l lshùï
17
Wvq fldud fh§fï wjYH;dj
j¾K Ndú;d lsÍfï l%u
f.dkq ud¾.h iy f.dkq È.=j
fjí msgqj save lsÍu iy ixj¾Ok lsÍfu§ we;sjk .eg`M
ksrdlrKh
fjí msgqj újD; ùug fjí w;ßlaiqjla (web browser)
f;dard .ekSu
127
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ó<`.g <font color=“sky blue”> hkak i,lkak tho idudkH mßos l%h s d;aul jk
w;r túg wl=re ,dks,a meyehlska olakg ,efí. bka miq fmr mßÈu tkï Wvq fldud
fkdue;sj ks¾udKh lrkak.
<font color=sky blue> túg wm n,d fmdfrd;a;= jk m%;sM,h fkd,eî lsisÿ
j¾Khla fkdfhÿjd fuka l`M j¾Kfhka Èiafõ.
tfukau fuys§ Wvq fldud ( ‘ ‘ )fyda oaú;aj Wvq fldud ( “ “ ) hk leu;s wdldrhla Ndú;d
l< yel.
HTML ;=< úúO wjia:d j,§ j¾K Ndú;d fõ. fuu j¾K wdldr follg Ndú;d l<
yel.
j¾Kfha ku Ndú;d lsÍu
fuys§ j¾KhkayS wm okakd ku Rcqju Ndú;d l< yel. tkï red , green , blue ,
yellow , pink f,i ku fhÈh yel.
<font color=pink>
e fl;
128
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ku RR GG BB
iqÿ= 00 00 00
l¿ ff ff ff
r;= ff 00 00
fld< 00 ff 00
ks,a 00 00 ff
ly ff ff 00
wyia ks,a 66 66 ff
tfukau 0 iy f w;r we;s ´kEu ixLHdjla Ndú;fhka b;d ks¾udKd;aulj j¾K
ixl,kh l< yel.
e fl;
129
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
jHqyh
_____________________ . _______
HTML ;=< f.dkqjla wdfoaY lr .ekSfï § f.dkq j¾.h yÿkd .ekSug w;HdjYH fõ.
ta i`oyd f.dkq È.=j b;du;a ksjrÈj fhÈh hq;=h.
f.dkq È.=j by; jHqyfha i`oyka l< mßÈ f.dkq kduh wjidkfha. i<l=Klska miqj
oel .; yel. tfia oel.; fkdyels kï f.dkqÈ.=j fkdokafka kï wod< f.dkqj u;
right click lr properties fj; f.dia file type u.ska f.dkqÈ.=j oek.; yel.
f.dkq È.=j fkdfh¥ fyda jerÈ f,i fh¥ lsisÿ wdfoaYhla lsif
s ia;a id¾:l fkdfõ.
my; j.=fjka oelafjkafka újO f.dkq j¾. lsysmhla iy tajdfha mej;sh yels f.dkq
È.= lsysmhls.
e fl;
130
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
wdfoaY lrk f.dkq HTML f.dkqj;a iu`.u tlu folder ;=< mj;S kï f.dkq ud¾.h
i`oyka l< hq;= fkdfõ. f.dkq kduh fhoSu m%udKj;a fõ.
WodyrKhla f,i my; wjia:dfõ§ wm ks¾udKh lrñka mj;skafka index kï fjí
msgqjhehs i,lkak. tys§ wm ks¾udKh lrñka mj;sk fjí msgqj iu`.u wmg wjYH
mska;+rh mj;S tkï wmg th index kï fjí msgqj ;=,g ,nd wdfoaY lr .ekSug f.dkq
kduh mukla m%udKj;afõ.
e fl;
131
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
e fl;
132
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fjí msgqj m<uq j;djg save lrk wdldrh Tn fïjkúg wOHkh lr we;ehs úYajdi
lrñ fjí msgqj iq`M fjkialï isÿlsÍu ksid kej; kej; save lrkúgo tu mshjru
wkq.ukh lrñka save l< yel. fuys§ isÿjkafka wm wdrïNfhau kula ,nd §
ks¾udKh l< fjí msgqju w`M;a ùuls fuys§ fjí msgqj save lsÍug file >> save fj;
.uka lsÍu l< hq;= nj ñka fmr meyeÈ,s lr we;. tfukau fï i`oyd fhdod .; yels
flá l%uhlao mj;S. tkï ctrl h;=r iu`. S h;=r tljr ,nd §uhs. ( ctrl + s )
m<uqjr fjí msgqj ks¾udKhlr bka miqj tu fjí msgqj fjí w;ßlaiq uDÿldx.fhka
újD; l< miq wm fjí msgqj by; i`oyka l< mßÈ kej; kej; save l<o Bg iß,k
mßÈ fjí msgqj fjkia fkdfõ. tfia fjkia ùug kï save lrk iEu jdrhlau mdid
fjí w;ßlaiq uDÿldx.fhka th kej; kej; újD; l< hq;=h. fuh wmyiq lghq;a;ls
fï i`oyd iEu fjí w;ßlaiq uDÿldx.hlu refresh kï wx.hla msysgd we;.
e fl;
133
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
ir,ju .;a úg fjí msgqfõ m%Nj fla;fha l=vd fyda fjkia lula l< miq tys m%;sodkh
= .
n,d .ekSu i`oyd th save lr bka miq fjí msgqj refresh l< hq;h
wm fïjkúg ks¾udKh lrñka mj;sk fjí msgqj kej; fjk;a kulska save l< hq;=
kï túg file >> Save As u`.ska save l< hq;=h. túg kej; kula ,ndÈh hq;=jk w;r
= .
tys§o .%ka:fha uq,skau i`oyka l< Wmfoia ms<smeÈh hq;h
.%ka:fha iEu WodyrKhlu mdfya Wiq,k l%udkql+,j fm< .eiSug tab h;=r Ndú;d lr
we;.
<head>
<title> First web page </title>
</head>
<head>
<title> First web page </title>
</head>
by;§ tlu Wiq,khka wdldr ;=klg fm<.ekaùula isÿlr we;. ieneúkau fuu
wdldr ;=fkkau ,efnk m%;sodkh tl iudkh kuq;a fuu wdldr ;=fkka jvd fhda.H
jkafka ;=kajk wdldrhhs. tu wdldrfha§ b;d l%udkql+,j Wiq,k fm<.ekaùu isÿlr
we;s w;r tu`.ska fjí wvú ks¾udKlreg úYd, myiqjla ie,fia. tu ksid l=vd fjí
msgq ks¾udKh lrk wjÈfha isgu Tn fuf,i l%udkql+,j Wiq,k fm<.ekaùug yqreúh
hq;=h.
fuu ;=kajk wjia:dfõ§ fojk fma<sfha uq,skau tab h;=r ,nd§ Wiq,khka l%udkql+,j
fm<.kajd we;.
e fl;
134
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
bka miqj Open with u; click lrkak ta;=,ska Tn leu;s fjí w;ßlaiqj (web browser)
f;darkak.
túg Tn ksjrÈj fjí msgqj save lr we;akï id¾:lj fjí w;ßlaiqj ;=, fjí msgqj
m%;sodkh jkq we;.
e fl;
135
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
kuq;a fuu ls%hdj,sh fjí msgqj újD; lrk ish`M wjia:djka ys§ isÿlsÍug Tng isÿfõ.
fuh ;rula wmyiq ls%hdjls tA ksid ó,`.g my,skau we;s Choose another app hkak
f;darkak.
tu.ska Tng leu;s fjí w;ßlaiq uDÿldx.h f;darkak. bka miq iEu wjia:djl§u tu
uDÿldx.fhka fjí msgq újD; ùug my,ska we;s fldgqj ;=, yß ,l=K fhdod OK
fnd;a;u Tnkak.
oeka idudkH mßos fjí w;ßlaiq uDÿldx.fhka fjí msgqj újD; jkq we;.
e fl;
136
fjí wvú ks¾udKh i|yd HTML M . wfhaIa pdkql
fuu .%ka:h lshjQ mdGl Tng udf.a yomsß ia;=;sh msßkuk w;r ;j;a
fujeksu .%ka:hlska kej; yuqjk n,dfmdfrd;a;=fjka iuq.ksñ.
Tng ch!
e fl;
137
e fl;
https://www.e-ketha.home.blog
https://www.facebook.com/eketha
138