This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA
tags Browser rS
[laom tag udk jrifvQif ¤if;udk line space csay;ygvdrhfrnf/
tags twGJvdkuf (odkYr[kwf paragraph container
.......
onf Mum;cH text r&SdvQif vkdonfxufydkonf[k t"dyÜm,foufa&mufaomaMumifh tag wpfckwnf;taejzifhom display vkyfrnf jzpf\/ Browser trsm;pkonf mutliple line break taejzifh multiple ), breaks ( - - - - - - tag jzifhvnf; oD;jcm;pmykd'frsm;udk cGJxm;ívnf;&ygonf/ Browser onf Container tags uJhokdYyif jyefqkdrI jyK,lonf/ rnfokdYyifjzpfap container tag udk tokH;csjcif; onf enf;vrf;usaeí ydkrdkESpfoufzG,f&m jzpfygonf/ tu,fí rdrdtaejzifh style sheet rsm;jzifh formatting rsm; xnfh,lvkdaomtcgwGif container rSm omí vkdtyfvmwwfonf/ xkdYaMumifh tpaumif;aumif;jzifh avhusifh&rnfom jzpf\/ - - - wpfckwnf;udkvnf; rsm;aomtm;jzifh browser rsm; recognize jyKvkyfay;rnfjzpfaomfvnf; Java Script ESifh style sheets rsm;uJhokdYaom enf;ynmopf awmfawmfrsm;rsm;u opening tags ESifh closing tags ESpfckvHk;udkokH;&ef vkdvm; wwfMuonf/ rdrdtaejzifh HTML ukd yxrqHk; tawGUtMuHKtjzpf avhvmjcif;jzpfygu oifhavsmfaom enf;vrf;udkom aumif;pGm avhvm&ygvdrfhrnf/ Browser rsm;onf tag udkjzpfap? recognize vkyfvdrfhrnf r[kwfay/ okdYygí element rsm; tMum; extra space xnfhoGif;jyKvkyf&ef empty paragraph rsm;udk rokH;Edkifay/ Word processing wpfcktwGif;&Sd tokH;jyKaom enf;vrf;jzifhom okH;Ekdifonf/ tag wdkif;wGif ALIGN attribute xm;ay;&ef vdktyfrnf/ Tapenade (Olive Spread) This is a really simple dish to prepare and it's always a huge hit at parties. Tapenade (Olive Spread) This is a really simple dish to prepare and it's always a huge hit at parties. SIZE=+2 FACE="verdana, sans-serif" COLOR="#663399">Tapenade (Olive Spread) This is a really simple dish to prepare and it's always a huge hit at parties. SIZE=+2 FACE="verdana, sans-serif" COLOR="#663399">Tapenade (Olive Spread) This is a really simple dish to prepare and it's always a huge hit at parties.
tag rsm;jzifhom display vkyfvdrhfrnf/ Unrecognized tags Browser wpfckonf ¤if;em;rvnfonfh tag rsm;ESifh rrSefruef jyqkdxm;aom tag rsm; twGuf ½kd;om;pGm todtrSwfrjyKwwfay/ Tag ESifh browser wkdYtay: rlwnfí &v'f tajymif;tvJ &SdEdkifonf/ rnfonfh t&mudkrQ browser rS display rvkyfonfh tajctaersKd;vnf; &SdEdkifonf/ Tag \ content rsm;udkom display vkyfonfhtcgrsKd;vnf; &SdEdkifonf/ Text in comments Special element udk comment wpfcktwGuf jynTef;&ef tokH;jyKxm;onfh text rsm;udk Browser u display vkyfvdrfhrnf r[kwfay/ Simple comment rSm initial \aemufwGif space wpfck&Sd&rnf/ okdYaomf comment twGif;wGif bmrQ xnfhray;oavmufvnf; &SdEdkifrnf/
88
WEB DESIGN
vufawG o Y ifcef;pmrsm;
A Brief History of HTML HTML ray:xGef;rD SGML (Standard Generalized Markup Language ) udk tokH;jyKMuonf/ SGML tag rsm;onf wifjycJhNyD;aom HTML tag rsm;twkdif; tvkyfvkyfygonf/ okdY&mwGif document element \ toGiftjyif azmfjycsufukd ykdí qef;opfpGm pGrf;aqmifEkdifonf/ Publisher rsm;onf ¤if;wkdY\document rsm;udk SGML version taejzifh pwif odrf;qnf;xm;Muonf/ ¤if;rSwpfqifh tokH;csrI trsKd;rsKd;udk translate vkyf,lavh &SdMuonf/ Oyrmtm;jzifh heading wpfcktjzpf text ukd tag vkyfxm;jcif;onf wpfrsKd;wnf; oHk;Ekdifaom format om jzpfapvdrfh rnf/ Singel source file wpfckonf end product trsKd;rsKd; &EdkifrSomvQif ykdí
tusKd;&SdEdkifygonf/ HTML onf SGML tagging system wpfckrS aygufzGm;vmaom application wpfckom jzpfonf/ tajccH wnfaqmufrIrSwpfqifh HTML udprö sm;twGuf yifudkowdå usef&Sdapum cGJjcm; aqmif&GufrIjyKjcif; jzpf\/ þokdYjzifh ESpftawmfMum jzwfoef; tokH;jyKcJh&ojzifh tag uJhokdYaom 'DZkdifemrsm;u xdef;csKyf ay;&onfh udprö sm;wGif HTML tag zefwD;rIudk tcuftcJ &SdcJh&onf/ Seprarate document wpfck twGif; all style instruction (okdYr[kwf source document \ separate section ) rsKd;jzifh odrf;qnf;xm;aom content twGuf style information udk yHkpH oGif;xm;ay;Ekdif&ef pdwfcs&onf/ System topf wpfckrSm Cascading style sheet [k ac:onf/ ¤if;wGiftqifhjrifh acwfrD enf;pepfrsm; yg0ifxm;ojzifh ,ckoifcef;pmrsm;wGif tao;pdwf azmfjyEdkifrnf r[kwfay/ Document wpfcktwGif; heading wpfckonf type of the information ukd nTefjyEkdif&ef standard wpfckjzifhom label jyKvkyfygvdrfhrnf/ tjcm;ae&mwGif style wpfcktwGif; 'DZkdifemonf H1 rsm;ukd 36 point okH;í page ay:wGif blue Helvetica ykHpHjzifh A[kdjyK ykHpHcs,l&rnf[k tao;pdwfowfrSwf,lMu\/ þokdY aqmif&Gufjcif;jzifh HTML \ rSefrSefuefuefuyf&ef urÜnf;uyf pm&Gufuav;rsm;ESifh 'DZdkifemrsm;ukd tjyeftvSef tusdK;jyKay;ygonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
89
tqifh (2) Formatting Text Text formatting tag tcsKdUudk jrefjrefxnhfMunfhMupkdY/ Text rsm;ukd ykHazmf&ef jzpfonf/ xkdae&mwGif specific tag rsm;ESifh ywfoufí pkd;&drf&ef rvdktyfay/ Tagging vkyfief;ESifh tuRrf;w0ifjzpfap&efom avhusifhapjcif; jzpfygonf/ Figure 6- 8 Heading (,
), paragraph (
) ESihf italic text () wdYk zefw;D &ef HTML file udk text-formatting tag rsm; xnhaf y;xm;onf/
Browser wGif jyoEdik &f eftwGuf ajymif;vJcsurf sm;udk vkyaf p&eftvdiYk mS rdr\ d document udk save vky&f ef ta&;Bu;D onfukd owdjyKyg/
wGif my page udk toifzh Gix hf m;jcif;aMumifh topfay:vmrnfh my page tm; Munf½h &I ef ]]Refresh}} odkYr[kwf Reload udk ESyd v f u kd ½f o kH m&So d nf/ Browser
90
WEB DESIGN
vufawG o Y ifcef;pmrsm;
- - -
,ck page \ headline 0ef;usifwGif start ESifh end first-level heading tags wkdYudk ae&mcs xm;vkdufonf/ tBuD;qHk; bold text jzifh tag rsm;tMum;rS text rsm;udk browser rS jyefqkdrI jyKonf/ rdwfquftnTef;\ aemufwGif 'kwd, level heading (
) jzifh zefwD; xm;vku d o f nf/ þae&mwGif
text xuf tenf;i,fao;i,fpmG xm;&So d nfukd owdjyKryd g vdrfhrnf/ xkd tag rsm;aMumifhvnf; line breaks ESifh extra space rsm;udk tay:ESifhatmuf heading ESpfcktMum; xnfh,laponfh taetxm; jzpfvmaMumif; owdjyKyg/
- - -
udk italic formatting tags jzifh zGifhí tag jzifh ydwf,ljcif;onf ¤if;pmvHk;rsm;ukd pmvHk;apmif;jzifh azmfjyay;&ef jzpfonf/
Bon Appetit
Extra space ryg0ifapbJ line break jzpfay:ap&ef cGJjcm;vdkaom points ae&mrsm;wGif
break tags rsm;udk xnf, h x l m;onf/ Standalone tag wpfc\ k erlemwpfcyk if jzpfonf/ Range of text tjzpf tvkyfvkyfjcif; r[kwfbJ break vkyfay;&efom xnfhxm;jcif; jzpf\/
xkdokdY tajctaetxd tqkdygzkdiftm; save vkyfí browser window wGif NyD;pD;orQ tajctaeudk ppfaq;,lonf/ ,cktcgrsKd;wGif ]]Reload }} okdYr[kwf ]]Refersh }} [laom cvkwfrsm; ESdyfvkduf½Hkjzifh NyD;cJhaom jrifuGif;ukd jyefa&mufEkdifaom taetxm;&SdoGm;NyD jzpf\/ þae&mwGif owdxm;&rnfrSm save vkyf,lNyD;rSom tqkdyg reload cvkwfrsKd;udk okH;&ef jzpfonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
91
tqifh (3) Adding Graphical Elements ,cktcsed rf pS í container tag rsm; cdrk yDS g&Srd I &Sad eygonf/ rdr\ d page tm; pGr;f tm; ydrk akd umif;rI ay;aprnfh graphical element tcsKdUudk xnfh,lMu&awmhrnf/ þae&mwGifvnf; specific tag rsm;ESifh ywfoufí tpdk;&drfvGefuJp&mtaMumif; r&Sdao;ay/ tcef; 8 a&mufrSomvQif aocsmpGm tav;xm;aqmif&Guf&efrsm; qufvuf jyoay;ygrnf/ Page \ tay:ykdif;okdY Title graphic wpfck xnfh,lygrnf/ tqkdyg element rsm;u standalone tag rsm;ESifh attribute vkyfief;wkdY rnfokdY&Sdonfudk MunfhEkdif&ef tcGifhta&;aumif; wpfckudk ay;ygvdrfhrnf/ Figure 6- 9
Image udk
xnfhyg/
Horizontal rule (line) wpfcu k kd xnf, h yl g/ t&Snu f kd
ajymif;&ef attribute udk xnho f ;kH xm;Ny;D rule \ txludkvnf; xnfh,l&rnf/
ajymif;vJcsufrsm; jrifawG&U ef "Reflesh"udk ESyd yf g/ tm;vHk; tvkyfvkyfNyD;om; awGU&ygvdrhfrnf/
92
WEB DESIGN
Save om vkyv f u kd yf g/
vufawG o Y ifcef;pmrsm;
oyf&yfaom graphic heading rsm;ESifh text heading ukd tpm;xkd; xm;&Sdonf/ rdrdtae jzifh graphic ay:xGuaf pvdak omae&mwGif tag udk xm;ay;jcif;tm;jzifh graphic onf page okdY yl;aygif;yg0ifNyD; jzpfEkdifygonf/ Image tag onf standalone tag wpfck\ erlemaumif;wpfckjzpfonf/ ¤if;wGif closing okdYr[kwf end tag ryg0ifay/ xkdae&mwGif ae&m,l&efom jzpf\/ Horizontal rule (line) wpfckudkvnf;
standalone tag udk tokH;jyKí xnhfoGif; xm;onf/ Action okdYr[kwf behavior udk modify vkyf&ef tag wpfckudk xnhfxm;aom information \ tpteonf attribute wpfckjzpfonf/ Attribute rsm;onf equal sign wpfckjzifh ¤if;wkdY\ value setting rS oD;jcm; cGJxGufvsuf &Sdonf/ tag \ SRC= tydkif;onf vdktyfaom attribute wpfck\ erlemjzpfonf/ ¤if;rygvQifbrowser onf graphic ukd zrf;xdef;xm;&ef rodjzpfaeygvdrhfrnf/
tag wGif attribute rsm;onf optional om jzpfygonf/ Attribute rsm; ryg vQif default horizontal rule onf browser window \ tus,fESifhtxludk one pixel om jzpfaeapygvdrfhrnf/ Figure 6- 10
Page twGuf NyD;ajrmufNyD;orQ tajctaeukd ppfaq;Edkif&ef save vkyfxm;NyD;aemuf reload jyefvkyfxm;jcif; jzpfonf/ tqifh (4) Adding a Hypertext Link Web page wpfckwGif links rygvQif rnfokdY&SdEkdifrnfenf;/ ajzp&m taMumif;tcsuf r&Sd oavmufyif jzpf\/ xnhfukdxnfh&rnf jzpf\/ tqkdygudpu ö dkvnf; ,cktqifhwGif tav; teuf rpOf;pm;apvkdao;yg/ ¤if;udk tcef; 9 wGif tao;pdwf azmfjyay;ygrnf/ rnfokdY aqmif&Guf,l&onfqkdonfudkom jyoay;vkdjcif; jzpfygonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
93
Recipe name wdkYudk oufqkdif&m recip page rsm;jzifh link vkyfxm;apvdkonf/ erlemwpfckudk avhvmMunfhMuygpkdY/ 1/ Anchor ( - - - ) [k ac:qkdxm;onfh container tag wpfckjzifh aygif;xm;í link rsm;&Sdaeygonf/ rdrd link vkyfvkdaom text teD;wGif anchor tag rsm;udk container tag rsm;uJhokdY xm;&Sday;xm;onf/ okdYaomf rnfonfh page ukd link vkyfvkdygonfqkdonfh tae txm;awmh rSefuef&ef vkdtyfygonf/ þae&mwGif HREF= jzifh attribute rS 0ifvmygonf/ URL ukd attribute &nfnTef; page \ URL udk attribute rS browser ukd ay;&ef vdktyf\/ Naming Conventions
File rsm;tm;
trnfay;&mwGif atmufazmfjyyg enf;Oya'ESifh xHk;xrf;pOfvmudk vdkufem&ayrnf/ Ä zkdifrsm;twGuf rSefuefaom aemufquf (suffixe) rsm;ukd tokH;jyKyg/ HTML File rsm;\ tqHk;wGif .html okdYr[kwf .htm [laom aemufquf&Sd&rnf/ Web graphic wkdif;wGif ¤if;wkdY\ file format ukd cable jyKvkyf&mwGif .gif okdYr[kwf .jpg (.jpeg [lívnf; &\) ukd tokH;jyK&rnf/ Ä Filename rsm;twGif; rnfokdUaomtcgrQ character space udk tokH;rjyKapvdkyg/ pmwpfvHk;csif; odomapvkdygu lynch_bio.html uJhokdYaom underline character wpfckjzifhom okH;avhokH;x&SdMuonf/ Ä ?,%,#,/,:,:,.,tp&Sdonfh special character rsm;ukd a&SmifvTJokH;&rnf/ Filename rsm;wGif twwfEkdifqHk; letter, number, underscore, hyphen ESifh period rsm;ukd uefYowf&ef jzpfonf/ Ä HTML wGif filenames rsm;onf case-sensitive jzpf\/ Filename twGif; lowercase letter rsm; tm;vHk;udk wnDwnf; tokH;jyKyg/ rvkdvm;tyfvQif tvG,fwul pDpOf&,lrIudk OD;pm;ay;vdkonfhoabm jzpfonf/ Ä Filename rsm;udk wkdwd&Sif; jzpfaeap&rnf/ tu,fí rjzpfraeudk &Snf&SnfESifh mutiword pepfudkom okH;&rnfhudpö jzpfvmygu ALongDocumentTitle.htm uJhokdYaom file name jzpfvQif capital letter jzifh ykdif;jcm; okH;yg? okdYr[kwf underscore tjzpf a_long_ document_ title.htm [k jyqkdEdkifygonf/ Filename rsm;wGif twwfEkdifqHk; letter, number, underscore, hyphen ESifh period rsm;ukd uefYowf&ef jzpfonf/
94
WEB DESIGN
vufawG o Y ifcef;pmrsm;
þae&mwGif URL onf relative URL wpfckjzpfonf/ (URL wpfckonf wlnDaom server wpfckay:wGif document wpfck nTefjyay;onf/) tapenade recipe page qDokdY link wpfckzefwD;Ekdif&ef jzpfygonf/ (tapenade.html) Figure 6- 11
rsm;onf anchor tag udk xnfx h m;ay;onf/ þae&mwGif rdrw d t Ykd aejzifh linked document twGuf URL udk yHyh ;kd ay;xm;onfh HREF attribute yg0ifxm;&rnfjzpfonf/ Link
Save vkyí f refresh vky, f yl g/
½d;k &Si;f aom web wpfcak wmh &&Sdxm;NyD;jzpfonf/ ¤if;wGif link wpfcEk iS hf *&yfzpfwpfck yg&o dS nf/ odyfvSyaom toGiftjyifawmh r[kwaf y/ odaYk omf jynfph akH om web page wpfcjk zpfonf/ page
2/ File udk save vkyfNyD; reload vkyfvdkufaomtcg anchor text onf tjyma&mifjzifh ay:vmum underline qJGvsufjzifh click vkyf,lEkdifaom text tjzpf browser wGif &SdaeNyD jzpfonf/ Page vkyfief;pOfrsm; NyD;oGm;NyDjzpf\/ þtajctaejzifh server qDodkY upload vkyf,l Ekdifonf/ vkyfyHkvkyfenf;udk tcef; 3 wGif tqifhvkduf azmfjyay;NyD; jzpfonf/ þodkYNyD;pD;oGm;cJhaom page onf pdwf0ifpm;p&m toGiftjyifrsKd;awmh &SdcsifrS &SdygvdrhfOD; rnf/ aemif qufvufazmfjyay;rnfh vkyfcsufrsm; ygvmvQif tvGefudk pdwf0ifpm;zG,f&mrsm; zefwD;,lEdkifrnf jzpf\/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
95
When Good Pages Go Bad
NyD;cJhaom o½kyfjycsufrsm;onf tqifajyacsmarGYpGm &Sdvdrfhrnf[k arQmfvifh&ygonf/ okdY&mwGif HTML code ½kdufESdyfpOf tao;trTm; tcsuftvuftcsKdU rSm;,Gif;p&mtaMumif; &SdvmEkdif ygonf/ xkdokdYaom tao;trTm;tcsufav; wpfcsuf csKdU,Gif;rI&SdvQifyif page wpfckvHk; ysufpD;oGm;Ekdifygonf/ tu,fí rdrdtaejzifh slash (/) udk closing header tag wGif ½kdufxnfh&ef arhoGm;ygu ykHwGifjrifawGY&ouJhokdY big bold heading text ykHpHBuD; aysmufoGm;awmhonf/ taMumif;rSm slash (/) rygvmaomaMumifh browser onf heading ESifh ywfoufonfh formatting vkyfief;pOfudk browser tm; rajymjzpfonfhoabm jzpfoGm;awmhonf/ About Attributes
HTML \ real power ESifh flexibility wkdYonf *kPfowåd attribute rsm;twGif; wnf&Sdaeygonf/ Appearance okdYr[kwf behavior wkdYtm; modify vkyf&ef tag wpfckü small instruction rsm; xnhfay;onfh tajctaersKd;udk qkdvkdonf/ Attribute ukd tokH;csjcif; ykHaoenf;rSm atmufygtwkdif; jzpfonf/
tcsuftcsKdUwkdYudk avhvmEkdifao;onf/ Ä Attribute onf opening container tag twGif;okdYom oGm;onf/ Opening tag onf attribute jzifh xnfhoGif;xm;cJhvQifyif closing tag onf tag name taerQom yg0ifonf/ Ä tm;vHk;awmh r[kwfay/ okdYaomf trsm;pk attribute onf value &Sdonf/ ¤if;onf attribute's name aemufwGif equal sign (=) jzifh uyfygvmonf/ Value onf *Pef;ta&twGuf wpfck? pmvHk;wpfvHk;? text wpfwGJ? URL wpfck odkYr[kwf twdkif;txGmwpfck jzpf&rnf/ Ä Single tag wpfcktwGif;ü attribute tajrmuftjrm; xnfh,lEdkifonf/ Ä Value ywfvnfwGif quotation mark xnfh,lrIonf aumif;aomtavhtusifh jzpfaponf/ okdYyifjzpfjim;aomfvnf; value onf single word okdYr[kwf single number jzpfaevQif ¤if;wkdYu omit vkyfay;ygvdrfhrnf/ Ä tcsKdU attribute rsm;onf vdkukd vkdtyfonf/ Oyrmtm;jzifh tag twGif;ü SRC attribute vkyfxm;&onf/
96
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 6- 12
jzpfysuyf t kH ajctae erlemjzpfonf/ Closing f yS cf v Jh Qif container tap rS slash csev browser onf heading formatting ]off} odYk ajymif;&ef rodawmhay/ xdaYk emuf page wpfcv k ;kH onf tBu;D Edik q f ;kH yHpk t H wGi;f csed x f m;onf/
rdr\ d page udk þyHpk t H wdik ;f jzpf&vQif slash useaf ejcif; &Srd &Su d kd ppfaq;&rnf/ odrYk [kwf heading wpfct k wGi;f end tag usecf íJh vnf; jzpfEikd o f nf/
tu,fírsm; slash (/) awmh ygygonf/ yxrqHk; tag wGif bracket wpfck ½kduf xnfh&ef arhoGm;cJhonf qkdygpkdY/ Foreign - looking tag udk todtrSwf rjyKawmhay/ odYk ygí yxrqH;k HTML page rsm;udk tao;trTm;av; rSm;,Gi;f vQif rnfoYdk jzpfEidk o f nf udk erlemjyqkd&jcif; jzpfygonf/ Figure 6- 13
þerlemyHkpHwGif uGif;puGif;ydwfwpfck trSww f rJh csex f m;cJo h nf/ Browser wGif ]]From Jen's Cookbook}} aysmufaeonf/ xdkuGif;puGif;ydwfr&SdonfhtwGuf wpfcgrQ rjrifz;l ao;aom elaborate tag tcsKdU taejzifh azmjfyygtu©&mpmvHk;rsm;udk zwf½Iae&onf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
97
Head Line rsm;
vGwfaeonf/
Browser twGi;f ü rdrd page udk Munf½h o I nft h cg text rsm; aysmufuG,af eaMumif; awG&U vQif uGi;f puGi;f ydwf aysmufaeonfavm? quotation mark aysmufaeonfavm taotcsmppfaq;,l&rnf/ ¤if;wdaYk Mumiho f m jzpfEikd o f nf/ HTML Review - Structural Tags
Document \ structure wGif
yg0if ywfoufaprnfh ta&;BuD;aom tag rsm; taMumif;ukd þtcef; 6 wpfcv k ;kH wGif azmfjyay;cJyh gonf/ o½kyjf ycsufwiG f qufvuf azmfjyrnft h cef;rsm;? usef&Sdaeao;aom tag rsm;udkvnf; rdwfqufay;vdkygao;onf/ Tag
Function
todtrSwfjyKjcif;/ document \ acgif;pD;tjzpf todtrSwfjyKjcif;/ document \ pmudk,f[k todtrSwfjyKjcif;/
<TITLE>
Page \
98
document wpfckvHk;udk HTML tjzpf
WEB DESIGN
acgif;pOfay;xm;csuf/
vufawG o Y ifcef;pmrsm;
Having Problems?
Web page rsm;
zefwD;&mwGifjzpfap? browser wGif ppfaq;Munfh½I&mwGifjzpfap rMum cP awGUMuHKwwfaom jyóemtcuftcJtcsKUd udk atmufwiG f avhvmMunf½h EI idk yf gonf/
uReaf wmf\ document ukd tenf;i,f tajymif;tvJ vkycf yhJ gonf/ odaYk omf page udk reload vkyí f browser wGif Munf½h &I m e*kt d wkid ;f &Sad eao;aMumif; awGaU e&yg onf A : Reloading rvkyr f D HTML document udk save rvkyrf ad omaMumifh jzpfygvdrrhf nf/ þtcsufonf ta&;BuD;qHk;wpfcsuf jzpfonf/ Q:
uReaf wmf jyifqifxm;aom page ay:rS text rsm;tm;vH;k tBu;D Bu;D jzpfaeonf A : Heading tag twGuf end tag arhusefchJíjzpfrnf/ xkdYtwl end tag wGif slash (/) udkvnf; arhxm;cJhí rjzpfay/ Q:
uReaf wmf\ page wpf0ufcefY aysmufaeygonf A : Closing bracket (>) odkYr[kwf tag wpfcktwGif;&Sd quotation mark wpfck rxnfh vdkufrdaomaMumifh jzpfEkdifonf/ Q:
Q : tag udk tok;H csí graphic wpfck xnh, f yl gonf/ okaYd omf broken - graphic icon jzifh jyovmygonf A : Broken - graphic onf jzpfEkdifp&m taMumif;trsKd;rsKd; &SdEkdifonf/ yxrtcsufrSm browser udk,fwkdifu graphic udk &SmrawGUjcif; jzpf\/ URL rSefuefrI &Sdr&Sd ppfaq;,l&rnf/ (URL ESifh ywfoufí tcef; 8 wGif tao;pdwf aqG;aEG;wifjy ay;ygrnf) aemufwpfcsufrSm rdrdxnfhoGif;aom graphic onf web browser rS vufcEH idk af omformat jzpfrjzpf ppfaq;,l&rnf/ Oyrmtm;jzifhGIF odYkr[kwf JPEG wkdYudk jzpfonf/ ¤if;wkdYtwGuf proper suffix jzpf rjzpfudkvnf; ppfaq;,l&rnf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
99
100
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tcef; 7
Text rsm;tm; format vky, f jl cif; "Typesetting" on the web
Web twGuf[k text udk marking vkyf&mü print twGuf azmfnTef;onfhyHkpHESifh rwlay/ Text
rsm;tay: rnfokdY½Ijrif&rnfqkdonfh tcsufudk wdwdusus odxm;&ef enf;vrf;r&Sday/ rdrdbrowser \ reference rsm;ukd wpfcsufMunfhyg/ xkdtcg online viewing twGuf rdrBd udKufEpS o f ufovdk font trsK;d tpm;ESihf t&G,t f pm;rsm;ukd tao;pdwaf zmfjy&ef pGr;f aqmifEikd f rIrsm;ukd awGU&ygvdrhfrnf/ Internet Explorer twGif;rS font control rsm;tm; access vkyf &ef Edit ukd a&G;í Preference ukd oGm;yg/ xkYdaemuf Language/ Font ukd a&G;cs,, f &l ygonf/ Navigator jzpfygu Edit udk a&G;í Preference okdY oGm;um Appearance category rS font ukd a&G;cs,f,l&ygonf/ Browser default twGuf rnfonfh font ukdrqkd a&G;cs,f,lEkdifonfh oabmyifjzpfonf/ HTML document wGif font wpfckudk specifying vkyfjcif;jzifh browser default udk vTr;f rd;k Ekid &f ef enf;vrf;rsm; &Syd gonf/ tok;H jyKol\pufay:wGif wdusaom font udk tqifoifh install vkyfrxm;vQif azmfjyEkdifrnf r[kwfay/ xkdYaemuf Windows taejzifh rnfrQus,fjyefY onfukd rodonfh tajctaersKd;yif &Sv d rd rhf nf/ okYd r[kwf rdrpd ufay:wGif line rsm;u jzwfrnf? rjzwfrnfukdyif tmrcHcsuf ray;Ekdifyg/ rdrdxdef;csKyfrI jyifywGif vkyfaqmifcsufrsm;pGm &Sdaeyg onf/ Two Fonts
Proportional font ESifh fixed - width font [lí tvkyfvkyf&ef font ESpfrsKd;om ¤if;udk browser \ font preference wGif setting vkyfxm;yHkudk jrifawGUEkdifonf/
&Sdonf/
rdrd\ page wGif yg0ifaom trsm;pkrSm body text , heading, lists , blockquotes ponfwkdYtwGuf proportional font rsm;tjzpf jrifawGUEkdifonf/ Proportional font (Netscape Navigator pepfwGif ¤if;ukd Variable Width font [k ac:onf/) wpfckonf yrmP rwlnDaom yHkpHcsxm;rIrsm;rS character wpfckpDtwGuf wpfckomvQif jzpfonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
101
Oyrmtm;jzifh capital ]]W }} [laom pmvHk;onf ]]i }} [laom pmvHk;xuf ae&mykd,lxm;\/ Web browser trsm;pktwGuf default proportional font onf Times okdYr[kwf Helvetica omjzpfMuonf/ tMurf;zsif; vrf;nGefrIqkdygpkdY/ Body text rsm;twGuf tokH;jyK&mwGif ¤if; fonts ESpfrsKd;rS tokH;jyKaom wpfckonf t&G,ftpm;tm;jzifh 10 point okdYr[kwf 12 point jzpf&rnf/ Figure 7- 1
tcsK;d usaom pmvH;k rsm; (tus,?f tajymif;tvJ)? tu©&mpmvHk;wpfckpDtwGuf ae&myrmPtrsK;d rsK;d cGJa0 csxm;ay;onf/ 'DZikd ;f tay: rlwnfaeonf/
yHak otus,f (tus,t f 0ef; wpfckwnf;)&Sdaom tu©&m pmvHk;rsm; tm;vHk;onf vdik ;f ay:wGif wlnpD Gm ae&mcsxm;ay;xm;onf/
tjcm;tokH;jyKEkdifaom font rSm fixed -width font jzpfonf/ ¤if;onf txl;py,f&S,f owif;tcsuftvufrsKd;rsm;twGufom tokH;jyKMuonf/ Fixed - width font (constant width okdYr[kwf monospace font [lívnf; ac:a0:wwfonf/) wpfckonf character tm;vHk;ukd ajrjyifnDtuGmta0;yrmP wlnDpGm cJGwrf;cs,lavh&Sdonf/ Capital ]W} onf small letter ]i }ESifh space twlwljzpfonf/ Browser onf specific tag tcsKdUt0uftwGuf om fixed-width font udk toHk;jyKMuonf/ (PRE) okdYr[kwf (TT) uJhokdYaom code twGuf tcif;tusif;ESifh ywfoufaom ae&mrsm;wGifom toHk;jyKavh&Sdonf/ omreftm;jzifh tqkd ygelement rsm;onf courier \ ajymif;vJcsuftcsKdUwGifom display vkyfygvdrfhrnf/ Text in Graphics
rdrd type \ display tay: wdwdusus xdef;csKyf,lEkdifaponfh wpfckwnf;aom enf;vrf;rSm graphic wpfck\tpdwftykdif;tjzpf jyKvkyfapjcif;yif jzpf\/ Headline rsm;? subhead rsm;? callout rsm;ESifh web page wpfckvHk;yif a,bk,soabm Munhf½I&efom jzpfayonf/ HTML text xuf graphic tBuD;BuD;tjzpf xm;&Sd&eftwGuf qkdvkdonf/ tvHk;pkHxdef;csKyfrI\ [efvkyfxm;rIrsm; cdkifrmaepOf tb,faMumifh sinking text rsm;udk GIF file rsm;tjzpfokdY ra&mufap&ef awmifhcHxm;aponfukd azmfjyaom taMumif;jycsuftcsKdU 102
WEB DESIGN
vufawG o Y ifcef;pmrsm;
&Sad eygonf/ yxrtcsuf graphic onf text xuf download vky, f &l mwGif tcsdeyf , kd o l nf/ 'kwd,tcsuf graphic twGif;rS rnfonfh information udkrqkd r&SmazGapEkdifjcif;? rnTef;qkd Ekdifjcif;wkdY &Sdonf/ aemufqHk;tcsufrSm ¤if; content onf non-graphical browser rsm;ay: wGif aysmufqHk;oGm;apwwfonf? okdYr[kwf graphic ydwfoGm;apwwfonf/ Graphic tag wGif&Sd ]] Alternative }} text udk tokH;csaepOf ¤if;onf limited jzpfNyD; tjrJwrf;tjzpf pdwf rcs&aom taetxm;wpfcktjzpfokdY tultnD jyKay;ygonf/ Building Blocks: Headings and Paragraphs
,ckazmfjyvsuf&Sdaom tcef;u@wGif paragraph level ay:&Sd format text tjzpf azmfjyaom tag rsm;ukdom &nfnTef;azmfjyay;rnf jzpf\ / tqkdyg tag rsm;udk block element taejzifh vnf; em;vnfxm;onf/ Web Page jzpfvmap&ef vkyfaqmifcsufjzpfonfh text \ woD; wjcm;pD&Sdaeaom unit rsm;om jzpfonf/ Heading jzpfap? paragraph rsm;jzpfap? quotations rsm;jzpfap? okdYr[kwf performatted text rsm;jzpfap tm;vHk;onf block element rsm; om jzpf\/ Block element tag wpfckudk browser wpfckMunfhaomtcg text element \
txuf atmufwkdYwGif tjzwftawmuf tuGmta0; vkdtyfcsufrSeforQudk tvkdvkd jzpfoGm;apygvdrfh rnf/ Block element tm;vHk;wGif a,bk,stm;jzifh xm;&Sdaom characteristic omvQif jzpfonf/ Heading wpfcu k o hJ Ydk vkid ;f wpfcw k nf;ay:wGif paragraph text rsm;udk rpwifEidk af y/ ¤if;twGuf text \ ]]block }}topfwpfcktaejzifhom tjrJwrf; pwifrIjyKaprnfjzpf\/ atmufazmfjyyg Oyrmonf block element wpfckcsif;\ erlemtjzpf MunfhEkdifygonf/ Headings
(þae&mwGif # onf 1-6 tok;H jyKonf) NyD;cJhaomoifcef;pmwGif rdrdwkdY page twGuf heading wpfcktjzpf azmfnTef;qkdEkdif&eftwGuf tag udk tokH;jyKcJhMuonf/ Heading rsm; \ level udk ajcmufrsKd; owfrSwfxm;\/
rS
txd jzpfonf/ Heading rsm;udk bold text yHkpHjzifhom display vkyfygonf/ First level heading
onf tBuD;qH;k heading t&G,t f pm;jzifh jyoxm;onf/ a&SUqufí level eHygwfpOfvu kd f twkdif; t&G,ftpm;onf wpfqifhcsif; ao;íao;íoGm;ygonf/ odkYtwGuf fifth-level ESifh sixth - level headings wkdYqkdvQif yHkrSef tokH;jyKaom text t&G,t f pm;xufyif ao;i,fvsuf &Sdaeapygonf/ Sixth - level heading qkdvQif zwf,l&efyif rvG,faMumif; awGY&rnf/ tMurf;zsif; pnf;urf;t&
udk tao;qHk; taetxm;jzifh okH;avhokH;x &SdMuonf/ Heading level #
WEB DESIGN
vufawG o Y ifcef;pmrsm;
103
Figure 7- 2 Headings HTML heading link ajcmufck&Sdonf/ onf tBu;D qH;k jzpfí level tpOftvdu k f
wjznf;jznf; wpfqifch si;f ao;oGm;rnf jzpfonf/
HTML documet wpfckudk logical structure tjzpf yHhydk;í xkdokdY vkyfavhvkyfx&Sdonf/ Heading jzifhom proper usage jzpfaernfh oabmyifwnf;/ NyD;rSom *Pef; tu©&m pOftwkid ;f qufvuf &yfwnfomG ;avh&\ dS / okYd aomf tu,fí rdro d nf
t&G,t f pm;udk Munfh&onfrSm tvGefBuD;rm;onf[k xifjrif,lqí rBudKufESpfoufygu ¤if;tpm;
okdYr[kwf
jzifh pokH;Ekdifygonf/ xkdudpt ö wGuf browser u oD;jcm; wm;qD;csuf r&Sd
ygu rdrdpdwfBudKuf taetxm;twkdif; aqmif&Guf,ljcif;onf taumif;qHk; jzpfapygvdrhfrnf/ Paragraphs
HTML text udk ykHpHazmf&eftwGuf taumif;qHk;ESifh t½kd;&Sif;qHk; aqmif&GufcsufrSm paragraph rsm; cGJcs&ef jzpfonf/ txufESihfatmufwGif extra space ESifhtwl browser \ default proportional font wGif paragraphs rsm;udk display vkyf,lavh &SdMuonf/ Figure 7- 3 Paragraph pmyd'k rf sm;onf default font twGi;f
txufatmuf space rsm;jzifh cif;usif;azmfjyay;onf/
104
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 7- 4
rS multiple paragraph rsm;udk csev f yS x f m;cJo h nf/ Browser
Paragraph break wpfcktjzpf
Line Break
Block elements wpfck
r&SdvQif paragraphs rsm;ESifh ywfoufí break tag udk tokH;0ifpGm aqmif&GufEdkif&ef rdwfqufay;vdkygonf/ rdrdtaejzifh text pmaMumif;wpfaMumif;tm; jzwf awmufvkdvQif txufESifhatmufwGif space rsm; xnfhr,lawmhonfhtcgrsKd;wGif paragraph wpfcktwGif;
tag wpfckudk xnfhoGif;toHk;jyKEkdifonf/ Lock element wkdYwGifvnf; xkdenf;udk tokH;jyKEkdifonf/
tag \ stock wpfckonf rsm;aomtm;jzifh browser rsm; u blank line rsm;tjzpf display vkyfay;rnf jzpf\/ Figure 7- 5
Line breaks
Tag onf block element
wpfct k wGi;f vdik ;f opfwpfcjk zifh pwifco Jh nf/ odaYk omf tydk space xnfah y;xm;jcif;r&Sad y/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
105
Long Quotations - - -
Blockquote
Quotation t&SnfBuD;wpfck jzpfcJhvQif page ay:wGif txl;jyKvkyfcsuf xnfhoGif;Ekdif&eftwGuf blockquote wpfcktoGifjzifh format vkyfxm;oifhonf/ Blockquote rsm;onf a,bk,s tm;jzifh txufESifhatmufwGif extra space rsm; xnfhoGif;í margin \ b,fbufESifh nm bufwkdYwGif indent wpfckESifhtwl display vkyfxm;onf/ xkdokdYaom taMumif;aMumifh text
\ pmwkdifusOf;usOf;av;udk zefqif;&ef t&efpDxm;aom pmuGufvyfwpfcktjzpf rMumcP qkdovdk tokH;jyKMuavonf/ tcsKdUaom browser ta[mif;rsm;onf blockquote materials rsm;udk pmtm;vHk;wGif italic ac: pmvHk;tapmif;ykHpHjzifh zwf&cufavmufatmif display vkyfwwfaMumif; owdjyK&ayonf/ Figure 7- 6
rsm;onf b,fbufESifh nmbuf abmifvdkif;rsm;ay:wGif csKyfwifxm;onf/
Blockquote
Preformatted Text - - -
Preformatted Text
HTML avmuwGif preformatted text rsm;onf wpfrsKd;wpfbmom jzpfaeapygonf/ Browser \ constant-width font (omreftm;jzifh courier) udk txufatmuf extra space rsm;xnfhí display vkyfxm;ygonf/ okdYaomf trSefwu,f xl;jcm;csufrSm line Figure 7- 7
wdo Yk nf pmpD½u kd x f m;ouJo h Ykd browser twGi;f wpfrsK;d wpfbmom pDcif;ay;xm;onf/ ¤if;wGif extra space rsm;ESihf carriage return rsm; yg0ifrnfjzpfonf/ Preformatted text
106
WEB DESIGN
vufawG o Y ifcef;pmrsm;
wpfckpDonf carriage return tm;vHk; multiple character space rsm;ESifh tab rsm; tygt0if wdwdususpD½kdufoGif;xm;onfhtwkdif; dispaly vkyfay;Edkifapjcif;yif jzpf\/ NyD;cJah om oifcef;pmwGif page ykpH H ½k;d ½k;d wpfck zefw;D ,ljcif;ukd jrifawGYcNhJ yD; jzpfonft h wkid ;f browser rsm;onf txufygykHpHuJhokdYaom udpr ö sKd;rsm;udk omreftm;jzifh ignore vkyfxm;cJhyg onf/ Preformatted text rsm;onf code rsm;udk display vky&f eftwGuf rlvu zefw;D xm;jcif; jzpf\/ okdY&mwGif spacing rsm; content rsm;\ alignment rSeforQudk control vky&f eftwGuf ¤if;udk tokH;csEkdifygonf/ Putting It Together - Block Elements
Text udk format vkyf&eftwGuf block element rsm;ESifh line break rsm;udk
tokH;csum ykHpH
½dk;½kd;av;wpfck pDrHaqmif&GufMunfhEkdifonf/ Figure 7- 8
wnfaqmufrIjyKay;aom tag rsm; yxrtqifh heading Blockquote
wpfcktaejzifh ñTef;qdkxm;ay;jcif;
'kwd,tqifh heading
pmyd'k rf sm;wGif txufatmuf space rsm; &Sad eNy;D line break rsm;wGif space xnfhoGif;jcif;rjyKay/ wnfaqmufrIjyKay;aom tag rsm;
WEB DESIGN
vufawG o Y ifcef;pmrsm;
107
Tool Tip DREAMWEAVER 3
Text element wGif highlight vkyx f m;jcif;jzifh ay:rS qJcG s,&l aom menu wGi&f dS format rS paragraph style wpfcu k kd a&G;cs,f,l&onf/ properties palette
Blockquote rsm;onf properties palette ay:wGif ]]Indent}} [laom cvkwu f kd
toHk;jyKjcif;jzifh csdefwG,f,l&onf/
GOLIVE 4
rdrpd mpD½u kd o f Gi;f orQonf default jzifh paragraph wpfcjk zpfaeonf/ Toolbar b,fbuf&dS qGcJ s,&l aom menu rS tjcm;aom block element style rsm;udk a&G;,l&onf/
FRONTPAGE 2000
Formatting vky&f ef text toolbar \ b,fbuf&dS qGcJ s,&l aom menu udk toH;k cs&ef rdrd text rsm;udk highlight vky, f &l onf/
108
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Inline Styles
rsm;aomtm;jzifh text tag rsm;udk inline style jzifh ykHazmfxm;Muonf/ Block element tag rsm;ESifh rwlMuum inline tag rsm;udk okH;onfhtcg line break wkdY extra space wkdYudk xnfhokH;jcif; r&Sday/ - - - Italic text
tqkdyg style tag onf pmvHk;tapmif;rsm;jzifh wJGzuf jyKvkyfxm;aponf/ Italic text rsm;udk tokH;jyKcJMuonf/ taMumif;rSm zwf&cufcJonfhtjyif ae&m,lvGef;ygonf/ Figure 7- 9
Italic
ESihf <EM> ESpcf pk vH;k onf pmvH;k rsm;udk italic yHpk aH jymif; vkyaf y;onf/
<EM> - - - Emphasized text
¤if;onf rsm;aomtm;jzifh browser rsm;onf ¤if;udk italic ykHpHjzifhom a&;aomaMumifh Italic text ESifh tvm;wlykHpHom jzpfonf/ - - - Bold text
¤if; style text onf bold type rsm; xnfhoGif;ay;jcif; jzpf\/ Figure 7- 10
Bold
ESihf <STRONG> tag ESpcf v k ;kH onf pmvH;k rsm;udk txlom; bold vkyaf y;onf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
109
<STRONG > - - - Strong text
¤if;\ ]] logical }}style equivalent onf ESifh twlwljzpf\/ - - - Teletype
tqkdyg style tag twGif;rS text rsm;onf browser \ constant width font (omreftm;jzifh courier ) jzifhom display vkyfavh&Sdonf/ Pre-formatted text ESifh rwlum inline tokH;jyKxm;í extra character space okdYr[kwf return udk todtrSwf jyKrxm;aomykHpHudk tokH;jyKxm;wwfonf/ Figure 7- 11
jzifh cif;usi;f ay;aom pmvH;k rsm;onf yHak otus,&f dS font rsm; jzpfonf/ odaYk omf ESihf rwlbJ &yfem;rIrsm;ESihf ae&mtydck sex f m;rIrsm;udk rodEikd fapay/
- - - Underlined text
yg&Sdvmaom text rsm;rSm Underlined vkyfxm;NyD; ykHpHjzpfonf/ þykHpHudk owdxm;í okH;oifh onf/ taMumif;rSm link wpfckjzifh a&maxG;oGm;Ekdifygonf/ ykH 7-12 wGif Munfhyg/ <STRIKE> - - - Strike through text
vkdif;wpfck jzwfoGm;aomtoGifjzifh text rsm; ay:vmap&ef ¤if; style tag udk okH;Muonf/ tu,fí vdktyfvQif okH;&efomjzpfonf/ (ykH 7-12 wGif Munfhyg/) Figure 7- 12
atmufrS rsO;f om;xm;onfh yHpk eH rlemrsm;ESifh wnf;jzwf qJGom;csurf sm;? tay:wif ñTe;f qdo k nfh superscript rsm;ESihf atmufñeT ;f qdk jyay;onfh subscript pmvH;k rsm;\ erlemrsm;udk awGjU rif&yH/k
110
WEB DESIGN
vufawG o Y ifcef;pmrsm;
<SUB> - - - Subscript <SUP> - - - Superscript
oufqkdif&m text rsm;odkY subscript ESifh superscript rsm;toGif format vkyfxm;aom tag jzpfonf/ (ykH 7-12 wGif Munfhyg/) Putting It Together - Style Tags
Style tag rsm;tm;vH;k yg&So d nfh page wpfcu k kd zefqif;xm;yku H kd erlemtjzpf avhvmMunf½h EI idk f
onf/ Figure 7- 13
vkyjf cif;xuf k kd Italic yHu a&G;cs,fxm;ay;onf/
blockquote
onf tjcm; text rsm;ESihf oD;jcm;jzpfaeapaom ingredient list udk csdefay;onf/
Teletype
Italic tapmif;yHpk H ay:&ef
txl;ñTefMum;csufrsm; t"duusaom ñTefMum;csufrsm;udk owdjyKrdap&eftvdkYiSm bold udk oH;k xm;onf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
111
Text Size, Font and Color
HTML text tag \ basic set ESifhtwl
rdrdwkdY formatting vkyfudkifEdkifrIonf toifhtwifh uefYowfcsufrsm; &SdaecJhonf/ okdY&mwGif text \ ta&miftwGufvnf;aumif;? typeface toGiftjyifrsm;twGufvnf;aumif;? t&G,ftpm;rsm;twGufvnf;aumif; xdef;csKyf udkifwG,f Ekdif&ef enf;vrf;wpfckawmh &Sdaeygonf/ tag [lonfh tag ao;ao;av;wpfckESifh vkyf,ljcif;jzpf\/ tag onf typeface twGufjzpfap? t&G,ftpm;twGufjzpfap? ta&miftwGufjzpfap xdef;csKyfudkifwG,fEkdif&eftwGuf udk,fpm;jyKrIudk tokH;cs&onf/ ¤if;\ vkyfaqmifcsufrsm;udk expend vkyf&ef tag twGif; instruction rsm; xnfhay;onfhoabm jzpfonf/ Controlling Font Size . . . Font size
Size [lonfh pmvHk;onf xnfhoGif;tokH;jyKaom text \ t&G,ftpm;rnfrQjzpfonfudk tag twGif; tqkdjyKazmfnTef;jcif;jzpfonf/ þae&mwGif >cif;csuftaejzifh rSwf,l &efrmS tag onf yGKid phf mvH;k okYdr[kwf pixel size jzifh trsK;d tpm;ykpH u H kd vkyaf qmifEidk cf iG hf r&Sad cs/ Default font size ESihf qufE, T af eonfh text \ t&G,t f pm; ykpH u H o kd m vkyaf qmifay;Ekid f
½Hkom jzpf\/ f pm;ykpH t H wGuf tok;H cs ajymifajymif&iS ;f &Si;f ajymMum;&rnfqydk gu HTML pepfwiG f t&G,t rIrSm jrifawGY&cJvSygonf/ rdrdwkdYtaejzifh browser \ default font size ukd "3" [lí value ay;xm;aMumif; od&x dS m;&rnf jzpfonf/ User tcsKUd wGif tvGeaf o;i,fvaS om default font size rsm; &SdaewwfouJhokdY tcsKdUwGif cyfvSrf;vSrf;rS jrifawGYEkdifonftxd BuD;rm;aom default font size rsm; &Sdaewwfonf/ xkdYaMumifh rnfonfhtcgwGifrqkd t&G,ftpm;ESifh ywfoufvQif user rsm;\ default text twGuf value - 3 jzifh &Sdaeonf/ xkdtcsufESifhywfoufí SIZE [laom pmvHk;\ukd,fpm;jyKrIonf default value - 3 ESifh qufET,faeaom tenf;i,fBuD;rm;rI okdYr[kwf tenf;i,fao;i,faerIrsm;wGif tokH;jyKEkdif onf/ Figure 7- 14
Browser wpfca k y:wiG f ¤if;\ default font ESifh twl yGKd ihf 10 udk csed w f , G , f o l nf/ tqdyk g value
onf teD;pyfq;kH jyefqñ kd eT Mf um;xm;jcif;jzpfonf/
112
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Absolute value rsm;rSm *Pef;oauFw 1 rS 7 twGif;jzpfí size wpfckpD\ uGmjcm;csuf rsm;rSm 1 rS 20&mcdkifEIef;pDwkd;í oGm;onf/ xkdYaMumifh type set to SIZE = 4 onf type set to SIZE = 3 xuf 20 &mckdifEIef; ydkBuD;vsuf &Sdaeygvdrhfrnf/ tBuD;qHk; size t&G,t f pm;tjzpf browser rS tag udk 7 jzifh tokH;cs jyoay;rnf jzpf\/ tu,fí xkdxuf omvGef BuD;rm;aom higher value wpfckudk azmfnTef; tokH;jyKvdkygonfqkdyguvnf; text set 7 wGif&Sdaom t&G,ftpm;twkdif;om jzpfygvdrfhrnf/ Relative value rsm;rSm taygif;vu©Pm okdYr[kwf tEkwfvu©Pm sign jzifh nTefjyavh &SdMuonf/ Default 3 xuf avsmhenf;jcif; okdYr[kwf ydkjcif;udk jyoay;\/ xkdYaMumifh SIZE = +1 onf SIZE = 4 ESifh xyfwlxyfrQjzpfaponf/ Browser onf display text rsm;udk size value 7 xuf rydkEkdifjcif;aMumifh tjrifhqHk; relative value rSm +4 (3+4=7) om jzpfrnf/ Figure 7- 15 Head Line udk ydí k Bu;D rm; aeap&ef value-6 udk
a&G;cs,f csed , f x l m;onf/ t&G,t f pm; setting vkyf rxm;aom default text. Copyright azmfjyaom vdik ;f wGif pmvH;k t&G,t f pm; ydak o;ap&ef value-2 udk csdefxm;ay;onf/
aemufqHk;&&Sdapaom text t&G,ftpm;rsm;onf ay:&Sd font setting tay: rlwnfí &Sad eaponf/ SIZE=6 udk xm;vdu k jf cif;jzifh rnfrQtxd t&G,t f pm; Bu;D vmonfukd jrifawGUEdkifygonf/ default browser
WEB DESIGN
vufawG o Y ifcef;pmrsm;
113
Changing the default text size
Default font set -3 [líavmufESifh NyD;raeapEkdifyg/ Text \ default size udk
rnf/ Document \ wGif ae&mcsxm;aomtcg
tag onf text rsm;udk pdwf0ifpm;zG,f ykdjzpfvmap&ef enf;vrf;rsm; vkyfay;Ekdifonf[k qkdaomfvnf; tm;enf;csuftcsKdUawmh &Sdaeygao;onf/ tcef; 6 wGif azmfjyxm;cJhaom HTML jzpfpOftusOf;wGif awGUjrifcJh&onfhtwkdif; document twGif; display information xnfh,lEkdifrI tajctaersKd;ESifh logically wnfaqmufEkdifrIrsKd;wkdYukd rwnfaqmufEkdifjcif;rSm HTML \ tm;enf;csufyif jzpfonf/ qufvufazmfjyrnfh oifcef;pmrsm;wGif tag ESifh ywfoufí tajymif;tvJrsm; jyKvkyfay;&ef vkdtyfvmrnfjzpfí vkyfcsufrsm;vnf; ydkvmayawmhrnf/ xkdokdYaom tajccHtaMumif;w&m;rsm;aMumifh tag [laom obm0rsKd;rS Cascading Style Sheets (CSS) okdY a&mufoGm;&onf/ Style sheet rsm;onf text formatting wGif ydkrdk opfvGif pwkdifusaeEkdifonf/ xkd information rsm;udk oD;jcm; Style sheet wpfckpDwGif store vkyfay;rnf jzpf\/ tag udk prf;oyf Munfh½IMu&awmhrnf/ taMumif;rSm container tag wpfck jzpfvmNyD qkdaomaMumifh t&G,ftpm;qkdif&m tajymif;tvJrsm;udk jyKvkyfMu&awmhrnf jzpfonf/ owdjyK&rnfrSm aemufqHk; wu,fht&G,ftpm;onf default font size tay: rlwnfaejcif; jzpf\/
114
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Document BuD;\ wpfpw d w f pfa'oavmuftwGuo f m default text udk ajymif;,lvydk gu
pxm;onf/
ajymif;ay;onf/ setting ryg&o dS nfw h ikd f text rsm;onf SIZE = 4 jzifh
ay:vmonf/ wpfcu k kd toH;k jyKvu kd af omtcg default size opfwpfck D mG ;aponf/ jznfo h iG ;f xm;vdu k o f nf/ &v'frS font setting 5 (4+1) ESihf wlno
Relative font size (+1)
Specifying Type Color . . . Specifies font color
tag twGi;f ta&mifukd uk, d pf m;jyKrIrsm; xnfo h iG ;f tok;H jyKjcif;jzifh ta&miftrsK;d rsK;d ukd zefw;D ajymif;vJ,El idk o f nf/ Value tm;jzifh preset color names 140 rS wpfcck u k kd uk, d pf m;jyK okH;pGJEkdifonf/ odkYr[kwf color ukd numeric value jzifhvnf; jyqkd okH;pGJEkdifonf/ tao;pdwf
udk tcef; 12 wGif qufvuf azmfjyay;ygrnf/ ykHwGif azmfjyxm;onfhtwkdif; rD;ckd;jyma&mif text color ukd jyKvkyfEkdif&ef enf;vrf;ESpfckukd erlemtjzpf Munfh½IEkdifonf/ Figure 7- 17
ta&mifrsm;udk name jzifv h nf;aumif;? numeric value jzifhvnf;aumif; owfrSwfcGJjcm;ay;Edkifonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
115
t&G,ftpm;? ta&miftrsKd;tpm; ponfjzifh tag \ ukd,fpm;jyKrIrsm;udk woD;wjcm;pD azmfjyay;cJjh cif;jzpfonf/ okYd aomf rdrw d Ydk taejzifh acgif;pOfukd txl;jyK BuD;rm;ap vdkvQif tag oHk;qavmuf okH;vdkvQifqkdygu rnfokdY aqmif&Guf,lMurnfenf;/ Single opener tag wpfcktwGif;rSmyif udk,fpm;jyKrI awmfawmfrsm;rsm; xnfhay;Ekdifonf/ okdYygí wpfNydKifeufwnf; size, font ESifh color wkdYukd xdef;csKyf,lí &ygonf/ Specifying a Typeface . . .
Text twGuf typeface wpfcu k kd twdtus azmfjyEkid &f ef FACE udk tok;H jyKxm;NyD; uk, d pf m;jyKap onf/ Typeface ESifh ywfoufí rdrdtokH;jyKaom puftwGif;&Sd trsKd;tpm;rsm;rSom a&G;cs,f tok;H jyKEkid rf nf jzpf\/ Browser rSvnf; string wGif yg&Sad om first font udk tok;H jyKygvdrrhf nf/ Figure 7- 18
Browser
Trebuchet MS
twGif;wGif
udk
vdkif;ay:wGif tag jzifh jrifawGU&yHk csdefwG,ftoHk;jyKxm;yHk
116
WEB DESIGN
Font
twdtusukd
browser rS rawGaU omtcg
(þae&mwGif "Ponyface" font udk oH;k xm;onf/) default font wGif pmvH;k rsm;udo k m cif;jyay;ygvrd fh rnf/ rnfoYkd vdik ;f jyKxm;onf <3> ESihf vdik ;f udk rnfoYkd cJGjcm; owfrSwfxm;onfudk owdjyKyg/
vufawG o Y ifcef;pmrsm;
þae&mwGif serif, sans-serif, monospace, cursive okdYr[kwf fantasy uJhokdYaom generic font family rsm;vnf; yg0ifvmEkdifayonf/ tu,fí rdrdu a&G;cs,fowfrSwfvkdaom font udk browser rS &SmazGrawGU&SdvQif ¤if;ESifh ykHpHpwkdifwlaom font wpfrsKd;udk erlemMunfh&if; a&G;xkwf okH;pGJ,l&rnf jzpf\/ Combining Styles
Container tag rsm;\ csdwfqJGrIoabmudk od&SdNyD;aemuf atmufyg HTML code rsm;udk browser wpfckwGif jrifawGY&NyDqkdygu rnfuJhokdYaomtajzxkwf,lrIudk &&SdEkdifrnfenf;/ CAUTION !!
yxrqHk; "CAUTION !!" [laom pmvHk;udkjrifawGUEkdifonf/ xkdYaemuf tag udk pmvHk;BuD;rnf/ teDa&mifxm;rnf[laom t"dyÜm,frsm;yg yg&Sdonf/ okdY&mwGif italic tag () jzifhvnf; pmvHk;tapmif;obm0udk azmfnTef;xm;um bold tag () jzifhvnf; pmvHk; txl;yHkpHjyK&ef &nfnTef;xm;ao;onf/ Figure 7- 19
nesting style tag
rsm;jzifh combine style udpö aqmif&Gux f m;yH/k
HTML wGif style awmfawmfrsm;rsm;jzifh text udk ukd,fpm;jyK &nfnTef; zefwD;Ekdifygonf/ ¤if;wkdYudk nesting tag rsm; okdYr[kwf element rsm;[k rSwf,lxm;cJhMuNyD; jzpfonf/
wpfckwnf;aom pnf;rsOf;rSm tqkdyg tag wpfckvHk;onf twlwuG yg&Sd&rnf jzpfaomf vnf; wpfckESifhwpfck xyfaeonfhoabm r&Sdap&ef jzpfonf/ Step - by step txufygtwkdif; azmfjyaom code onf rSm;,Gif;aernf jzpf\/ taMumif;rSm opening tag ESifh closing tag wdkY ESpfckvHk;onf bold tag twGif; &Sdrae aomaMumifh jzpf\/ txufygtwkid ;f jyqkyd gu browser wpfcw k iG f aocsmpGm azmfjyay;Ekid rf nf r[kwfay/ (okdY&mwGif tcsKdU browser rsm;onf xkduJhokdUrSm;,Gif;rIrsKd;udk tvkdtavsmuf ausmfvTm;ay;um tqifajypGm vkyfudkifay;Ekdifygonf/)
WEB DESIGN
vufawG o Y ifcef;pmrsm;
117
Putting It Together - The Tag
ydkrdkí pdwf0ifpm;zG,faumif;aom acgif;pOfBuD;ESifh acgif;pOfav;rsm;udk aqmif&Gufxm;ykHukd Munfh½IEkdifygonf/ tag wpfcktwGif; pkaygif;í ukd,fpm;jyKaponfh nesting tag rsm;jzifh combined style rsm;jzifh aqmif&Guf,lxm;jcif; jzpf\/ Figure 7- 20
acgi;f pOfukd cyfBu;D Bu;D yHpk ?H c&rf;a&mifEiS hf Verdana type jzpfap&ef one font tag jzifh toH;k jyKxm;onf/
Section labels rsm;onf nested style tags [ & ] udk oHk;xm;onf/ pmvHk;tm;vHk;udk capital U o kd jzifh letter jzifh jrifawGv
jyefvnf½dkufoGif;&onf/
118
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Tool Tip DREAMWEAVER 3
a,bk,soabmrsK;d trsm;qH;k f rd§ Irsm; toH;k jyKonfh text style csed n onf text udk highlight vkycf o hJ nfh tcgwiG f Properties palette ay:rS nmbufwGif &,lEdkifonf/
tydkaqmif; style rsm;udkrl Text → Style menu rSwpfqifh &,lEdkifonf/ GOLIVE 4
tajccH style setting rsm;udk toolbar ay:rS &&SdEdkifonf/
FRONTPAGE 2000
tydak qmif;
rsm;udrk l Style menu atmufwiG f awGEU ikd o f nf/ odrYk [kwf ¤if;\ Structure Submenu wGif &Edik o f nf/ style setting
tajccH style setting udk toolbar ay:rS &&SEd ikd fonf/
tydak qmif; style setting rsm;udrk l format menu atmufwiG f awGUEdkifonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
119
List
rsm;
wpfcgwpf&H pmykd'frsm;jzifh azmfjyay;rIxuf itemize information ac: taMumif;udpt ö vdkuf owif;azmfjyrIrsKd; vdktyfvmwwfygonf/ HTML ESifh wJGzufí list trsKd;tpm; okH;rsKd;&Sdonf/ Ordered list (numbered lists), unordered lists (bulleted lists) ESifh defintion lists (terms ESifh ¤if;wkdY\ defination rsm;twGuf) [lí jzpfonf/ List trsKd;tpm;wpfckpDwGif ukd,fykdif tag rsm; &SdMu\/ Ordered Lists . . .
Ordered List
item rsm;tvdkuf tpDtpOfusjzpfaeap&ef ta&;BuD;aomudpr ö sm;twGuf ordered list (numbered list) udk tok;H jyKMu&onf/ Browser onf tvkt d avsmufqo dk vdk item rsm; wpfcpk \ D a&SUwGif number wpfckpD xnfh,lonf/ xkdYaMumifh number rsm;udk udk,fwkdif type ½kdufoGif; xnfhay;ap&ef rvdktyfay/ (tu,fí rdrdtaejzifh number ½kdufoGif;rdvQif item \a&SUwGif number ESpfck xyfaeygvdrfhrnf/)Number list udk tokH;jyKjcif;jzifh &&SdEkdifaom advantage rSm item wpfck yg&Sdvmwkdif; tpOftvdkuf number rsm; tvdktavsmuf wyfay;Ekdifrnfjzpf ouJhokdY item wpfckjzKwfcsvdkufonfESifh tpOftvkduf number udk tvdktavsmuf ajymif;vJ
pOfay;Ekdifjcif; jzpf\/ Figure 7- 21
Ordered (numbered) list rsm;onf tag jzifh jyqdak y;xm;onf/ List rS taMumif;t&m wpfcck si;f udk list item tag
120
WEB DESIGN
vufawG o Y ifcef;pmrsm;
container tag onf ]] Ordered }}uJhokdY identify jzpfap&ef tokH;csxm;onf/ List wGif item wpfckcsif;onf
udk TYPE
ajymif;ay;Edkifonf/ Value rsm;udk wpfbufwiG f jrifawGUEdkifonf/
Figure 7- 23 List twGi;f ü yxrqH;k number udk cGJjcm; owfrSwfEdki&f ef START attribute udk oH;k yg/ START ESihf TYPE attributes rsm;udk tag wpfct k wGi;f
aygif;qHkEdkifonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
121
Unordered Lists . . .
Unordered lists
Unordered List rsm;onf bullet list tjzpf jyoay;ygonf/ Bullets onf browser jzifh tvkdtavsmuf xnfhxm;NyD;vQif items rsm;onf indent wpfckay:wGif set vkyfxm;onf/ . . .
tags onf bulleted list \ tpESifhtqHk;wGif nTefjyay;onf/ Ordered list rsm;uJhokdY item wpfckcsif;onf
tu,fí teufa&miftpuf0kdif;rsm;jzifhyif rauseyfao;ygu puf0kdif;rsm; okdYr[kwf av;axmifhrsm;jzifh tokH;csEkdifonf/ tag twGif; TYPE tm; ukd,fpm;jyKjcif;onf bullet \ toGiftjyifrsm;tay: xdef;csKyfrI tedrfhqHk;tajctaeom ay;onf/ Figure 7- 25 wGif azmfjyxm;ouJhokdY puf0kdif;rsm; av;axmifhuGufrsm;jzifh trsKd;rsKd; value rsm; &SdMu\/ tu,fí bullet uJhokdY *&yfzpfESifh wifjyykHrsm;udk tcef; 17 wGif jrifawGUMu&ygOD;rnf/ Figure 7- 24 Unordened (bulleted) list rsm;onf
tag jzifh ñTejf yay;onf/ List iten (
jznfo h Gi;f ,lonfukd owdjyKyg/
Figure 7- 25 Bullet type udk trsK;d tpm;tvdu k f cGJjcm;owfrw S Ef ikd &f ef TYPE attribute
122
WEB DESIGN
vufawG o Y ifcef;pmrsm;
udk oH;k &onf/
Definition Lists . . .
Dictionary (or definition) list
Descriptive text \ block rsm;ESifhtwl pmvHk;rsm;\ azmfjyrI pm&if;udpr ö sm;twGuf Dictionary List rsm;udk tokH;jyKMuonf/ Format wGif;&Sd tjcm; HTML List ESpfrsKd;ESifh rwlygay/ . . .
tags onf list \ tpESifhtqHk;udk rSwfom;&eftwGuf tokH;jyK,lonf/ List twGif; word (term) wpfckonf tags ESihf rSwfom;xm;&Sdonf/ a0g[m&wpfckcsif;udk
Nesting Lists
Figure 7- 27 wGif jyxm;onfhtwkdif; nested vkyfxm;Ekdifygvdrfhrnf/
rnfonfh list rqkd tjcm; list wpfcktwGif;wGif Ordered (numbered) list wpfct k wGi;f unordered list wpfcjk zifh
Figure 7- 27
xnfhoGif; zGJpU nf;xm;onfh erlemyH/k
tu,fí nested list tvGerf sm;pGm oH;k xm;cJv h Qif rdr\ d content onf nmbuf abmifvdkif;wGif; xdk;aysmufoGm;aponf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
123
Putting It Together -Lists
List rsm;ESifh ywfoufí tqifhvdkuf? trsKd;tpm;vdkuf wpfckcsif; tokH;jyKEkdifykH azmfjyay;NyD; aemuf ykH Figure 7-28 wGif twlwuG wGJzuf tokH;cs,lykHrsm;udkvnf; jrifawGY&rnf jzpf\/ Figure 7- 28
erlemESifh udkufnDrI&Sdap&ef rnfonfh list tag rsm;jzifh ñTeMf um;rI jyKay;rnfenf;/
Aligning Text
HTML onf text alignment rsm;tay: tenf;i,f xdef;csKyfjcif;jzifh 'DZdkifemrsm;twGuf wefzdk; xdkufxdkufwefwef &aponf/ b,fbuf&Sd margin ESifh csdefn§d,lrnfvm;? nmbuf&Sd margin ESifh csdefn§d,lrnfvm; odkYr[kwf tv,fwnfhwnhfudk t&,lrnfvm; ponfjzifh rdrd pdwBf udKuf a&G;cs,f,El ikd jf cif;wdYk &Sad ernf/ tu,fí rdro d nf b,fbuf&dS margin udk csden f , d§ l &aom left-justified udk vdkcsifonfqdkygu rdrdukd,fwdkif rnfodkYrQ vkyfaqmif&efrvdkbJ tvdk tavsmufjzifh toifh display vkyfay;vdrhfrnf jzpf\/ odkY&mwGif aqmif&GufcsufwpfcktwGuf vkyfaqmifNyD;aemuf xyfrH rvdkawmhygu text xdef;csKyfrIudk jyefvnf ajymif;a&TUEdkifaom enf; vrf;rsm;&SdaMumif; awGUjrifEdkifygonf/ ALIGN [laom pmvHk;onf heading acgif;pD;rsm;wGifjzpfap? paragraph tag rsm;udk xdk paragraph \ text alignment odkY ajymif;vJxm;&Sd&mwGifjzpfap nTef;qdkaMumif;ESifh toHk; jyKEdkifapvdkaMumif; rSwf,l&rnf/ rdrdtaejzifh ALIGN ESifh ywfoufonfh value udk left (default) odkYr[kwf right odkYr[kwf center [k owfrSwfxm;Edkifonf/ rdrdwGif multiple paragraph rsm; &Sdaeygu rdrdtaejzifh realign vkyfvdkrnfjzpfí
124
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Tool Tip Formatting Lists
vlMudKufrsm;aom authoring program 3 rsdK;rS oifhtaejzifh tokH;csEdkifaom control list rsm;ukd atmufygtwdik ;f awGEY ikd o f nf/ DREAMWEAVER 3
wdusaom list wpfcu k kd a&G;,lNy;D list
yg0ifaprnfh list udk a&G;cs,x f m;Ny;D Text →List menu rSwpfqifh oihaf vsmaf om list style udk a&G;,l&onf/
properties dialog box
GOLIVE 4
udk Text-List
menu rSwpfqifh zGi, hf yl g/ þae&mwGif list item rsm;udk tao;pdwf
aqmif&GufEdkfifonf/
FRONTPAGE 2000
Format-Bullets udk a&G;Ny;D Numbering udk Number tab
tm; click vkyí f style udk a&G;ay;yg/
List setting
tm;vH;k onf
format →List menu rS
&,lEdkifonf/
tjrefqHk;
enf;vrf;rSm List wpfct k wGi;f yg&dS ap&ef item udk a&G; ay;yg/ xdaYk emuf Numbering icom udk click vky, f yl g/
Numbered odrYk [kwf bulleted lists rsm; jrefqefpGm jyKEikd af &;twGuf Toolbar ay:rS cvkwrf sm;udk toH;k csyg/
¤if;onf toolbar ay: wGif toif&h adS eonf/ tqdyk g items rsm;onf default number list odYk a&mufoGm;aprnf/ Format tvdktavsmuf a&G;cs,fNyD; jzpfoGm;ygvdrhfrnf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
125
ALIGN attribute \
ouf0ifvIyf&Sm;rIrsm;udk atmufyg erlemtcsKdUjzihf avhvmEdkifyg
onf/ Setting Text on the Right Margin
Right alignment ALIGN value udk right [k csdefwG,fcsxm;,laomtcg Figure 7-29 wGif jyxm;ouJhodkY right margin ay:wGif text rsm; tnD,lxm;vdrhfrnf/ þae&mwGif paragraph a&m? heading yg ESpfckvHk; xdkodkYvkyfudkifxm;aMumif; owdjyKyg/ Figure 7- 29
Text flush-right tm; nDnn D mnmjzpfap&ef ALIGN = right attribute udk oH;k &onf/ Centering Text
Center Alignment ALIGN value udk pmrsufESm\ tv,fwnfhwnfrS tuGmta0;wltjzpf paragraph twGuf jzpfap? heading udkjzpfap csxm;ay;Edkifonf/ þae&mwGif tqdkygenf;jzifh pmwpfrsufESmvHk; twGuf element wdkif;wGif&Sd opening tag rSeforQwGif ALIGN = center [k xm;&ygonf/ Figure 7- 30
pmyd'k Ef iS hf acgi;f pOfwo Ykd nf tag wpfcck si;f wGif ALIGN = center attribute udk oH;k ,ljcif;jzifh tv,frS tnDcs,al om yHpk v H kd jzpfoGm;aponf/
126
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Center alignment Center text twGuf tjcm;enf;vrf;wpfckrSm Figure 7-31 wGif azmfjyxm;onfhtwdkif; container tag udk
tajrmuftjrm;udk csucf si;f tv,frS tnDcs,laom yHkpHjzpfap&ef
udk
oHk;xm;onf/ The
onf division wpfcktjzpf cGJjcm;&mwGif toHk;jyKonf/ Division wpfckonf a,bk,susaom block element wpfckESifh wlygonf/ vkyf½dk;vkyfpOf structural element wpfckr[kwfay/ odkY&mwGif toHk;jyKu (ESpfoufygu) pmrsufESmwpfckvHk;udk wpfyHkpH wnf; &aprnfh style attribute (alignment ESifh wlonf) udk toH;k cs&ef ¤if;udk oH;k Edik yf gonf/
Figure 7- 32 Element
tajrmuftjrm;udk tv,fcspepf aqmif&Guf&mwGif
WEB DESIGN
vufawG o Y ifcef;pmrsm;
127
ae&mwpfcktwGuf xdkodkY oHk;pJGxm;jcif;wGif
taMumif;rvSpGm jzpf&onfhtcsufrSm standard HTML wGif ]]indent}} rygjcif; jzpf\/ xdkY aMumifh 'DZdkifemrsm;onf indent odkY text rsm; &ap&ef existing tags \ creative use (odkYr[kwf misuse)udk rvJG{uef tm;xm;&ayrnf/ Figure 7-33 wGif emrnfBuD; HTML cheats tcsKdU yg0ifaeonf/ Ä b,fbuf margin ESifh nmbuf margin ESpfckvHk;wGif indent wpfck xkwfay;ap&ef tag udk toH;k csjcif;? Ä Indented jzpfaeouJhodkY text udk display vkyfap&ef list items (
- - -
) wpfckudk toHk;csjcif;? Ä Indented jzpfaeouJhodkY text udk display vkyfap&ef terms rsm; rygapum definitions ( - - -
) wpfcu k kd toH;k csjcif;? Figure 7- 33 HTML text udk rSm,l&eftwGuf cheat oHk;rsKd;
128
WEB DESIGN
vufawG o Y ifcef;pmrsm;
þodkYaom tajctaersm;ESihf &Sdaeonfhwdkif margins ESpfzufvHk; odkYr[kwf b,fbuf margin wGif vufr0ufcefY&Sd automatic indent wpfckom &&Sdxm;onf/ First line ouf oufom indent rvkyfEdkifay/ okdYwnf;r[kwf indent \ yrmPudk specify rvkyfEdkifay/ ¤if;onf bummer wpfck\ obm0jzpfonf/ Style sheet onf additional control tcsKdUudk cGihfjyKonf/ odkYaomf taMumif;rvSpGmjzifh indenting function rsm;twGuf browser support onf xdka&;om;jcif;trIudk a&SUaemuf rnDapouJhodkY jzpfaeonf/ rdrdtaejzihf ydkrdk acwfrDqef;opfaom indenting ESifh text alignment rsm; tvdk&SdcJhygu table udk toHk;csjcif;u ydkí aumif;onf/ (tcef; 10 wGif Table rsm;taMumif; aqG;aEG;xm; onf/) tcsdKU 'DZdkifemrsm;onf text rsm;udk t&G,ftpm; vJGrSm;rIjzpfapEdkifaom 1-pixel transparent graphic rsm;udk oHk;onf/ (tqdkyg enf;y&d,m,ftaMumif;udk tcef; 17 wGif aqG; aEG;xm;onf/) Preventing Line Breaks
rdrdtaejzifh line of text wpfckudk vdkif;wpfvdkif;ay:rSyif xm;,lvdkonfqdkMuygpdkY/ (Window udk resized vkyfxm;onfhwdkif) xdkudpt ö wGuf oHk;&ef tag wpfck&Sdonf/ ]]no break}}tag (
Line break udk umuG,jf cif;
[lonf no break tag twGi;f vdik ;f wpfvikd ;f jzifh text rsm;udk &Sad eapvdrrfh nf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
129
Preformatted Text
NyD;cJhaom oifcef;pmrsm;wGifjrifawGUcJh&NyD;jzpfonhftwdkif; preformatted tag () onf text alignment tay: character wpfckcsif; control vkyfay;onf/ trSefyif rdrdonf Courier wGif text displayed xm;&Sd&rnf/
wGif text tm; blank character spaces udk OD;pm;ay;cJhonf/ Page ay:wGif wdusjywfom;pGmjzifh tjcm; elements rsm;udk align vkyf&ef xdk tag udk toH;k jyKEdik o f nf/ (tables toH;k csjcif; rjyKaomfjim;vnf; vky, f El ikd rf nf/) wdusaom alignment twGuf preformatted text udk Figure 7-35 wGif oHk;xm;onf/ Figure 7- 35
acgif;pOfESifh pmom;rsm; tv,fcspepf xm;&SdoGm;NyD; jzpfonf/
Putting It Together-Aligning Text
HTML wGifrMumcPqdkovdk particular effect wpfckudk,fpm;jyKap&ef enf;vrf;wpfckxuf ydkí xm;&Sdwwfonf/ Figure 7-36 wGif jyqdkxm;onfhtwdkif; title ESifh comment rsm;udk tv,frS cs,laom code ESpcf u k kd Oyrmtjzpf jrifawGUEdik o f nf/ usef code ESpcf rk mS vkyaf y;vdrfh
rnf r[kwfay/ tusKd;taMumif;udk avhvmEdkifonf/ Figure 7- 36
130
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tajzrsm; tvkyfvkyfonf/ Element
wpfcpk o D nf ALIGN attribute ESit hf wl tv,fus jzpfaeonf/
tvkyf rvkyyf g/
ALIGN onf attribute
tvkyfrvkyfyg/
wpfcjk zpfonf/ Tag wpfck r[kwaf y/
xm;ay;onf/ tv,foYkd rñTe;f qdx k m;ay/
tvkyfvkyfonf/
onf ¤if;wGif yg&cdS sut f m;vH;k udk tv,fcsay;xm;onf/
Some Special Characters
© uJhodkYaom common character tcsKdYonf ASCII character \ standard set wGif ryg0ifay/ (Letters, numbers ESifh basic symbols om yg0ifonf) web page wpfckay:wGif tqdkyg character rsm; &&Sdap&ef HTML document wGif ¤if;wdkY\ character entity name WEB DESIGN
vufawG o Y ifcef;pmrsm;
131
jzihfom ac:qdk&onf/ Character entity wpfckonf specific character wpfckudk cJGjcm; todtrSwfjyKonf/ String of text wpfck jzpfonf/ Character rsm;onf trnfjzifhjzpfap? ¤if;wdkY\ numeric value rsm;jzihfjzpfap cJGjcrf;owfrSwfí todtrSwfjyKapEdkifonf/ Figure 7- 37
py,f&, S f character trsm;pkonf name jzifh jzpfap number jzifh jzpfap ac:qx kd m;ay;Edik f onf/ Character twGJ vdu k w f Gif ae&mwusjzifh browser u cif;usi;f ay;onf/
Oyrmwpfco k nf &Si;f vif;oGm;aponf/ rdr\ d page ay:wGif copyright symbol wpfcu k kd jznfhoGif;,lvdkonf/ rdrd\ word processing program twGi;f tvkyv f yk cf ahJ om orm;½d;k us Mac keyboard command Option-g onf HTML page wpfckay:wGif vkyfray;ay/ rdrd taejzifh xdk symbol ay: xGufvmapvdkaom ae&mwGif character entity name & copy (odkYr[kwf numerical value & # 169) udk oHk;onf/ Figure 7- 38 HTML flle ay:wiG f character spaces trsK;d rsK;d &Sad e&ef browser rS roday/ od&Yk mwGif rdrd taejzifh non breaking space udk toH;k csjcif;jzifh
cufcJaom ae&mrsm;twGi;f xnfhoGif;ay;Edkifonf/ Extra character space rsm;udk browser rS HTML document wpfcw k iG f rnfoYkd ignored vkyfonfudk rSwfrdMuygvdrfhrnf/ Page wpfckodkY hard characters space (odkYr[kwf ¤if;wdkY\ string) wpfckudk xnfhoGif;&efvdkvm;ygu ]]non breaking space}} & nbsp wpfcktwGuf character entity udk toHk;csjcif;jzifh xnfhoGif;Edkifonf/ Table 7-1 list wGif character entity rsm;udk tcsKdU a,bk,susvSaom udpr ö sm;wGif oHk;xm;aMumif; awGU&rnf/ xdkpm&if;wGif r&Sdao;aom character rsm;onfvnf; &Sdaeyg ao;onf/ tjynfhtpHk od&Sdygu Webmonkey rS toHk;0ifvSaom Special Characters Quick Reference wGif Munfh½IEdkifonf/ (hotwired.lycos.com/webmonkey/reference/ special-characters/)
132
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Tool Tip Character Entities
xif&Sm;vlodrsm;vSaom authoring program oHk;ckwGif character entity rsm; rnfodkY xnfhoGif;,lonfudk avhvmEdkifonf/ DREAMWEAVER 3
Drop dawn menu \ Object palette rS Character udk yxrqH;k a&G;cs,yf g/ GOLIVE 4
Special menu atmuf&dS Web Database rSwpfqifh character tvH;k pHu k kd access vkyx f m;ay;onf/ Character wpfcu k kd oH;k &ef ½d;k &Si;f pGmyif vdt k yfonft h &mudk a&G;cs,Nf y;D document twGi;f vdt k yfonfh ae&modYk drag vkyu f m qJGcsxm;,l&onf/
FRONTPAGE 2000
rdr\ d Page ay:rS ae&mwpfcq k o D Ykd drag vkyf,lEdkifaom common character rsm;\ palette wpfckjzpfonf/
a&G;cs,faepOftwGif; twGi;f ü ¤if;ESihf ywfouforQ tcsuftvufrsm; ydk&&SdEdkifonf/ inspector
rdrx d nfo h Gi;f vdak om character wpfcu k kd insertion point csay;yg/ Insert → Symbol odYk oGm;í rdrt d vd&k adS om character udk click vkyu f m xnfo h iG ;f ,lEikd o f nf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
133
Table 7-1 Common Special Characters and Their Character Entities. Character Description
Name
Number
© ® ™ £ ¥
Character space (nonbreaking space) Copyright Registered trademark Trademark Pound Yen
© ® (none) £ ¥
© ® £ ¥
}}
Left curly quotes
(none)
}} <
Right curly quotes Greater-than symbol; Left bracket (useful for displaying tags on a web page) Less-than symbol; right bracket (useful for displaying tags on a web page)
(none) (none)
(none)
>
HTML Review-Text Formatting Tags
þoifcef;pmwGif azmfjycJhaom tag rsm;tm;vHk;twGuf summary: Tag and Attributes
Function
Bold text
Lengthy quotation
Line break
Centers elements on the page
Definition item (in a definition list)
Division (used for applying styles)
ALIGN = left/right/center
Horizontal alignment
Definition list
Term item (in a definition list)
<EM>
Emphasized (italic) text
134
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Tag and Attributes SIZE = 1 to 7
Function Used attributes to specify size, font face, and color Text size
(or relative value) FACE = ]]name}}
Typeface for the enclosed text
COLOR = ]]number}} or ]]name}}
Color of the enclosed text
Heading Level (from 1 to 6) Horizontal alignment
Italic text
List item (in an ordered or unordered list)
]]No break}}; prevents line breaks in the en-closed text
Ordered (numbered) list
Paragraph
ALIGN = left/ right/ center
Horizontal alignment
Preformatted text
<STRIKE>
Strikethrough text
<STRONG>
Strong (bold) text
<SUB>
Subscript
<SUP>
Superscript
Teletype (or typewriter text)
Underlined text
Unordered (bulleted ) list
WEB DESIGN
vufawG o Y ifcef;pmrsm;
135
136
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tcef; 8
Graph Element
rsm; xnfo h iG ;f jcif;
Web page wpfckwGif ½kyfyHkrsm;ryg pmcsnf;oufouf jzpfaeygu pdwf0ifpm;zG,f&m jzpfvmEdkif p&mtaMumif; r&Sday/ Web rsm;odkY 0ifa&muf&SmazG Munfh½IavhvmrI acwfpm;vmjcif;rSmvnf; page ay:wGif "mwfyHkrsm;? ½kyfyHkrsm;wdkYjzifh wefqmqifxm;jcif;aMumifh[k qdkEdkifonf/ odom
xif&Sm;ap&eftwGufjzpfap? tao;pdwfazmfjyvdkonfhtcgwGifjzpfap yHk&dyfrsm;udk toHk;csMu& onf/ "mwfyHkrsm;? icon rsm;? button rsm;twGuf graphic jzifh odomxif&Sm;ap&eftvdkYiSm toHk;csjcif;oufoufr[kwfbJ spacing device rsm;tjzpfvnf; toHk;csMuouJhodkY box rsm;\ axmifhrsm;wGifvnf; visual effect rsm; zefwD;&eftwGufvnf; toHk;0ifapygvdrfhrnf/ (aemufydkif; Web Design Technique wGif tao;pdwf wifjyay;ygrnf/) ,ckwifjyrnfh tcef;u@wGif page wpfcük graphic rsm; xnfo h iG ;f &ef tag rsm; toH;k csyHk tao;pdwrf sm; yg0ifrnfjzpf\/ Background image rsm;taejzifv h nf;aumif;? text \flow rsm;wGifvnf;aumif; ESpfrsdK;vHk; yg0ifygonf/ Adding Inline Images
Web ay:&Sd graphic trsm;pkonf inline image yHkpH HTML content \ flow \ wpfpdwf wpfa'otjzpf &Sdaprnfh graphic yHkpHwdkYjzifh wefqmqifxm;Muonf/ ¤if;wdkUonf illustration rsm;? banner headline rsm;? navigational toolbar rsm;? advertisement rsm; ponfjzifh tm;vHk;tusHK;0ifaeygonf/ wpfenf;tm;jzifh background tiling image wpfck r[kwfygu inline image wpfckom jzpfonf/ Inline image tm;vHk;onf tag udk toHk;csí HTML document wGif csxm;jcif;jzpf\/ Browser twGif; display vkyfay;&eftvdkYiSm graphic rsm;onf GIF odkYr[kwf JPEG file format jzpfaeap&rnf/ xdYktjyif browser jzifh recognized jzpfaeap&eftvdYkimS oufqi kd &f m aemufqufrsm;jzpfonfh gif ESifh .jpg (odkUr[kwf .jpeg) wdkYudk rSefuefpGm trnfay;xm;aom file rsm; jzpfaeapygrnf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
137
Graphic \ placement ESifh appearance rsm;tay: xdef;csKyf,lonfh tag rsm; taetxm;udk avhvmMunfhMupdkY/ The Image Tag Adds an image to the page
Browser tm; graphic wpfck ae&mrSew f iG f csxm;ay;ap&eftwGuf tajccH tag wpfck jzpfonfh image rsm;udk usifvnfpGm pDrHxm;&SdEdkif&ef toHk;csapEdkifrnfh toHk;0ifvSaom attribute awmfawmfrsm;rsm; &Sdonf/ ¤if;wdkUtxJrS SRC (source \ twdkaumuf) udk azmfusL;ay;rnfh attribute wpfckom vkdtyfygonf/ taMumif;rSm rnfonfh graphic tm; toHk;jyKrnfudk browser tm; ajymjy&efom vdkaomaMumifhjzpfonf/ SRC attribute \ value rSm graphic \URL omjzpfonf/ Graphic file onf HTML file taejzifh directory wpfckwnf;wGif &SdaecJhygu ¤if;\ filename udkom toHk;jyKEdkifonf/ Graphic rsm;tm; ñTefjyay;onfh side bar onf graphic rsm;udk ñTef;qdk&mü ydkí tao;pdwfusvSonf/ Graphic rsm;onf text wGif&Sd baseline ESifhtwl atmufydkif;wGif default jzifh lined up vkyfí jyoay;xm;onf/ (Figure 8-1) ALIGN attribute ESifhtwl tao;pdwf azmfjyxm; jcif; r&Sdonfhtcg graphic wpfck\ab;wGif text onf tvdktavsmuf wrap vkyfvdrfhrnf
r[kwfay/ Figure 8-1
default jzifh tag onf pmaMumif;\ tajcrsO;f vdik ;f twdik ;f ? *&yfzpf\ atmufajcudk
csed n f §x d m;ay;onf/ xdaYk emuf *&yfzpf 0ef;usiaf e&mudk &Si;f xm;ay;onf/
138
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Tool Tips
Adding images
emrnfausmfMum; vlBudKufrsm;vSaom authoring program rsm;teufrS program oH;k rsdK; jzifh web page wpfckwGif image rsm; rnfodkUjznfhoGif;,lonfudk atmufygtwdkif; jrif awGUEdkifonf/ DREAMWEAVER 3
1. Common wGif yg&adS om pm&if;rS image udk aumuf,l drag vkyíf document ay: odYk
ae&mcsxm;ay;onf/ 2. Dialog box wpfco k nf rnfonfh *&yfzpfukd toH;k jyKrnf[ak r;&ef yGiv hf monf/ GOLIVE 4 Image wpfcu k kd xnf&h ef tar;vu©Pmjyxm;onfh image icon udk Palette rS drag vky, f Nl y;D document wGif ae&mcsxm;vdu k o f nf/
xdu k o Jh yYkd if BuKd uEf pS o f uf&m file wpfck rdrd desktop ay:rS wdu k ½f u kd , f Nl y;D page ay:oYkd csxm;,lEikd fonf/ FRONTPAGE 2000 Image wpfcu k kd xnfo h Gi;f &ef Insert Image [laom icon udk click vkyfvkduf&onf/ Window
wpfcyk Giv hf mNy;D rdrt d wGuf a&G;cs,&f ef local file system rS browser vkyu f m a&G;cs,faumuf,lEdkifonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
139
Alternative Text ALT = "text" Alternative text
onf browser wpfckwGif graphic udk display rvkyfEdkifaponfhtcgwGif wpfcPtwGi;f rdrd image \twdck sKyf description udk yHyh ;kd ay;&eftwGuf jyKvkyaf y;Edik yf gonf/ vlawmfawmfrsm;rsm; aqmif&Gufavh&SdMuaom ydkíjrefqefpGm download jyKvkyfjcif;twGuf browser wGif graphic rsm;udk toHk;jyKolrS ydwfxm;vdkonfhtcgwGifjzpfap? image rsm; aysmufqHk;aeonfhtcgwGif generic graphic icon wGif &SdaevdkonfhtcgwGifjzpfap alternative text udk qufvuf xGufay:vmapygvdrfhrnf/ Non graphical browser rsm;twGuf (Oyrm-Lynx ) alternative text onf graphic \ae&mwGif bracket rsm;jzifh ay:aeapvdrrhf nf/ rMumcPqdkovdk site \section rsm;odkY graphical button jzifh csdwfquf,lxm;aom home page rsm;wGif alternative text ryg0ifaMumif; awGUjrifaeMu&ygonf/ Graphic rsm; r&EkdifvQif tqdkyg home page rsm; tqHk;owfoGm;rnfom jzpf\/ (Figure 8-2) alternative text udk xnfo h iG ;f &ef tcsed yf , kd jl cif;jzifh taumif;qH;k tajctaewpf&yf jzpfvmEdik yf gonf/ ALT attribute
Figure 8-2
*&yfzpfray:vmaomtcg oufqdkif&m pmvHk;rsm;ay:vmayonf/
oufqikd af om *&yfzpf [kwrf [kwu f kd tqdyk g pmvH;k rsm;jzifh jrifawG Y Mu&onf/
140
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tu,fí xdo k aYkd om oufqikd &f m pmvH;k rsm; razmfjyEdkifonfhoabmonf tqdyk g page wGif *&yfzpfrazmfjyawmh[k rSwf,l&onf/
Image Size WIDTH - number Image width in pixels
WIDTH ESifh HEIGHT [laom attribute rsm;onf graphic \ t&G,ftpm;yrmPudk pixel twGuf nTef;qdkazmfjyay;onf/ odkY&mwGif tqdkyg attribute rsm;onf web design jyK vkyfolrsm;\ r&Sdrjzpf rdwfaqG jzpfygonf/ taMumif;rSm aemufqHk;ay:xGufvmaom page
\yHkpHudk ydkrdk jrefqefrI jyKay;EdkifaomaMumifh jzpf\/ Browser rS graphic rsm;\ t&G,t f pm;udk odvmaomtcg graphic rsm;udk ¤if;ud, k w f ikd f qGJcsum page ay:wGif cif;usif;,l&if; tvkyf½IyfvmEdkifonf/ Width ESifh height value r&Sd aom page onf yxrOD;pGm page udkawmh cif;ay;yg\/ Graphic wpfckcsif;twGuf tcsdef,l um jyifqifay;ae&onf/ Graphic wpfckpDtwGuf rnfrQ ae&mvdktyfrnfudk browser tm; ajymay;jcif;onf final page wpfckudk puúefYydkif;rQom tcsdef,lojzifh ydkíjrefqefapEdkif\/ rdrdonf web authoring tool wpfckudk toHk;csaecJhvQif Width ESifh Height wdkY\ value rsm;onf graphic wpfckudk ae&mcsxm;&mwGif tvdktavsmuf ae&mcsxm;ay;apyg vdrfhrnf/ HTML editor ½dk;½dk;av;wpfckudk toHk;cscJhygu vufjzifh a&;jznfhay;&aom yHkpHudk jyefvnfod&Sd&ef vdktyfygonf/ owdjyK&ef ta&;BuD;qHk;tcsufrSm rdrd image \ t&G,ftpm;trSefESifh rwlaom pixel value jzpfcJhvQif browser onf rdrd\ specified value ESifh udkufnDap&ef rdrd\ image udk resize vkyaf y;ygvdrr hf nf/ (Figure-8-3) xdYk aMumifh yHt k aetxm; &GUJ oGm;rnfvm;? 0g;wm;wm; jzpfaernfvm;[laom tajctaeudk wGufqxm;&ygrnf/ odYk twGuf xdo k Ykd aom 0g;wm;wm; &GUJ wJw h hJ rjzpfvmap&eftvdYk imS image \ t&G,t f pm; dimension ? width ESifh height value rsm;udk wdwdusus udkufnDrI&Sdr&Sd yxrOD;pGm ppfaq; Munfh½Ioifhonf/ Figure 8-3
tu,fí twdkif;twmrsm;onf wdusrrI &So d nft h cg browser onf width value ESihf height value wdEYk iS hf udu k n f &D ef jyefcsed af y;rnfukd owdxm;&ygvdrhfrnf/
Width value ESihf height values wdo Yk nf page ay:wGif xda&mufpGm cif;usi;f jyoEdik f a&;twGuf browser udk ulnaD y;onf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
141
158
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tykid ;f ok;H
Web Graphic
rsm;zefw;D ,ljcif;
*&yfzpf'ZD idk ef mwpfO;D jzpfvmcsed w f iG f web design qdo k nfrmS *&yfzpfvyk if ef;rsm;\ wpdww f a'otaejzifo h m jzpfaeygvrd rhf nf/ odaYk omf pwifavhvmpOfumvtwGi;f web odYk vTaJ jymif;ay;a&;twGuf toifah vsmq f ;kH ? tqifajyqH;k vkyif ef;pOfEiS hf pwkid u f kd yxrOD;pGm avhvmcH,&l rnfjzpfonf/ tydik ;f 3 wGif web designer wpfa,muf\ vkycf surf sm;tm;vH;k xnfx h m;aom tdww f pfv;kH rS format rsm;ESihf enf;y&d,m,f tm;vH;k udk wifjyaqG;aEG;xm;ygonf/ Adobe Photoshop 5.5, Macromedia Firework 3 ESihf JASC Paint Shop Pro
ponfh graphic program rsm;twGi;f web graphic rsm; zefw;D yHu k kd wpfqifch si;f o½kyjf yESit hf wl oufqidk &f m tcef;u@rsm;wGif azmfjyay;xm;onf/ *&yfzpfrsm; zefw;D &ef Ykd oH;k jyK&rnfukd tajccHtm;jzifh rdrw d iG &f adS eonfh image-editing program udk rnfot oabmayguEf idk af prnfh erlemyHpk rH sm;udk azmfjyay;xm;onf/ rdrt d aejzifh *&yfzpfwpfcu k kd zefw;D rItopfwpfc&k v dS mwkid ;f tcsed , f u l m toH;k jyKrnfh *&yfzpfaqmhz0f rJ sm;taMumif; a&;om;xm;onfh toH;k cs vrf;nTepf mtkyw f pfcck u k kd taotcsm avhvmoifyh gonf/ þpmtkyo f nfvnf; tqdyk gtcsurf sm; tygt0if *&yfzpfrsm;udk rnforYkd nfykH jyKvyk Ef idk af Mumif;udo k m rSe;f qay;xm;ygonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
245
246
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tcef; 13
All About Web Graphics 0ufb*f &yfzpfwidk ;f onf resolution edrehf rd jhf zifh toH;k jyKavh &So d nf/ taMumif;rSm GIF odYkr[kwf JPEG format jyKvkyf&mwGif *&yfzpftwGuf wufvmrnfh bit yrmPudk acRwmrI jyKvkdaom aMumifhjzpf\/ File Formats
0ufbw f pfcw k iG f *&yfzpfqidk &f m file format rsm;twGuf ud, k yf idk t f oH;k csp&m tu©&m oauFw rsm; &Sad eonf/ tifwmeufay:wGif wifqufay;onfh *&yfzpfqidk &f m format rsm;onf uGe&f uf wpfckay:wGif platform wpfckrSwpfckokdY tvG,fwul xnhfoGif;í &Muonf/ 0ufbfay:wGif rdrdwkdY jrifawGUMu&oavmuf tukefeD;yg;rSm format wpfck? ESpfckcefY &Sd aewwfonf/ Oyrm GIF (*spfzf) ESifh JPEG (a*syuf) wkdYudk trsm;qHk; awGUae&onf/ The Ubiquitous GIF
GIF (Graphic Interchange Format) file onf tifwmeuftwGuf tESpfoufqHk;yHkpH jzpfae ouhJokdY orm;½kd;us oHk;avhoHk;x&SdaomyHkpH[k qkd&rnf/ GIF file rsm;onf compressed file rsm;jzpfMuonf/ trsm;qHk; 8 bit color information txd yg&Sdwwfonf/ þae&mwGif compressed [laom toH;k tEIe;f rSm GIF file wpfct k jzpf rdr\ d *&yfzpfrsm;udk ajymif;vJjyKjyif xm;onf[k qkdvdkjcif; jzpf\/ Color information rsm;udk twwfEkdifqHk; i,fonfxuf i,fap&ef zdodyfn§pf,lxm;ay;onfh vkyfief;pOfwpf&yfjzifh aqmif&Gufay;onf/ 8 bit color [lonfh t"dymÜ ,frmS pixel color 256 rsKd; trsm;qH;k yg0ifxm;onfh taetxm;udk qkv d o dk nf/
okdY&mwGif wu,fwrf; toHk;jyK&mü 256 rsKd; toHk;jyKjcif; r[kwfay/ Figure 13-1 wGif azmfjyxm;ouhJokdY vdk*dkrsm;? yHkazmfumwGef;rsm;? tkdifuGefrsm;ESifh wpfaMumif;qGJ yHrk sm; pDpOfxm;onft h wkid ;f wpfa&mifjc,fy&kH yd rf sm;udk GIF format wGif trsm;qH;k jrifawGU&ayvdrfhrnf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
247
Figure 13-1
onf wpfa&mifwnf;jc,fyHkrsm; toH;k jyKí jywfom;aom vkdif;rsm;jzifh yHkazmfxm;jcifaMumifh taumif;qHk; yHk&dyfrsm;jzpfonf/ GIF file format
GIFs rsm;onf tjcm;tm;omcsur f sm; &Sad eygao;onf/ ESpx f yfy&kH yd rf sm;udk ta&mifcjJG cm;í vnf; zefwD;,lEkdifonf/ xkdYtwl ½kd;&Sif;aom animation rsm;udkvnf; zefwD;Ekdif\/ rsm;aom tm;jzifh aMumfjimtjzpftoHk;jyKaom vIyf&Sm;½kyfyHkrsm;onf animated GIFs rsm; jzpfonf/ The Photogenic JPEG
,aeY0ufbfqkdufrsm;wGif 'kwd,ay:jyLvmtjzpfqHk; *&yfzpfqkdif&m format wpfckrSm JPEG format yif jzpfonf/ JPEGs rsm;onf ta&mifaygif; oef;csD&SdaeEkdifaom 24 bit color image rsm;jzpfygonf/ wjznf;jznf; rodrom ta&mifyrmPajymif;vJrIudk vkdvm;jcif;ESifh jym;0yfaeaom ta&mifrsK;d jzifh rvkyu f ikd v f jdk cif;ponfh pDrcH surf sK;d udk zdoyd af y;rIwpfcu k kd toH;k jyK xm;onf/ tqkdyg pDrHcsufudk compression scheme [k ac:qkdMu\/ JPEG \ tqkdyg pDrHcsufESifh ta&mifjznhfpGrf;&nfwkdYudk toHk;csvkdufjcif;jzifh Figure 13.2 wGif jyqkdxm;onfh twkdif; "mwfyHkuhJokdYaom image rsm; jzpfvma&;twGuf a&G;cs,ftoHk;csp&m format jzpfvm &onf/ þae&mwGif compression scheme onf taumif;qH;k zdodyfrIudk aqmif&Guf&if;jzifh image \ tcsKdUaom tao;pdwfazmfjyrIrsm; aysmufysufoGm;p&mtaMumif;&Sdí Lossy [k owfrw S Mf uao;onf/ rnfoYdkyifjzpfap JPEGs onf file yrmPtao;i,fq;kH taetxm;jzifh taumif;qHk; image rsm;udk zefwD;ay;aeqJjzpfonf/ JPEGs rsm; zefwD;yHk tao;pdwfudk tcef; 15 wGif qufvufwifjyay;ygrnf/
248
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 13-2
ta&mifyrmP rodrom ajymif;vJrIrsm;udk "mwfyHkrsm;? odkYr[kwf yef;csDum;rsm;wGif yg0ifouhJokdY taumif;qHk; taetxm;jzifh JPEG file format rsm;u vkyfaqmifay;onf/
,aeYacwf web graphic tool rsm;onf rwlnDaom file format rsm;udk wpfckcsif; jyefvnfMunh½f I ppfaq;Ekid yf gvdrrfh nf/ Figure 13-3 wGif azmfjyxm;onft h wkid ;f rdr\ d ½kyyf rkH sm; udk taumif;qHk;jzpfap&eftwGuf format a&G;cs,frIudk tydkif;vkdufyif jyefí Munhf½IEkdifonf/ Figure 13-3
ESihf Fireworks 3 onf rwlnaD om file format rsm;twGuf &&SNd y;D aom file t&G,t f pm;rsm;ESihf yH½k yd f t&nftaoG;rsm;udk jyefvnfppfaq; Munhf½IEdkifygonf/ Photoshop 5.5
Adobe Photoshop 5.5
aemufq;kH tqifh file rsm;udk &SmazG rMunh½f rI D rdr\ d yH½k yk rf sm;udk tao;pdwf jc,freI ;f jcif;ESihf csed w f G,jf cif;twGuf Select file udk oGm;um save vkyfxm;&onf/ Macromedia Fireworks 3 Document Window twGi;f &Sd nmbuftay:rS "4-up" udk
Munh½f I &ef tcGit hf vrf;rsm; Firework 3 wGif &&SEd idk o f nf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
249
Choosing the Best File format
tifwmeufrS download vkyf,l&mwGif jrefqefpGm &,lEkdifap&ef 0ufbf*&yfzpfrsm;udk jyifqif&mwGif f &l rnfjzpf\/ rSeu f efaom file format udk a&G;cs,, yH k & d y f t aetxm;
toH;k jyK format
tusKd ; taMumif ;
ta&mifjym;yHkpHjzifh *&yfzpfrsm;
GIF
wpfa&mifwnf;jc,f ta&mifjym;yHkpHjzifh vSvSyy jzpf aeapí ydkrdk oyf&yfpGm zdodyfrIjyKvkyfay;&if; tqifh jrifh image rsm;udk file t&G,ftpm; ao;ao;jzifh &&SdEkdifygvdrhfrnf/
"mwfyHkrsm; odkYr[kwf ta&mif jc,frIef;rI trsKd;rsKd;yg0ifonfh a&aq; yef;csDum;rsm;
JPEG
a&maESmaeaom ta&mifrsm;yg0ifonfh image rsm; udk JPEG jzifh taumif;qHk;jzpfap&ef zdodyfay;Ekdif onf/ yHkwlum;csyfrsm;udk ta&mifaygif;ajrmufjrm; pGmjzifh zefqif;ay;Ekdifonf/ taumif;qHk; ta&mif taoG;pHk image rsm; jzpfvifhupm; file t&G,t f pm; ao;i,fpGm zefwD;,lEkdifrnf/
GIF
Image wpfckvHk;BuD;udk JPEG pression rsKd;jzifh zdodyfNyD; "mwfyHkobm0qefqef razmfusL;vkdbJ obm0ESpfrsKd;ygapNyD; file t&G,ftpm;udk OD;pm;ay; onfh udpö trsm;pkwGif toHk;jyKEkdifrnf/
GIF
tvGefao;i,faom graphic image rsm;ESifh txl; oifah vsmo f nf/ GIF okYd r[kwf JPEG ESprf sKd;vH;k prf; MunhfMunhfí file t&G,ftpm;yrmPESifh t&nf taoG;rsm; csichf sed u f m taumif;qH;k udk a&G;cs,f toH;k jyKEkdifonf/
ta&mifjym;yHkpHESifh "mwfyHkobm0rsm;a&mpyfxm;onfh aMumfjim qkdif;bkwfrsm; wHqdyfacgif;t&G,ftpm; odkYr[kwf tdkifuGeft&G,ftpm; "mwfyHkrsm;
odkYr[kwf JPEG
xkd;azmufjrifEdkifaomyHkrsm;
GIF
xkd;azmufjrifEkdifaom ESpfxyfyHk&dyfrsm;twGuf file format wpfckom aqmif&GufEkdifonf/
vIyf&Sm;
GIF
Animation
animation
rsm;
yHk&dyfrsm;udkvnf; pGrf;aqmifEkdifygvdrfhrnf/
GIF
GIF
wpfckomvQif
Image Resolution
GIFs rsm;ESifh JPEGs rsm; ESpfckvHk;onf pixel-based rsm;jzpfonf okdYr[kwf bitmapped image [kvnf; owfrw S Ef idk o f nf/ yH&k yd u f kd zoom jzihf csUJ ,lMunhv f u dk af omtcg tifrwefao; i,faom av;axmifhuGufav;rsm;jzpfí Pixel tajrmuftjrm;jzifh mosaic ozG,f jyKvkyfxm; onhf ½kyfyHktm; jrifawGUEdkifygonf/ Figure 13-4 wGif azmfjyxm;ouhJokdY ocsFmyHkaoenf;rsm;
tay: tajccHxm;onhf yHkpHtae txm;jzifh vkid ;f acsmrsm;? uGuv f yfjznhrf rI sm; jyKvkyaf qmif&u G f xm;aom Aufwm*&yfzpfrsm; cGJcGJjcm;jcm; jrifawGU&rnf/ 250
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 13-4
Bitmap Image rsm;onf mosaic wpfco k zG,f
Vector Image rsm;onf ocsmF nDrQjcif;rsm;ukd tok;H ûy azmfjyxm;jcif; jzpfonf
ta&miftrsK;d rsK;d yg&adS om tuGuw f pfcpk jD zifh ûyvkyfxm;onf
TIFFs rsm;uho J Ydk yHEk ydS 'f ZD idk ;f wGif Pixel-based image rsm;udk toH;k csxm;chv J Qif wpfvufr cGifwpfcktwGif; pixel ta&twGuf rnfrQyg&Sdonfudk azmfjyonfh resolution [lonfh
a0g[m&udk tuRr;f 0ifod&SdNyD; jzpfaeygvdrrhf nf/ okYd twGuf yHkESdyfxkwf&mü a,bk,stm;jzifh 300 dpi (dots per inch) [lonfh resolution udk toHk;csMuonf/ Goodbye inches, Hello Pixels
0ufbfay:wGif image rsm;udk twwfEkdifqHk; resolution edrfhedrhfudk zefwD;,l&ygvdrfhrnf/ 72 dpi onf de facto standard jzpfvmonf/ okdYaomf wu,fwrf;rSmrl vufrtaetxm;jzifh wkdif;wm,lqMujcif;jzpf\/ odkYtwGuf web avmuwGif vufrrsm;? wpfvufrwGif&Sdaom tpufrsm; ta&twGufwkdYjzifh toHk;jyKavh&Sdaomfvnf; ¤if;tpm; pixel [laom toHk;tEIef; jzifhom ajymqkdvmMu&jyefonf/ Web page wpfckay:wGif *&yfzpfrsm;udk usif;rIESifhtwl image map wpfcrk w S pfco k Ykd
wifjyaomtcg armfeDwm\ resolution cif; &Sv d maprnfh pixel rsm;jzifh toHk;jyKolrsm;u
ajymif;vJ,lMu&onf/ Measuring Resolution
Screen ay:wGif
0ufbf*&yfzpfrsm; tjynfhtpHk vHk;vHk;vsm;vsm; wnf&SdaeEkdif&ef twGuf ¤if;wkdY\ resolution twkdif;twm pixels per inches (ppi) rSefuefrIvkdtyfonf/ dpi (dots per inch) [lonfh twkdif;twmonf yHkESdyfvkyfief;twGufom oHk;onf/ vufawGUtm;jzifh dpi ESifh ppi a0g[m&rsm;udk tajymif;tvJ jyKí toHk;jyKxm;Muonf/ a,bk,stm;jzifh resolution udk dpi jzifhvnf; nTef;qkd vufcHEkdifonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
251
72 pixels square &Sad om *&yfzpfwpfcu k kd Figure 13-5 twkdif; zefwD;,lvdkufonf/ rdr\ d image editing y½k*d &rf wpfct k wGi;f 72 dpi jzpfap&ef resolution ukd csed w f , G , f cl pJh Ofu rdrdtaejzifh armfeDwmwGif 1 vufr ywfvnf&Sdaom *&yfzpftjzpf arQmfrSef;xm;&Sd&onf/ Figure 13-5
Image wpfc\ k t&G,t f pm;onf armfew D m resolution ay:
rlwnfaeonf/ D mwpfcak y:okYd ajymif;a&TU wifjyvm okYdaomf rdrad rmfew D mxuf resolution ydjk rifah om armfew onfhtcg rnfokdY&Sdrnfudk prf;ppfMunhf&ayvdrfhrnf/ ½kww f &ufqo dk vkd rdr\ d wpfvufrywfvnf *&yfzpfonf oH;k rwfywfvnf t&G,t f pm; xufyif avsmeh nf;oGm;awmh\/ taMumif;rSm 72 pixels t&nftaoG;wlonfyif wpfvufrwGif 100 pixels cefYp& D adS om resolution wpfco k Ydk mapping one-to-one ac: wpfcrk w S pfct k ay:okYd cif;vmonhfyHkpHrsKd; cif;vkdufaomaMumifh jzpf\/ xkdYtaMumif;jycsufaMumifh 0ufbfay:wGif inches [lonfhtoHk;tEIef;udk ajymqkd toHk;jyKjcif;twGuf t&mrxif jzpfoGm;apawmhonf/ okYdtwGuf dpi [laom todtjrifrsm;udk tajccHoabmt& window tjyifbufoYdk a&mufomG ; &ayonf/ xkdYaemuf 0ufbftwGuf 300 dpi uhJodkYaom higher resolution wpfck zefwD;csuf odkYr[kwf scan jyKvkyfcsufrsm;wGifvnf; xifxif&Sm;&Sm; Oyrmxm; jrifawGUEkdifapygvdrfhrnf/ Pixel across jzifhom toHk;csvmMuonf/ orm;½kd;us image rsm;twGuf axmifaygif;rsm;pGm &Sdaeonf/ 600 pixels wide uhJodkYaom ao;i,fonhf browser window rsm;wGif ydkíyif rvkdtyfawmhay/ Figure 13-6 wGif jrifawGU&ouhJokdY browser window wGif cGifusus jyo ay;ygvdrhfrnf/ Working in Low Resolution
onf rqDrqkdifaomoabmrsm; oufa&mufoGm;p&m jzpfwwfaomfjim;vnf; vlwidk ;f avmufe;D eD;onf 0ufb*f &yfzpfrsm;udk 72 dpi jzifh csed w f , G f zefw;D ,lMuonf/ taMumif; Resolution
252
WEB DESIGN
vufawG o Y ifcef;pmrsm;
rSm ydkifeufowfrSwfxm;onfhae&mxJü pixel rsm; ta&twGuf uGufwd&&SdEkdifaomaMumifh jzpf\/ xkdokdY low resolution a&G;cs,frIESifh ywfoufí tm;enf;csufwpfckrSm image \ t&nfaoG; tenf;i,favsmhusoGm;apjcif; jzpfonf/ ay;xm;aom ae&mwpfckwGif image information tajrmuftjrm; rjznhfoGif;EkdifaomaMumifh[k qkd&rnf/ Image wGif tzktxpf tpuftajymufav;rsm; odom xif&mS ;ap&ef jzpfomG ;ap\/ okYdaomf 0ufb\ f obm0onfyif xdkrQavmuf&SdaeMuao;onf/ Figure 13-6
okaYd omf 300 dpi udk ,lvu dk yf g? wpfyidk ;f avmuf jrifawG&U Ny;D browser window tjyif\ jrifawGEU idk af om ae&mrsm;okYd usa&mufoGm;vdrrhf nf/
72 dpi \ browser window wGif
3 vufrywfvnf image av;ukd cGiu f sus vSvyS y jrifawG&U onf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
253
File Size Matters
Web page wpfckudk uGef&ufwpfckay:wGif jzefYa0 xkwfjyef,ljcif; jzpfaomaMumifh vufcH&,l rnfholxHokdY ao;i,faom packet av;toGifjzifh a&muf&SdoGm;ap&ef tvkdYiSm zip vkyfxm;&ef
vkt d yfaeygvdrrhf nf/ tu,fíom yrmPBuD;BuD;&,lvv dk Qif tcsed Mf umMum,lNyD;rSom vufcEH idk f rnfudk tvkdvkdoabmaygufNyD; jzpfaeMuonf/ *&yfzpfyrmPBuD;av download vkyf,l& onhftcsdef Mumav jzpfonf/ þodkYjzihfyif 0ufbfay:wGif *&yfzpfwkdYonf wpfbufrScspfp&mtaetxm; &SdaeouhJokdY wpfbufrSvnf; pdwfysufp&m jzpf&onf/ pmoufoufjzifh zefwD;xm;aom page wpfckxuf *&yfzpfygaom web page wpfcku ydkípdwf0ifpm;p&m aumif;aponf/ tifwmeuf\ t"du tpdwt f ykid ;f jzpfaom 0ufbaf y:wGif trsm; pdw0f ifpm;p&mjzpfum ay:jyLvmjzpfvma&; MudK;yrf; csufwGif *&yfzpfrsm;jzifh zefqif;EkdifrI t&nftcsif;rSm taMumif;wpf&yftjzpf oD;jcm; wnf&Sd aeonf/ rdrdwkdYjrifawGU&orQudk pdwf&SnfpGm apmifhpm;vufcH,lEkdifap&ef qE´rsm;udkvnf; wpfbufrS EdI;qGay;Ekdifonf/ toHk;jyKoltaejzifh a&G;cs,fp&m oHk;ck&Sdaeonf/ pdwf&Snf&SnfapmifhMunhfjcif;? *&yfzpf download function udkydwfí pmrsm;udkom zwf,ljcif;? okdYr[kwf qufvuf apmifhpm;jcif; rjyKawmhaom 'back' cvkwfudkESdyfum jyefxGufoGm;jcif;wkdYyif jzpf\/ DSL ESifh cable modems rsm;uhJodkYaom high-bandwidth connection rsm;twGuf taMumif;r[kwfaomfvnf; 28.8 odkYr[kwf 56 kbps dial-up modem connection rsm; jzpfygu download time onf xnhfoGif;pOf;pm;p&m jzpfaewwfonf/ rnfodkYyifjzpfap Web design vkyfief;\ taumif;qHk; pnf;rsOf;wpfckrSm download time udk enf;EkdiforQ enf;ygap [líyifjzpfonf/ How Long Does It Take?
0ufbfay:rS *&yfzpfwpfckudk download vkyf,l&ef rnfrQMumrnfudk twdtus ajymqkd&ef cufcJaeygvdrfhrnf/ taMumif;tcsufrsm;tay: rlwnfaewwfonf/ toHk;jyKol\ tifwmeuf qufoG,frIpepf tjrefEIef;? rdrduGefysLwm\ tjrefEIef;? rdrdtoHk;jyKaom web server wGif wnf&SdvIyf&Sm;aeaom yrmPESifh tifwmeufvrf;aMumif;ay:&Sd tajctaet&yf&yf ponfjzifh taMumif;tcsufrsm;udk qkdvkdonf/ Standard modem connection wpfckay:wGif *&yfzpfwpfcktwGuf wpfpuúefYvQif Kilobyte rnfrQ ,lrnfudk taxGaxGpnf;rsOf; wpf&yfjzifh xm;&Sdwwfonf/ 30 K &Sdaom *&yfzpfwpfcktwGuf download vkyf,l&mwGif puúefY 30 Mumjrifhwwfonf/ odkYtwGuf 'DZkdifemrsm;tpkjzifh 1 sec/K EIef;xm;udk tpOfowdjyK wnfaqmuf,lwwfMu&rnf/ 254
WEB DESIGN
vufawG o Y ifcef;pmrsm;
odYk ygí client jzpfonfh aumfyakd &;&Si;f awmfawmfrsm;rsm;onf Kilobyte limit (K-limit) wpfckudk csdefwG,fxm;&Sdwwfonf/ Page wpfckwGif trsm;qHk;&Sdae&rnfh pkpkaygif; files rsm;\ yrmPyifjzpf\/ wpfckaom corporate site wpfckqkdygu HTML file ESihf *&yfzpftm;vHk; aygif;pyfxm;NyD; tygt0if 15 K/page [k uefYowfay;xm;chJonf/ xkdYtwl site awmfawmf rsm;rsm;\ aMumfjimu@twGuf 6 K odkYr[kwf 7 K xuf rrsm;ap&ef uefYowfxm;aMumif; awGU&onf/ rdrdtwGuf ta&;rBuD;vSaomfvnf; client twGuf ta&;BuD;aeojzifh þodkY pDpOfxm;&Sdjcif; jzpfonf/ Limit the Dimensions
t&G,ftpm;udk avQmhcs&eftwGuf tvG,fqHk;enf;vrf;rSm *&yfzpf\ t&G,ftpm;udk uefYowf,ljcif;yif jzpfonf/ vkdtyfonfxuf rydk&ef ta&;BuD;onf/ Figure 13-7 wGif jrifawGU&onft h wkid ;f rvkv d m;tyfonfh tydo k m;ae&mrsm;udk z,fxw k f ,ljcif;jzifhyif 3 K u avsmhenf;oGm;apEkdifonf/
File
Figure 13-7
ab;wGif tydx k m;&Sad om tjzLom;ae&mrsm;udk z,fxkwf jzwf,lvkdufjcif;jzifh rdr\ d file t&G,t f pm; ao;i,foGm;Ekdifonf/
Design for Compression
t"duusaomenf;vrf;wpfckrSm zdodyfrIpDrHcsufjzifh tcGifhtvrf;,ljcif; jzpfonf/ wpfa&mif wnf;jc,f ta&mifjym;pepf (flat color) jzifh tqifajyvHak vmufaevQif wjznf;jznf;rodrom ta&mifcGJxkwf toHk;csaom yHkpH'DZkdif;rsKd;udk roHk;oifhbJ GIF compression udkom toHk;cs aqmif&Guf&rnf/ Reuse and Recycle
Download time udk
uefYowfxm;&Sdonfh tjcm;enf;vrf;wpfcrk mS rdrd browser \ cache rS &&SEd idk o f nfh tcGit hf vrf;udkoHk;um rdrd*&yfzpfrsm;udk jyefvnf toHk;csjcif; jzpf\/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
255
Figure 13- 8 Graphic file onf local computer cache wGif awmif;cHr?I
qGJcs,rl ?I Munh½f rI EI iS hf okrd ;DS rIrsm; jyKvkyfaeonf/ *&yfzpfrsm;tm; jyefo;kH jcif;jzifh page k jrefqef display vky&f mü ydí oGm;aponf/ Browser rS *&yfzpfrsm;udk wpfBurd w f nf;jzifh qGJcs,v l u dk íf qufwu dk f toH;k jyKEikd &f eftwGuf cache wGif tm;xm;,lonf/
0ufbfwGif browsing jyKvkyfaomtcg document rsm;tMum; a&GUoGm;jcif;? aemufjyef Munhfjcif; pouhJokdY vkyf½kd;vkyfpOftwkdif; Munhf½Iavh&SdMuonf/ Document wpfcck u k kd xyfcg xyfcg wyfxm;aprnft h pm; rMumao;rDu 0ifa&mufMunf½h NI yD;cho J nfh document udk browser rS xdef;odrf;ay;xm;onf/ xko d Ykd aqmif&u G jf cif;udk caching (uuf&cfS si;f ) [k ac:onf/ tqkdyg file rsm;udk ,m,D odkrSD;xm;ay;rIudkvnf; cache (uuf&Sf) vkyfonf[k owfrSwfonf/ okYd twGuf rdrd site ay:wGif tjrJwrf;vkv d dk *&yfzpfrsm;udk jyefo;kH Ekid &f eftwGuf browser's cache rS tcGifhtvrf;udk t&,lEkdifonf/ þenf;onf Figure 13-8 wGif jyxm;ouhJodkY aemufqufwGJygvmrnfh page rsm;udk tvsiftjref wpfBudrfwnf;jzifh *&yfzpfwpfckcsif;udkom download vkyfay;&ef vkdtyfawmhonf/ xkad qmif&u G cf sufonf tag wpfct k wGi;f wGif URL twlwl jzpfro S m &Ekid yf gvdrfh rnf/ xkdYtjyif *&yfzpfwpfckwnf;ygaom directory wpfcktaejzifh &Sdxm;NyD; jzpf&rnf/ Browser rS pathname topfawGUaomtcg fresh download wpfcjk zifh aqmif&u G v f yk u f idk af y; ygvdrfhrnf/ Find It Online
tprf;avhusifhrIjyKEkdif&ef tcrhJ&&SdEkdifaom owif;tcsuftvufESifh enf;vrf;rsm;udk atmufyg web site rsm;wGif download vkyf,l&&SdEkdifonf/ Adobe System, Inc. (www.adobe.com) Macromedia, Inc (www.macromedia.com) JASC Software (www.jasc.com)
256
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Tools of the Trade
rsm;onf vGefchJaom q,fhig;ESpfausmfumvrsm;upí wjznf;jznf; c&D;&SnfBuD;udk csDwufvmchJ&onf/ a&S;wpfcsdefu yHkxkwf*&yfzpf vkyfief;rsm;twGuf tool rsm;udk toHk;csMuonf/ 0ufbf[lonfh qef;opfrI ay:aygufvmNyD;aemuf 0ufbftwGuf oD;jcm;vkdtyfvmonfh transparency uhJokdYaom tpDtpOfrsKd; vkyfudkifEkdifaprnfh toGiftjyif rsm; aygif;pyfyg0ifvmchJ&jyefonf/ Web graphics tool
0ufbf'DZkdifemrsm;twGuf aqmhzf0JwDxGifolrsm; awmifhwcsufrSeforQudk tpOfrjywf jznfh qnf;ay;vmchJonf/ Web designer rsm;udk toufarG;0rf;ausmif;tjzpf vkyfudkifvsuf &SdaeMuaom uRrf;usifolrsm;tv,fwGif xifay:tausmfMum;qHk; jzpfae&onfh graphic tool rsm;udk tusOf;csKyf azmfjyay;vkdonf/ þae&mwGif GIF ESifh JPEG file rsm; vkyfudkifrItwGuf xku d x f u dk w f efweftoH;k csEidk rf nfh *&yfzpf y½k*d &rf tcsKUd udo k m rdwq f ufwifjyay;jcif;jzpfonf/ tjcm;tjcm;aomtoHk;0ifaprnfh tools aygif; ajrmufjrm;pGm &Sdaeygao;onf/ Adobe Photoshop/Image Ready- Adobe Photoshop onf
0ufbfESifh oufqkdifonfh *&yfzpfrsm;vkyfudkif&mwGif industry standard tjzpf toHk;csEkdifonfrSm txl;wifjyp&m rvkdtyfay/ 'DZkdifemwkdif;avmufeD;eD;u Adobe photoshop udk vufpGJtjzpf toH;k jyKMu onf/ Version 5.5 rSpum 'Adobe rS Save to web' [lonfh option rsKd; xnhfoGif;&if; 0ufbfvkyfief;twGuf oD;oefYoHk;&ef rdwfqufay;chJ\/ vkyfudkifaqmif&GufchJNyD;aom *&yfzpfrsm;udk rwlnDaom format rsm;? uGJjym;jcm;em;aom compression rate rsm;jzifh jyoay;Ekdifonf/ GIF file rsm;twGuf toHk;usaprnfh advanced palette rsm;ESifh dithering control rsm;vnf; yg0ifvmonf/ ,cktcsdefwGif Photoshop aqmhzf0JESifhtwl Adobe \ Image Ready aqmzhf0Jyg xnhfoGif;yg&Sdvmonfudk awGUjrifEkdifonf/ Java Script code jzifh a&;om;xm;onfh rollover effect rsKd;ESifh animation vkyfief;rsKd;twGuf toHk;usaomtxl;pyg,f&S,f webtrick rsm; jzpfonf/ odkYtwGuf rdrdtaejzihf professional tjzpf0ufbf'DZkdif;ESifh 0ufbf*&yfzpfrsm;udk vkyfudkifawmhrnfqkdu Photoshop udkvufudkifxm;oifhonf/ Stealing isn't Nice
tu,fírsm; Copyright rvGwfuif;aom image rsm;udk ,loHk;jcif;onf raumif;rGefay/ rdrd web site wpfckwGif ,loHk;xm;onfudk awGU&SdoGm;ygu jyóem &SdEkdifonf/ tu,fí clip-art CD collection rS oHk;onfhwkdif vdkifpifjzifh 0,f,lrSom ydkrkd tqifajyEdkifrnf jzpf\/ taumif;qHk;rSm 'unrestricted' odkYr[kwf 'royalty free' ponfh pmwef;rsm; azmfjyxm;onfh free image rsm;udk toHk;jyKjcif;onf jyóemtuif;qHk;jzpfonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
257
uGefysLwmudk udkifwG,ftoHk;jyKae&aomfvnf; ¤if;twGuf bwf*suu f kd wdik ;f xGmoH;k ae&oljzpfygu Paint Shop Pro jzifh aqmif&u G v f yk u f ikd o f ifo h nf/ ¤if;wGif PhotoShop uhJokdYaom toGiftjyifrsm;pGm yg0ifxm;aomfvnf; aps;aygpGmjzifh 0,f,ltoHk;csEkdifrnfjzpf\/ ¤if;wGifvnf; animated GIFs rsm; jyKvkyf&ef Animation Shop 2 udk yl;wGJ xnfhay;xm;onf/
JASC Paint Shop Pro -
Macromedia Fireworks - Web graphic vkyfief;wGif txl;vkdtyfcsufrsm;udk jznfhqnf;
ay;Ekdifonfhy½kd*&rfrsm;teuf Macromedia Fireworks onf yxrqH;k *&yfzpf y½k*d &rf wpfckjzpf\/ vector (Line-based) image rsm;jzpfap? raster (pixel based) image rsm;jzpfap zefwD;wnfaqmufay;Edkifonf/ txl;ESpfoufp&m taumif;qHk; tool rsm;rSm editable text oHk;Edkifjcif;? rnfonhftcsdefwGifrqkd edit vkyf,lEkdifonfh 'Live' effect yg0ifjcif;? side-by-side export previews xnhfxm;jcif;? animation vkyfudkifEkdifjcif;? rollover buttons rsm; yg&Sdjcif;? yHkrsm;udk txyfvkduf vTmoHk;Edkifrnfh advanced image-slicing tool wdkYyif jzpfonf/ xkdYtjyif drawing program wpfck bitmap editing program wpfckESifh txl;jyK web utilities rsm;tMum; tajymif;tvJvkyf&mwGif rsm;pGm toHk;0ifaponf/ vkid ;f jyyHq k JG y½k*d &rfrsm;teuf ay:jyLvm tjzpfq;kH y½k*d &rfEpS cf jk zpfonf/ 0ufb'f ZD idk ef mawmfawmfrsm;rsm;onf rdrw d Ydk\ y½k*d &rfwpfck twGuf pwifEkdif&ef yHkMurf;a&;qGJrIu pwifMu&onf/ okdYtwGuf Adobe Illustrator jzifhjzpfap? Macromedia Freehand jzifjh zpfap vkt d yfovkd pwiftoH;k csMuonf/ GIF format jzifh wkduf½kdufodrf;qnf;,lEkdifaom t&nftcsif;&Sdaomfvnf; 'DZkdifemwkdif;onf omreftm;jzifh aemufqHk;vkyif ef;pOfusro S m web graphics tool jzifh odr;f ,lavh&o dS nf/
Adobe Illustrator, Macromedia Freehand -
Image Source
rdrw d Ydk *&yfzpfrsm;onf GIF odYkr[kwf JPEG jzpfaeapvkad Mumif;udk od&jdS yD;aemuf xk*d &yfzpfrsm; udk rnfonfhae&mrS &Ekdifrnf/ rnfokdY pwifyHkazmfEkdifrnfwkdYudkvnf; odxm;oihfayonf/ Scanning
0ufb*f &yfzpfrsm;twGuf tajccHypön;f pkaqmif;&mü scanning vkyif ef;onf enf;vrf;aumif; wpf&yfjzpfonf/ Flat art trsKd;tpm;rS 3 D trsKd;tpm;txd tm;vHk;avmufeD;eD;udk scan vkyf,l&&SdEkdifonf/ rnfodkYyifjzpfap owdjyK&rnfrSm rdrd scan jyKvkyfrnfh image onf copyright wm;jrpfxm;&SdrI &Sd r&Sd odxm;&efyifjzpfonf/ Modify vkyfí toHk;csygrnfqkdonfh wkdif rlydkifxm;&Sdol\ cGifhjyKcsuf&rSom tqifajyEdkifygvdrfhrnf/ 258
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Digital Cameras
'pf*spw f ,fuifr&mrsm;ESihf rdrBd udKuEf pS o f uf&mudk ½ku d u f ;l ,lum image editing y½k*d &rfwpfcjk zifh vkdtyfovdk zefwD;&,lEkdifonf/ wpfcsdefu 0ufbfwGif low resolution om &&Scd sed u f omref uifr&mjzifyh if tqifajyrnfjzpfaomfvnf; ,cktcgwGifrl high-resolution uifr&mjzifh toHk;csrSom rdrd\ page onf 0ufbfqkdufrsm;tv,fwGif wifhw,fEkdifygvdrfhrnf/ txl; owdjyK&rnfrSm 'pf*spfw,f uifr&mrsm;onf omreftm;jzifh JPEG compression udk toHk; csum image rsm;udk zdoyd x f m;ay;avh&ydS gonf/ odYk twGuf rlvyxr &,laom image rsm;udk tenf;i,f ESdrfh,lxm;oifhonf/ Electronic Illustration
rsm;aomtm;jzifh Illustrator okdYr[kwf Fireworks odkYr[kwf Photoshop uhJodkYaom *&yfzpf y½kd*&rfwpfckckwGif tMurf;yHkpHjyKvkyfNyD;rSom rdrdtwGuf yHkacsm image rsm;udk zefwD;,lEdkifMu onf/ 'DZkdifemawmfawmfrsm;rsm;onf yHkMurf;azmf&mwGif drawing tablet ESihf stylus udk toH;k cs um ud, k yf idk f image rsm;udk zefwD;,l&ef vdkvm;wwfMuonf/ yxrOD;pGm bitmap y½kd*&rfudk toHk;csí 72 dpi cefY&Sd file opfwpfckudk us,fus,fjyefYjyefY ae&m,lwnfaqmufonf/ wpfcg wpf&H Illustrator okdYr[kwf freehand uhJodkYaom vector program wpfcu k dk toH;k csonf/ Photoshop \ aemufq;kH vkyi f ef;pOfwGif vkdtyfaeí xkdtqifhwGif csufcsif;vkyf,lír&aom udprö sm;udk tqdkyg tool rsm;jzifhom zefwD;,lxm;&onf/ Scanning Tips
0ufbfay:wGiftoHk;jyKrnfh image rsm;udk scan vkyf,lchJvQif atmufygtnTef;rsm;onf t&nf taoG; ykdaumif;pGm&&SdvmEkdifonfh image rsm;twGuf taxmuftulrsm;pGm &&SdEkdifygvdrfhrnf/ - rdrd\aemufqHk; image rsm;onf 72 dpi resolution wpfck&Sd&rnf/ image trsm;pkudk 72 dpi jzifh wkduf½kduf scan vkyfEkdifonf/ 100 dpi uhJokdYaom resolution tenf;i,f jrifhrm; aewwfaom scanning onf t&G,ftpm; jyKjyifjcif;twGuf ydkíudkifwG,f&vG,fulonf/ taMumif;rSm pixel ydkí&&ef jzpfygvdrfhrnf/ rnfokdYyifjzpfap 72 dpi onf standard resolution jzpfí wpfvufrtwGif; &Sd&rnf/ Pixel jzifh a&wGuf,lonf/ - taumif;qHk;rSm grayscale (8-bit) mode jzifh scan vkyfjcif;jzpfonf/ Black and white (2 bit okdYr[kwf bitmap) jzifh scan vkyfjcif;jzifh raumif;rGefEkdifay/ Midtone area rsm;wGif csdefn§dEkdif&ef grayscale onf taumif;qHk;jzpfaponf/ tu,fírsm; black and white pixel udkom &,lvkdygu image \ aemufqHk;tqifhwGifom jyefvnfajymif;,loifhonf/ - tu,fírsm; print vkyfxm;onfh image wpfckudk scan vkyf,lchJvQif tpuftajymufrsm; roefYrpif &SdaeEkdifonf/ xkdodkYvkyf,lvQif taumif;qHk;enf;vrf;rSm photoshop wGif yg 0ifonfh Gaussian blur filter udk toHk;cs&efyif jzpf\/ Image udk tenf;i,f 0g;,lvkdufum t&G,ftpm;udk tenf;i,favQmhcsNyD;rS sharpening filter udk jyeftoHk;csjcif;jzifh tpuf tajymufrsm;udk z,f&Sm;ypfEkdifonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
259
Photo Archives and Clip-Art
yHkMurf;a&;qGJí image rsm; zefwD;,l&ef rvkdvm;vQif toifhxkwfvkyf a&mif;csvsuf&Sdaom ready-made photo rsm;? Illustration rsm;ESihf button rsm;udv k nf; oH;k Ekid yf gonf/ ,aeYacwf wGif 0ufbfvkyfief;ü toifhoHk;Ekdif&ef clip-art collection rsm;vnf; tvG,fwul 0,f,l&&Sd Ekdifygao;onf/ xkdYtwl tcrhJ&,lEdkifaom online resource rsm;vnf; &Sdaeygonf/ okdYaomf tqkdyg tcrh&J Ekid af om collection rsm;onf t&nftaoG;tm;jzifh pdww f idk ;f us jzpfcsifrjS zpfygvdrrfh nf/ atmufazmfjyyg site rsm;wGif *&yfzpfawmfawmfrsm;rsm; tcrhJ &Ekdifygonf/ A+ Art (www.aplusart.com) Icon rsm;? background yHkrsm;? button rsm;? animation rsm;? Web Clip-Art Links Page (Webclipart. miningco.com/internet/webclipart) Clip-art-related link aygif; &mcsDí &Sdonf/ tu,fí rdrdonf professional vkyfief; vkyfaqmifaejyD; xkdufoifhaom toHk;p&dwf &Sdygu atmufyg site rsm;rS aps;EIef;csKdompGm
0,f,l&&SdEkdifonf/ Picture Quest (www.Picturequest.com) Photo Disc, Corbis ESifh tjcm;tjcm;aom image trsKd;tpm;rsm;tygt0if tqifhjrifh image aygif; wpfodef;ausmf &&SdEkdifonf/ Art Today (www.arttoday.com) toif;0ifyHkpHjzifhjzpfap? rsm;ESifh Illustration rsm;udk &,lEkdifonf/
tcrhJpepfjzifhjzpfap image
Graphics Production Tips
þoifcef;pmwGif 0ufb*f &yfzpfrsm; xkwv f yk &f eftwGuf tajccHwifjycsuf tcsKUd ukd wifjyay;chJ aomfvnf; ESpfaygif;rsm;pGm format aygif; ajrmufjrm;pGmudk toHk;csvsuf &SdaeMuonfh tjcm; aom format-specific enf;emrsm;udk tcef; 14? 15? 16 wkdYwGif qufvufazmfjyay;ygrnf/ Work in RGB Mode
rdrw d Ydktaejzifh RGB mode twGi;f image-editing vkyif ef;pOfrsm;ukv d nf; rvGrJ aoG vkyu f ikd f Mu&ayvdrfhrnf/ GIF yHkpHjyKvkyf&eftwGufjzpfap? JPEG yHkpHjyKvkyf&eftwGuf jzpfap? RGB mode yg0ifaernfjzpf\/ RGB mode qk& d mü grayscale onf non-color image rsm;twGuf tvGefoifhawmfonf/ JPEG image rsm;onf RGB color image tjzpf wkduf½kduf zdodyf½HkrQom jzpfonf/ GIFs rsm;twGur f l RGB color image rS Indexed Color okYd saving rvkyrf D ajymif;,l&onf/ 260
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tu,fí rdro d nf yHx k w k v f yk o f nhv f yk if ef;wGif *&yfzpfzefw;D rIukd tuRrf;0ifxm;oljzpfyg u CMYK mode wGif vkyif ef;tavhtusi&hf NdS yD; jzpfaeygvdrrfh nf/ (CMYK mode qko d nfrmS Cyan, Magenta, Yellow ESifh Black ink wkdYjzifh yHkESdyfjcif; jzpfonf/) okdY&mwGif zufpf 'DZkdif; vkyfief;wGif tqkdyg ink ESifh CMYK mode wkdYonf rtyfpyfay/ Use Anti-Aliased Text
omreftm;jzifh 0ufbftwGuf tpGrf;jy*&yfzpfrsm; zefwD;Ekdif&eftwGuf rdrdwkdYonf antialiased text ESifh object rsm;udk toHk;cs&ayvdrfhrnf/ Anti-aliased qkdonfrSm tenf;i,f 0g;wm;wm;yHkpHjzifh EIwfcrf;om; tauG;rsm; wGif&Sd ta&mifrsm;tMum; tacsmoyf jyKvkyjf cif;jzpf\/ Figure 13-9 wGif jrifawGU&ouho J Ydk aliasing tajcjy effect ESihf anti-aliasing tajcjyyHpk rH sm; &Sad eygvdrrhf nf/ Anti-aliasing vkyif ef;twGuf on/off tajymif;tvJ vkyf,lEkdifonf/ Figure 13-9
Anti-aliasing udk toH;k jyK&mwGif tm;enf;csuw f pfcrk mS rdr\ d image wGif jznho f iG ;f aom ta&mifta&twGuu f kd xnhx f m;wwfjcif;jzpf\/ File t&G,t f pm;udv k nf; xnhx f m;wwfao; onf/ Byte tenf;i,f ykdvmwwfaomfvnf; tvJtvS,f vkyf&mwGif tvGefaumif;onf/ Save Your Work
rnfonhf'DZkdif;rsKd; jyKvkyfonhftcgwGifjzpfygap? vkyfaqmifcsufwpfckpD NyD;pD;onfhtcgwdkif; save vkyf,l&onf/ tu,fí Photoshop wGif vkyfudkifum layer file rsm;tjzpf zefwD;,l& aom *&yfzpfrsKd;jzpfygu 'Flattened' GIF okdYr[kwf JPEG file rS oD;jcm;pD layered version jzifh save vkyf&ef ta&;BuD;onf/ Name Files Properly
rdr\ d *&yfzpf file rsm;twGuf vkyo f ifv h yk x f u dk af om file extension rsm;jzifh owfowfrw S rf w S f xm;&Sd&onf/ GIF files \ aemufqufwGJwGif .gif [kvnf;aumif;? JPEG file rsm;twGuf aemufquftjzpf .jpeg odkYr[kwf .jpg [lí vnf;aumif; xnfhoGif;yg&Sd&rnf/ xkdokdY aemuf WEB DESIGN
vufawG o Y ifcef;pmrsm;
261
qufwGJoauFw ryg&SdvQif rdrdonf format rSefrSefuefuefjzifh save vkyfxm;aomfvnf; browser rS &Smray;Ekdifaom taetxm; jzpfoGm;wwfonf/ Consider Other End Use
Low resolution jzifh file rsm; zefw;D rIwi G f tm;enf;csufwpfcrk mS print xkw, f yl gu nhzH sif;ae jcif;jzpfonf/ omreftm;jzifh acsmarGUvSyaom printing wpfck &,lEkdifa&;twGuf resolution rSm 300 dpi okdYr[kwf ¤if;xufjrifh&ef vkdtyfygonf/ wpfvufrwGif 72 dots &Sdaom
0ufbf*&yfzpf jzpfyguvnf; yHkESdyfxkwf&mwGif tpuftajymuf tuGufrsm; ygvmwwfonf/ Logo rsm;? okYd r[kwf ta&;ygaom illustration rsm;uhJokdYaom image rsm; xnho f iG ;f &ef vkt d yfygu yxrOD;pGm high resolution image udo k m zefw;D ,loiho f nf/ xkYdaemuf 0ufbjf zifh oifhavsmfaom t&G,ftpm;udk yHkyGm;,l&onf/ rnfodkYaom tajctaewGifjzpfap vector file tay:wGif logo rsm;udk zefwD;u ydkrdkoifh avsmfaponf/ þenf;jzifh jyKvkyfxm;jcif;aMumifh t&G,ftpm; ajymif;vJonfhtcg resolution tajymif;tvJ r&SdapEkdifouhJokdY t&nftaoG; usqif;rIvnf; r&SdEkdifawmhay/ Web Graphics Highlights
Web graphic rsm;
zefwD;jcif;ESifh ywfoufí þoifcef;pmwGif t"du rSwfom;p&mrsm;tm;
jyKpk,lrnfqkdygu- ta&mifjym;pepfESifh hard edge rsm;yg&Sdaom image rsm;udk GIF format jzifh save vkyf&ef/ - "mwfyHkt&nftaoG;&Sd image rsm;udk JPEG format jzifh save vkyf&ef/ - Flat graphic ESihf photographic ypön;f rsm; aygif;pyf zefw;D xm;aom image rsm;twGuf taumif;qHk; jzpfaponfh GIF format jzifh save vkyf&rnf/ - Web graphic rsm;onf low-resolution bitmapped image rsm;jzpf&rnf/ - Web graphic rsm;udk RGB color mode wGifom zefwD;apEkdifvdrfhrnf/ CMYK mode wGif rzefwD;Ekdifyg/ - Web graphic rsm;twGuf pixel jzifh oHk;EIef; azmfjyrSom jynhfpHkaprnf/ - yHkMurf;rsm; scan vkyfcsufrsm;? 'pf*spfw,fuifr&mjzifh "mwfyHk½kdufcsufrsm;? odkYr[kwf clip-art library wpfckckrS image rsm;udk zefwD;,lEkdifaponf/ - Web graphic rsm; zefwD;,ljcif;twGuf tausmfMum;qHk; tool rsm;rSm Adobe Photoshop (Image Ready tygt0if) ESifh Macromedia Fireworks wkdY jzpfonf/ 262
WEB DESIGN
vufawG o Y ifcef;pmrsm;
tcef; 14
Creating GIFs
Web Page rsm; jyKvkyfawmhrnfqkdygu GIFs jyKvkyfa&;tay: tajcjyKMu&onf/ Basic GIFs rsm; wnfaqmufrIwkdif;onf ½kd;½kd;&Sif;&Sif;yHkpHrsm; jzpfaomfvnf; professional tqifh GIFs rsm;jzpfvm&eftwGur f l transparency twGuv f nf;aumif;? optimization twGuv f nf; aumif; xnhfoGif; pOf;pm;vm&onfhtjyif Web palette rsm;udkvnf; *½kjyKvkyfaqmif,lMu& onf/ okdYaomf tqkdygudp&ö yfrsm;twGuf web-ready graphic tool ½kd;½kd;rsm;jzifhyif ajz&Sif;,l Ekdifygonf/ GIFs rsm; jyKvkyfjcif; vkyfief; rpwifrD GIFs ESifh ywfoufí odxm;oifhorQudk
yxrOD;pGm wifjy&rnf jzpf\/ ESifh ywfoufonfh taMumif;t&mrsm; ,aeY web site rsm;wGif jrifawGUae&onfh *&yfzpftrsm;pkonf GIF (Graphic Interchange Format) file rsm;omjzpfonf/ ¤if; web twGuf oD;jcm;py,f&S,f zefwD; 'DZkdif;jyKxm;onfh format wpfck r[kwfaomfjim;vnf; ¤if;onf platform rsKd;pHktwGuf 0ifqhHapEkdifNyD; file t&G,ftpm;udk ao;i,foGm;apum vkdovdk jc,frIef;Ekdif&eftwGuf csOf;uyf&vG,fulaom vkyfenf;vkyf[efyHkpH jzpfonf/ ,aeYtxd rnfonfhtoHk;cs version ESifhjzpfap? rnfonfh *&yfzpfqkdif&m browser rsm;ESifhjzpfap wGJzuftoHk;jyKEkdifaprnfh wpfckwnf;aom format [k vnf; qkdEkdifonf/ wpfenf;tm;jzifh rdrdjyKpkwifjyaom *&yfzpfrsm;udk tifwmeufwGif vlwkdif; jrifawGUapvkdaomqE´&Sdygu GIF udkom oHk;&rnfjzpf\/ Icon rsm;? text rsm; a&maESmyg0ifrnfh *&yfzpfrsm;? wpfaMumif;qGJyef;csDrsm;? trSwfwHqdyf Logo uhJokdYaom flat area yg ta&mifjc,fyHk&dyfrsm;twGuf toHk;jyK&ef taumif;qHk; file format jzpfonf/ rdr\ d image rsm;tm; GIF wpfct k aejzifh odr;f qnf;xm;Ekid af omfjim;vnf; "mwfyHkt&nftaoG;rsKd; texture ajrmufjrm;pGm yg0ifaeaom image rsm;ukdrl pdwfwkdif;us &Ekdifavmufrnf r[kwfay/ (tqkdygudpEö Sifh ywfoufí tqkdyg image trsKd;tpm;rsKd; odrf; qnf;rItwGuf taumif;qHk; file format rSm JPEGs yifjzpfonf/) GIFs
WEB DESIGN
vufawG o Y ifcef;pmrsm;
263
Figure 14-1 wGif
erlem image rsm;udk GIF format jzifh oifhavsmfaom yHkpHrsm;tjzpf
jrifawGU&Ekdifonf/ Figure 14-1 hard edge rsm;ESihf flat color rsm;
t"duyg0ifaeonfh *&yfzpfy&kH yd rf sm;twGuf GIF format onf tvGeaf umif;onf/
8-Bit, Indexed Color
GIFs wki d ;f onf color image rsm;udk nTe;f zGUJ &mü tjrifq h ;kH 8-bit color information wpfcjk zifh
om xnhfoGif;&ef jzpfonf/ nTef;zGJUonf[laom t"dyÜm,frSm palette ac: ta&mifZ,m;wpfckwGif okdrDS;xm;aom ta&mifrsm;rS rdrdtoHk;jyKvdkaom ta&mifudk image twGuf a&G;cs,f,ljcif;ukd qdkvdkonf/ tqkdygZ,m;wGif ta&mifeHygwftnTef;rStp Figure 14-2 gallery wGif jrifawGU&ovkd imk kd GIF wpfct k jzpf rodr;f qnf;rD age twGif;rS ta&mifrsm;udk azmfjyay;onf/ *&yfzpfwpfcu Figure 14-2 Indexed color image wpfct k wGi;f &Sd ta&mifrsm;udk ta&mifZ,m;wpfcjk zifh nTe;f qkjd cif;? odr;f qnf;jcif; jyKvyk x f m;onf/ tqkyd g ta&mifZ,m;udk palette [k ac:onf/ tjrifq h ;kH 256 color (8-bit) omygonf/ U.F.O aMumfjim *&yfzpftwGuf ta&mifZ,m; toH;k jyKyu kH kd ½IjrifEidk o f nf/
264
WEB DESIGN
vufawG o Y ifcef;pmrsm;
rdrdonf RGB image rS indexed color mode okdY ajymif;,l&ef vkdonf/ (tcsKdUaom tool rsm;onf xkdudpt ö wGuf tvkdtavsmuf aqmif&Gufay;onf/) 8-bit color \ t"dymÜ ,frmS tjrifq h ;kH tqift h jzpf 256 colors om yg0ifEidk rf nf jzpfonf/ 8-bit twGuf tcsuftvufqkdif&m tjrifhqHk;tqifhudk (28 = 256) [lívnf; jyqkdEkdifonf/ GIFs rsm;onf ydkíedrfhaom bit depth rsm;vnf; yg&Sdwwfonf/ þae&mwGif ta&mif enf;enf;oHk;av file t&G,ftpm;ao;av jzpfonf/ GIF udk zefw;D onft h cgwdik ;f ta&mifZ,m;jzifh wku d ½f u dk o f ;kH Ekid &f ef wGyJ gvmrnfomjzpf\/ GIF Compression
GIF compression obm0udk avhvmonfhtcg csufcsif; oabmaygufEkdifygvdrfhrnf/ yxr OD;pGm avhvm&mwGif ¤if;\ lossless [laom a0g[m&\ t"dymÜ ,fonf image tm; zdEydS o f rdk ;DS &eftvkYd imS rnfonfh image information rS vGwo f mG ;apjcif;r&S[ d k azmfjyaMumif; em;vnfxm; Ekid o f nf/ 'kw, d tqifah vhvm&mwGif image zdoyd rf t I m; twef;vku d f azmfjyxm;onf/ LZW ac: compress scheme wpfct k m; toH;k csxm;yHu k kd awGU&SEd idk o f nf/ ta&mifwpfcw k nf;twGif; rSmyif pixel rsm; azmfjyxm;onf/ twef;vkdufyHkudk xdvdkufonfhtcg ¤if;rS data azmfjycsuf wpfcktjzpf yHkoGif;í zdodyfvkdufEkdifonf/ Figure 14-3 wGif jrifawGUonfhtwkdif; texture yg aom yH&k yd rf sm;xuf flat color yH&k yd rf sm;u ydí k odyo f nf;rIjyKEkid af Mumif; avhvm,lEidk yf gvdrrhf nf/ Figure 14-3 A simple demonstration of GIF compression
onf twef;yHpk rH sm;twGi;f pixel rsm;udk odyx f m;jcif;jzpfonf/ ta&mifwpfcw k nf;rSm &So d nfh pixels rsm;\ string ukd xdvu dk af omtcg owfowfcwfcwf ta&mifwpfcu k kd &,lEidk o f nf/ GIF compression schemes
description= "14 teal"
ta&miftqifhqifhjzifh &Sdaeaom yHk&dyfwpfck&Sd? twef;wpfckwGif pixel wkdif;twGuf odrf;qnf;rnfh owif;tajctaersm; xm;&Sdonf/ tqkdyg owif;tajctaewGif azmfjycsuf description &Snv f sm;av file t&G,t f pm; Bu;D av jzpfonf/ description= "1 teal", "1 light teal", " 2 medium teal", etc ...
tcsKUd aom GIFs rsm;twGuf xko d Ydkaom pdw0f ifpm;p&m vkycf surf sm;udv k nf; jrifMu&rnf/ yH&k yd \ f tajctaeudk a'gifvu dk t f ajctaetwGuf rlvtwkid ;f xm;NyD; tvsm;vku d f tajctae\ WEB DESIGN
vufawG o Y ifcef;pmrsm;
265
stripe udk csKHUvkdufonfESifh image \ t&G,ftpm; tenf;i,f ydi k ,fomG ;ayrnf/ xkYd twl tvsm;vku d t f m; rlaooGm;í a'gifvu kd u f kd upm;Munfv h Qifvnf; þokYd awGU&rnf/ tqkyd gudpö twGufvmrnfh optimizing GIFs u@wGif tao;pdwfazmfjyay;ygrnf/ Transparency
GIFs ESihf ywfoufí pwki d t f usqH;k vkycf sufwpfcrk S rdrt d aejzifh background image wpfcu k kd jrifom&ef yHak zmf,El idk jf cif;jzpfonf/ GIFs tygt0if rnfonfh bitmap trsK;d tpm; *&yfzpfrqdk av;axmifhusus obm0jzifh &Sdaeonf/ Figure 14 - 4 wGif azmfjyxm;ouhJokdY ydkípdwf0ifpm; p&m aumif;vmaprnfh toGiftjyifrsKd;jzifh zefwD;jyoEkdifonf/ tao;pdwfudk Adding Transparancy u@wGif azmfjyay;ygrnf/ Figure 14-4 Transparency jzifh yH&k yd w f pfcak y:wGif background *&yfzpfwpfcu k kd wGx J nhf
,lEidk o f nf/ txufEiS ahf tmuf uGJjym;pGm ay:xGufvmrnf/ Interlacing
Image download vkyf,l&mwGif twGJvkdufvufurf;ay;rI jyKvkyfay;onfh txl; jyKvkyfcsuf rsKd;udk interlacing [k ac:onf/ vufurf;rIrsm;wGif vufurf;rIrjyKrDyrkH sm;xuf vufurf;rIjyK ay;onfhyHkrsm;u ykdrkdxifay:apaom tajctaersKd;jzifh GIF image wpfcktjzpf browser window yDyjD yifjyif wifjyonft h csdet f xd &Sad ernf/ erlemtjzpf Figure 14-5 wGif jrifawGUEkid f Figure 14-5 Interlace vkyfxm;aom GIFs rsm;onf twGv J u kd f
jzwfwifrIudk qifhum qifu h m aqmif&u G f ay;onf/ csay;onft h cg jrifawGU &aom tajctaeonf rcsay;rD jrif&aom image xuf Munfvif jywfom;onf/
266
WEB DESIGN
vufawG o Y ifcef;pmrsm;
onf/ xkdokdY interlacing txl;jyKcsuf ryg0ifygu tcsKdUaom browser rsm;onf image wpfckudk download vkyf&mwGif vHk;vHk;vsm;vsm; azmfjyEkdifrSom wpfcgwnf; cif;usif;jyay; ojzifh rnfonhft&mrQ rjrif&onfh taetxm;jzifh apmihfae&ayvdrfhrnf/ tcsKdUrSmrl image udk twef;vdkuf wpfqifhcsif; cif;jyay;onfh yHkpHrsKd;vnf; &Sdaeonf/ tvGefjrefqefaom tifwmeufcsdwfqufrI toHk;jyKxm;olrsm;taejzifh tqkdyg interlacing ESifhywfoufonfh obm0udk odjrifEkdifrnf r[kwfay/ okdYaomfjim;vnf; aES;auG;aom modem toHk;cs csdwfqufrIrsm;wGifrl interlacing tajctae tm;vHk;udk odjrifEkdifonf/ tu,fí image map wpfcktjzpf toHk;jyKxm;onfh yHk&dyfjzpfvQif toHk;jyKoltaejzifh image wpfpdwfwpfa'otay: click vkyfay;&if; jrefjrefyHkay:vmap&ef aqmif&Guf,lEkdifonf/ Interlacing vkyjf cif; rvkyjf cif;onf rdrt d ay: rlwnfonf/ tMurf;zsif; rSw, f o l ifo h nf rSm image ao;i,fygu interlace vkyf&ef rvdkay/ Imagemap rsm;uhJokdY BuD;rm;aom image rsm;twGufrl interlace vkyf&ef vdktyfygonf/ Animation
GIF file format twGi;f tjcm;wnfaqmufrI toGit f jyifrmS Figure 14 - 6 wGif azmfjyxm;ouhJ okdY ½kd;&Sif;aom animation cif;usif;jyKvkyfEkdifjcif; jzpfonf/ rdrd animation \ frame tm;vHk;udk oD;jcm;pD zefwD;vkdufonfESifh single animated GIF wpfcktaejzifh tvG,fwul odrf;qnf;&ef tools rsm; &Sdaeonf/ tao;pdwfvIyf&Sm;rI GIFs udprö sm;udk tcef; 16 wGif
tao;pdwf qufvufwifjyay;ygrnf/ Figure 14-6
txufyg ½k;d &Si;f aom vIy&f mS ;rItqifq h ifh frame rsm; tm;vH;k onf GIF file wpfct k wGi;f yg0ifxm;&So d nf/ Creating a Simple GIF, Step by Step
GIFs jzifh rnfonft h &mrsm; aqmif&u G Ef idk rf nfukd od&NdS yD;aemuf tvGet f ajccHusaom Oyrmjzifh vkyfaqmifjyoay;rnf jzpf\/ okdYaomf tvStywefqmqifxm;aom transparency ESifh optimization vkyfief;pOfrsm;udkrl aemufydkif;rS jrifawGUEkdifygvdrfhrnf/ Web onf ay:jyLvmjzpfvmonfEi St hf rQ GIF *&yfzpfqidk &f m aqmhz0f rJ sm; awmif;qkrd o I nf vnf; wufvmcho J nf/ *&yfzpfy½k*d &rfwidk ;f wGif tajccHusvaS om GIF-saving vkyaf qmifcsuf WEB DESIGN
vufawG o Y ifcef;pmrsm;
267
rsm; yg&Sdonf/ þoifcef;pmwGif tukefvHk; wifjy&efawmh rjzpfEkdifacs/ okdYtwGuf Adobe Photoshop okdYr[kwf Macromedia Fireworks odkYr[kwf JASC Paint Shop Pro wkdYjzifh jyKvkyfyHkudk erlemtjzpf wifjyay;Ekdifygonf/ rdrdtoHk;jyKaom tool rsm;ESifh roufqkdifaomfvnf; GIF wpfcktaejzifh image wpfckudk odrf;qnf;Ekdif&ef tajccHvkyfief;pOfrsm;rSm atmufygtwkdif; jzpfonf/ 1/ RGB color mode wGif Low-resolution (72 dpi) image jzifh pwifyg/ 2/ RGB mode twGi;f &Sad eqJrmS yif resizing okdYr[kwf cropping okdYr[kwf color correction wkdYuhJokdYaom wnf;jzwfrIvkyfief;rsm;udk tNyD;vkyfxm;yg/ Figure 14-7 Saving a GIF with the 'Save For Web' feature in Photoshop
1. File udzk iG íhf rlv image tm; vkt d yfovkd wnf;jzwf,yl g/ 2. rdr\ d image udk GIF jzifh odr;f qnf;&ef tqifoifh jzpfaomtcg 'save for web' [laom nTeMf um;csuu f kd file menu rS a&G;cs,, f v l u dk yf g/ 3. Web dialog box twGuf odr;f qnf;rI vky&f mü yxrOD;pGm menu udk qGJcsNy;D GIF udak &G;yg? xkaYd emuf palette wpfcu k kd a&G;cs,Nf y;D ta&mif eHygwjf y number of colors udo k mG ;yg/ dithering twGuf jznfph u G Nf y;D interlace vkyv f o dk nf? rvko d nfukd jyyg/ Dialog box onf transparency setting twGuv f nf; oH;k Ekid af o; onf/
4. tm;vH;k vkyNf y;D onft h cg OK udk click vkyfum file trnfukd ay;vdkufyg ¤if;wGif aemufqufwJG pmvH;k tjzpf .gif ygvmygvrd rhf nf/
268
WEB DESIGN
vufawG o Y ifcef;pmrsm;
3/ Image onf rdrdvkdtyfaomtaetxm;twkdif; taotcsm&SdaejyDjzpfaomtcg index color okYd ajymif;vdu k yf g/ tu,fí rdro d nf web graphic tool wpfcu k kd toH;k jyKaeygvQif tqdkyg image udk format option rS GIF udk a&G;cs,fvkdufonfESifh tvkdtavsmuf qkd ovdk index color ajymif;NyD; jzpfoGm;ygvdrfhrnf/ta&miftavQmhtwif;udpö aqmif&Guf onfhtcg palette udk ac:í vkyfaqmif&rnf/ Color Palette \ sidebar wGif palette option trsKd;rsKd;udk azmfjyxm;aMumif; awGUEkdifonf/ 4/ vkdtyfonfhcsdefn§drIrsm; jyKvkyfjyD;onfESifh save vkyfum GIF jzifh export vkyf,l&onf/ wpfckowdjyK&rnfrSm taMumif;aMumif;aMumifh aemufydkif;wGif tajymif;tvJ vkyfvkdvQif rlv RGB image udk aocsmpGm odr;f xm;&efyifjzpfonf/ RGB color mode wGio f m wnf;jzwf rIvkyfief;t00 vkyfoifhonf/ In Adobe Photoshop
Photoshop twGif; GIF wpfck zefwD;&ef trSefwu,ftm;jzifh enf;vrf;tcsKdU &Sdaeygonf/ tu,fí version 5.5 ESifhtxufqkdygu Figure 14-7 wGif azmfjyxm;ouhJodkY 'save for web' [lonfh feature udk toHk;jyKjcif;jzifh tm;omcsuftcGifhtvrf;rsm;pGm &&SdEkdifonf/ tcsdKY Version rsm;wGif 'Save As' jzifh ½kd;&Sif;pGm jyKvkyfEkdifonfudk Figure 14-8a ESifh 14-8b wdUk wGif
awGUjrifEkdifonf/ Figure 14-8a
file udzk Gií hf RGB mode
twGi;f &Sad epOf vdt k yfonfh wnf;jzwfrI rSeo f rQukd jyKvyk yf g/
Mode udk a&G;cs,&f if; rdrd image tm; indexed color tjzpf ajymif;vku d yf g/
Indexed color dialog box twGi;f t"duqH;k jzwfa&G;cs,rf t I 00udk jyKvyk &f ef vko d nf/ (u) number of colors (bit depth) (c) dither jyKvyk &f ef vko d nf rvko d nf (*) rdr'd ZD idk ;f Gif Web-save color rsm; toH;k csxm;ygu preserv exact colors udk a&G;cs,, f yl g/ d aejzifh save as okrYd [kwf Export wpfcck u k kd toH;k csEidk o f nf/ þtqihaf &mufaomf rdrt WEB DESIGN
vufawG o Y ifcef;pmrsm;
269
Figure 14-8b Save as File menu rS 'Save As' a&G;cs,yf g/ Dialog box twGi;f rS menu udk qGcJ svu dk Nf y;D 'compuserve GIF' udk a&G;cs,yf g/ File trnf\aemufwiG f .gif yg&dS r&Sd *½kpu kd yf g/ Interlace vkyv f rdk I &Srd &Sd ajzyg/
Export File menu rS Export udak &G;Ny;D GIF 89a oko Yd mG ;yg/ Dialog box rS rdrd image twGuf ta&mifjyKp&k ef tcGihf tvrf;ay;ygvrd rhf nf/ Ny;D vQif interface vky&f efupd Eö iS hf trnfay;jcif;? odr;f qnf;jcif;rsm; aqmif&Gu&f rnf/ In Macromedia Fireworks 3
Macromedia Fireworks onf web graphic twGuf yHkpHjyKxm;jcif;oufouf jzpfaom aMumifh optimized jyKvky&f eftwGuf tool rsm;udk awGUjrif&ygvdrrhf nf/ wpfenf;tm;jzifh highquality GIFs rsm; &&SdEkdifonf/ Figure 14-9 wGif jrifawGU&ouhJokdY Compression rate ydkrdk
aumif;vm&ef vkyfcsufrsm;pGm ay;Ekdifonf/ In JASC Paint Shop Pro 6
Photoshop twkdif; Paint Shop Pro twGif; vG,fulpGm GIFs wpfckudk zefwD;,lEkdifonf/ Figure 14-10 wGif azmfjyxm;ouhJokdY GIF optimization tool topfwpfrsKd;udk version 6
wGif rdwfqufay;xm;onf/ Adding Transparency
GIF format \ tjcm;toGit f jyifrmS image \ tpdwt f ydik ;f rsm;udk xd;k azmuf jrif&aomyHpk rH sK;d
jzifh pDpOfEidk jf cif;yif jzpfonf/ rnfoYkdyifjzpfjzpf xd;k azmufjrif&aomyHpk jH zifh jyxm;onfh {&d,m\ aemufwGif &SdaeorQudkvnf; jyay;ygvdrfhrnf/ 270
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 14-9
d yfonfh wnf;jzwfrI File ukzd Giíhf vkt t00udk vkyyf g/
GIF format udk a&G;cs,&f ef rdr\ d work-space wGif optimize palette udo k ;kH Ekid o f nf/ (u) Palette wpfcu k kd a&G; (c) number of colors udck sed f (*) dittering udpaö qmif&Guf (C) ESpzf uf tay: axmifh arrow rS menu udq k cJG sum image interlace udk aqmif&u G yf g/ (i) Preview window twGi;f rdrd
vkyu f ikd fcsed n f dc§ surf sm;\ &v'fukd Munhf½Ippfaq;Ekdifonf/
rdr\ d setting udprö sm; Ny;D pD;oGm;aom tcg file menu rS export udk a&G;cs,Nf y;D GIF file k kd aemufqufwJG .gif name wpfcu pmvH;k xnho f Gi;f &if; ay;,l&rnf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
271
Figure 14-10
File udzk Giíhf
RGB mode twGi;f Save As dialog box wGif file trnfukd vkdtyfonfh wnf;jzwfrIudpt ö 00udk ½ku d o f Gi;f &rnf/ File trnf\ aqmif&Guyf g/ GIF file wpfct k aejzifh aemufqufwJG tjrifh aemufq;kH rS .gif odr;f qnf;Ekid o f nfh tqifo h Ydk a&muf&ydS gu xnfhoGif;ay;&rnf/ File udo k mG ;í? Save As jzifh odr;f yg/
Options cvkwu f kd click vkyyf g/ Save Options dialog box wGif GIF version a&G;cs,, f El ikd o f nf/ (89a onf transparency ESihf animation twGuf yhyH ;kd rIjyKay;onf/) Interlace vkd rvdk a&G;cs,, f yl g/ jy;D vQif OK udk click vkyíf GIF tjzpf odr;f Ekid o f nf odkYr[kwf qufvuf aqmif&Gufvkdao;vQif option rsm; xyfr&H &Sad &;twGuf Run Optimizer udk click vkyyf g/
GIF optimizer \ color panel udk toH;k csí bit-depth okrYd [kwf dither yrmP okrYd [kwf palette wkjYd zifh image wkv Yd kd qufvuf aqmif&GuEf idk o f nf/ Method of color selection qko d nfrmS palette udk &nfneT ;f jcif; jzpfonf/ Indexed color image wpfcjk zifh pchyJ gu Existing udk oH;k yg/ Image twGuf web palette udk toH;k csEidk &f ef Standard/Web-safe ukd oH;k yg/ Optimized Medium Ud kd Cut adaptine palette wpfcEk iS hf tvm;oP²mefwpl Gm ta&mif tcsKu csay;onf/ rdr\ d rlv image onf ta&mifenf;ygu optimized k ;kH yg/ Octree udo
rdr\ d GIF wGif wpfpw d w f pfa'orQ Transparent vkyv f ydk gu Transparent {&d,mav;jzifh pwifvydk g u 'Existing image k kd or layer transparency' udak &G;yg/ ta&mifwpfcck u tom;ay;&if; transparent vkyv f ydk gu 'Areas that match this color' udk toH;k csyg/
272
WEB DESIGN
vufawG o Y ifcef;pmrsm;
vkyfudkif&efenf;vrf;rSm ta&mifZ,m;twGif;&Sd taygufusOf;uav;wpfckrS "transparent" taejzifh 'DZdkif;vkyfxm;onfudk toHk;jyK&efyifjzpfonf/ xdk;azmuf jrif&onfhoP²mef vkyfrnfhyHk&dyfudk ay;vkdaomta&miftm; ½dk;&Sif;pGm a&G;cs,fNyD; tool udk udkifwG,f,l&onf/ rnfoYkdyifjzpfap owdjyK&eftcsurf mS ta&mifwpfcu k kd a&G;cs,v f u kd af omtcg a&G;cs,v f u dk af om ta&mifwkdif;jzifh csufcsif;xif[yfvmvdrfhrnf/tqdkygudpEö Sifhywfoufí aemufvmrnfhtcef; 15 wGif ]]rvkdvm;tyfonfhxdk;azmufjrif&rIrsm; umuG,fjcif;}} acgif;pOfjzifh tao;pdwf azmfjy ay;ygOD;rnf/ "Transparency" udk xnfhoGif;&mwGif Photoshop odkYr[kwf Fireworks jzifh Layer ac: tvTmvkdufwifxm;onfh image t&if;tjrpfay:wGijf zpfap? pre-existing GIF file uJhodkY aom flat format ay:wGijf zpfap t&nftaoG;wnf&rdS u I kd jrifawGYEidk rf nfjzpfí tqkyd gtaMumif; &if;ESpcf suEf iS hf qufpyfyt kH aMumif;udk avhvm,l&rnf jzpf\/ Preserving Transparency in Layered Images
tu,fí layered image wpfckudkpwifaqmif&Gufawmhrnfqkdygu rdrdwGif tqdkyg xkd;azmufjrif&onfhoP²mef jyKvkyfrnfhae&m twdtusxm;&SdNyD; jzpfae&ygrnf/ (Photoshop wGijf zpfap? Fireworks wGijf zpfap no-brainer jzpfjcif;aMumifh cJa&mifEiS hf tjzLa&mifuu G w f Ydk jzifh jyoxm;aom ae&mwpfckwGif jyKvkyf&ef rdrdu pDpOf&onf/) xkd tool ESpfckvHk;wGif "Save for Web" (Photoshop) odkYr[kwf "Optimize" (Fireworks) palette rS Transparency udk a&G;cs,f,al omtcg Figure 14-11 wGif jrifawGY&onfh twkid ;f aemufq;kH &Sad eonf GIF xJü xd;k azmufjrif&onfh yHpk jH yKvkyrf nfah e&mtwGi;f rS *&yfzpf tvTmtwkdif; wnf&Sdaeygrnf/ Tool ESpfckvHk;onf "Matte" color wpfckudk tao;pdwf azmfjycGifh jyKxm;\/ xkd color jzifh transparent {&d,m&Sd rdrdtvkd&Sdaom yHk&dyfudk jyKvkyfay;yg vdrhfrnf/ (tu,fí GIF transparency rS a&G;cs,fxm;NyD; rjzpfygu xdkodkYjyKvkyf&ef qdkjcif; jzpfonf/) Fireworks 3 wGif Transpar-
Figure 14-11
ency udk dropdown menu rS Optimize palette udk toH;k csí "Index Transparency" udk
tvTmvdu k x f yfwif,rl nfh document wGif transparency jyKvkyfyHk Photoshop 5.5
a&G;cs,fvkyfudkiyf g/
wGif
"Save for Web" udk file menu rS qGcJ sía&G;cs,yf g/ box udk ppfaq; í rdrjd yKvyk af om transparS af e&m ency udk owfrw wGif csxm;í save vkyyf g/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
273
Index Versus Alpha Transparency
Image wpfckwGif transparency xnfhoGif;jcif;ESifhywfoufí t½dk;ajzmifhqHk; enf; vrf;rSm "index transparency" udk toHk;csvkyfudkifjcif;yif jzpfonf/ ¤if;enf;vrf;\ yHkpHwGif color table ay:rS pixel wpfckudk ae&mcsxm;í transparent jzpfay:aponf/ Eyedropper tool wpfckjzifh ta&mifwpfckudk a&G;cs,fNyD;vkyf&onf/ Photoshop rS "Alpha transparency" trnf&Sd acwfrDaomenf;pepfjzifh yHhydk;í vkyfaqmifcGifhay;xm;onf/ Document \ oD;jcm; channel (alpha channel) wGif GIF wpfck\ transparent {&d,mtwGuf yHkcsZ,m;tjzpf odrf;qnf;apaom enf;vrf; jzpfonf/ Alpha channel twGi;f &Sd pixel teufa&mifrsm;jzifh jyoay;aom {&d,mrsm;wGif ¤if;wkdY\ pixel color rsm;ESifhjyoay;\/ teufa&mifay:wGif tjzLa&mif pixel rsm;jzihf xm;odkjyKvkyf,lEkdifonf/ Photoshop \ channel palette twGif;&Sd alpha channel udk wnf;jzwf,ljcif;jzifh vkyfudkifaqmif&Gufaeaom image twGif; transparency ta&mifwifjc,frIudk vkyfEkdif onf/ atmufwGif jyoxm;aomyHkpHtwdkif; image twGif;rS rlydkifta&mifrsm;ESifh rywf oufapay/ Alpha channel wpfckESifh uRrf;usifpGm wdkuf½dkufaqmif&Guf jyKjyifxm;aom transparency onf acwfrDvSí tcsKdUuRrf;usifaom 'DZkdifemrsm;yif toHk;rjyKMuao;ay/ odYktwGuf index transparency ESihf ywfoufí tajccHtqifhavmufom ,cktcef;wGif
wifjyjcif;jzpf\/
274
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Adding Transparency to a flattened Image
Photoshop ESifh Fireworks twGif; transparent vkyfief;rsm;udk vuf&Sd file wpfckwGif jyKvkyf olwYdktwGuf tm;&p&mtcsuw f pfcsurf mS flattened image pwif vkyu f ikd x f m;&SEd idk jf cif; owif; yifjzpfonf/ tm;r&p&mowif;rSm rlv image \ t&nftaoG; nHzh si;f aeygu tqdyk gvkyif ef; pOftwGuf jyóemjzpfEdkifjcif;yif jzpf\/ tu,fí image onf aemufcHta&mifudk flattened vkyx f m;cJv h Qif transparent vkyx f m;NyD; yH&k yd t f m; ppfaq;Munf½h pI Of yH&k yd \ f ab;ywfvnf wGif trsKd;rsKd;aom color pixel rsm;\ uvem;rsm;jzifh &Sdaewwfonf/ tqkdyg tajctaeudk "halo" wpfck[k ac:qdkonf/ aemufvmrnfhtcef;wGif xdkudpu ö dk tao;pdwf azmfjy&Sif;vif;
jyoay;ygrnf/ d zf ufnaD prnfh GIF \ ta&mifjynfh wpfcsed w f nf;rSmyif Web page \ aemufcyH pkH jH zifh vku aemufcHwGif taumif;qHk;jzpfapEdkifaom flattened image wpfckodkY transparency xnfhMunfh MuygpdkY/ rdrd page \ aemufcHtpdrf;a&mifjzifh vdkufavsmnDaxG jzpfaprnfh tpdrf;a&mif jznfhwif; xm;onfh GIF file wpfck &&Sdxm;jyD[k rSwf,lvdkufonf/ odkYaomf ,ckwpfzef tEkpdwfusus tkw
flat GIF udk tay:q;kH wGiw f ifxm;í aemufcEH iS v hf u dk fzufrnDpGm awG&U onft h cg ¤if;udk flat green area rsm;jzihf yHw k Gijf yoonft h wdik ;f xd;k azmufjrifEidk af paom yHpk jH zifh jyKjyif,lEkdio f nf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
275
In Adobe Photoshop 4 (or higher)
Solid pixel color rsm;udk Photoshop wGif transparent odkYajymif;&ef wpfckwnf;aom enf; vrf;rSm Export GIF 89a Export vkyaf qmifcsujf zifh Figure 14-13 yHpk t H wkid ;f toH;k cs,El idk o f nf/ Transparent pixel ygaom (Figure 14-11) rlv image udk "Save for web" jzifh vkyf aqmif&ef vdktyfonf/ "Save for web" option udk tusKd;&SdpGm toHk;csvdkvQif rdrdtaejzifh flattened image udk document topfwpfcktjzpf rdwåLzefwD;NyD; Magic Wand udk toHk;cs jcif;jzifh pixel rsm;udk select vkyfum delete vkyf,lvkduf&onf/ xkdtcg rdrd image onf transparent pixel rsm;ESifhtwl toihf&SdoGm;vdrhfrnf/ Figure 14-13 Color transparent udk Photoshop toH;k csí vkyu f ikd yf kH
Image udzk iG í hf indexed color tqifrh &Sv d Qif indexed color
jzpfatmif ajymif;,lyg/ xdaYk emuf Export GIF 89a Export udk file menu wGif csa&G;vku d yf g/
rdrv d t dk yfaom ta&mif a&G;cs,rf I twGuf eyedropper udk toH;k cs a&G;,lyg/ a&G;cs,rf jI yKpOf Shift cvkwu f kd ESyd x f m;Ny;D transparency twGuf multiple color rsm;tm; a&G;cs,yf g/ Transparency Index Color ESihf rdr, d x l m;aom ta&mifrsm;&So d nfh pixels rsm;onf click vkyv f u dk o f nfEiS hf tqifjh ynfo h mG ;onf/ rnfonfh image {&d,mtm; transparent vkyv f o dk nfukd nTejf yay;yg/ ¤if;udv k nf; a&G;cs,x f m;onfh yHpk t H wkid ;f jznfah y;ygvrd rhf nf/
276
WEB DESIGN
vufawG o Y ifcef;pmrsm;
In Macromedia Fireworks 3
Fireworks ü Optimize palette udk toHk;csí Figure 14-14 flattened graphic transparent wpfckudk vkyf,lEkdifonf/
wGif jrifawGY&onfhtwkdif;
Figure 14-14 Fireworks wGif flat graphic wpfcu k kd transparency xnfo h Gi;f yHk
f idk rf nfh graphic yHpk u H dzk Giyhf g/ Transparency drop yxrqH;k vkyu down menu
rS Index Transparency udk a&G;í Optimize palette udk
toH;k jyKyg/
"Set Transparency" eyedropper tool udk oHk;í rdrd xdk;azmufjrifvdak om ta&mifa&G; cs,rf u I kd &,lyg/
tydak qmif; color transparent jyKvyk &f ef "Add to Transparency" eyedropper udo k ;kH yg/ tqdyk g transparent color ukd xk;d azmufrjrifap&ef xyfrH ajymif;,l&mwGif "Subtract from Transparency " eyedropper udkoHk;yg/
4 tm;vH;k Ny;D pD;oGm;aomtcg tqkyd g graphic tm; (File→ Export) tjyifoYkd qGx J w k , f yl g/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
277
Avoid Halos
Transparent graphic wpfcu k Mkd unfv h u dk w f idk ;f uvem;EIwcf rf;rsm;wGif rnDrnm ta&mifzmG rI rsm; jrifawGY&wwfonf/ ¤if;udk halo [kac:qkd\/ odkYaomf ¤if;wdkYudk azsmufzsufypf&efrSm vG,fulygonf/ Web graphic tool udk toHk;csjcif;jzifhyif vkyfudkifEkdifonf/ Halo rsm;onf aliased edges ac: EIwfcrf;tm; udk,fpm;jyKrI txufESifh atmufcHrsm; vkaejcif;aMumifjh zpfonf/ Figure 14-15 wGif jrifawGY&onft h wkid ;f anti-aliased edge wpfc\ k transparent onf tEkpdwfjrifuGif;wGif ay:vGifaeaponf/ odkYtwGuf transparency \
tusKd;oufa&mufrIudk tjynfht0 r&&SdEkdifjzpf&onf/ Figure 14-15
\ EIwcf rf;om;rsm;wGif zGmvefí ta&mif rsm;jym;aerIonf halo rsm;yif jzpfonf/ Anti-aliased edge rsm;aMumifh ¤if;wkYd ay:ayguv f m&jcif; jzpf\/ atmufct H a&mifEiS hf tay:a&mif a&maxG;aeonf/ Transparent image
Hard edge rsm;wGi&f o dS nfh ta&miftaoG;rsm; tMum;wGirf l text ESihf image rsm;twGuf halo rsm; r&SEd idk af y/
Halo rsm; aysmufysufap&ef enf;vrf;wpfckrSm anti-aliased edge udk toHk;jyK&onf/ aliased image wdkif;onf hard edge wpfck&SdaomaMumifh jzpf\/ wpfcgwpf&H tpGef;tyJhav;
rsm;ESifh txpftxpfav;rsm;awmh awGU&wwfonf/ rnfodkYyifjzpfap layer vkyfxm;onfh Photoshop file twGufaomfvnf;aumif;? Fireworks file twGufaomfvnf;aumif; halo rsm;udk umuG,frIjyK&rnf jzpf\/ rdrd image rsm;wGif surround pixel vif;aom transparent layer rsm; jzpfaeaprnf/ rdrdonf Photoshop 5.5 odkYr[kwf Fireworks 3 ESifh vkyfudkifaeygu halo rsm;ukd um uG,f&ef taumif;qHk;enf;vrf;rSm Matte color rS ta&mifwlzdkY csdefnd§,ljcif;yif jzpfonf/ yHkpHudk Figure 14-16 wGif jrifawGYEdkifonf/ GIF file tm; transparency ESifhtwl export vky, f v l adk omtcg anti-aliased edge rsm;onf rdrd image wGif aemufct H a&mifEiS hf a&maESmoGm; apjyD; halo rsm; aysmufoGm;ygvdrhfrnf/ 278
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 14-16 Halo rsm; tumtuG,jf yK&ef Matte feature tm;
toH;k jyKykH
f Photoshop 5.5 wGifFile menu rS "Save for Web" udk a&G;cs,í cs,yl g/ rdrd web page rS aemufct H a&mifukd nTe;f qdEk idk o f nf/
ta&mifaumuf,&l ef Matte udk
Result
ñTe;f qdak om Matte color ESihf anti-aliased edge rsm; a&maxG;aeonf/ Page ay:oYkd wifvu dk af omtcg tqkyd g qufpyfaeaom taMumif;t&mrsm; aysmufoGm;apygvdrhfrnf/ Fireworks 3 wGif Matte Option udk Optimize palette rS &Ekid o f nf/ Palette ay:wGif click vkyí f rdrad &G;cs,v f adk om
ta&mifukd aumuf,yl g/
a&G;xm;NyD; matte color
ESifhtwl jrifawGU&aom layer graphic
rdrd page ay:wiG f ay:vmaomtcg jrifawG&Y rnfh Transparent GIF
tu,fí rdrdonf Photoshop odkY JASC Paint Shop Pro ta[mif; version rsm;udk toH;k jyKaecJyh gu layer opfwpfcjk zifh jyKjyifvyk af qmif,&l rnf/ rdrd page \ aemufct H a&mifEiS hf jznfh,lum "stack" [lonfh layer wpfckudkatmufrS cHay;vkdufjcif; jzpf\/ Image onf flattened jzpfaeaomtcg anti-aliased edge rsm;onf Figure 14-17 wGif azmfjyxm;ouJhodkY oufqkdifonfh aemufcHta&mifESifh a&mvsuf jzpfoGm;ygvdrhfrnf/ xkdYaemuf expent vkyfpOf twGif; aemufcHta&mifudk transparent jzpfap&ef a&G;cs,fvkduf½Hkomjzpfonf/ þenf;jzifh halo jyóem&Sif;oGm;apygonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
279
Figure 14-17 rdrw d iG &f adS om tool ü Matte function r&Scd yhJ gu ½k;d &Si;f pGmjzifh layer opfwpfcu k kd zefw;D vdu k yf g/ Image aemufu, G w f iG f zefw;D ,l&rnf/ tqkyd g layer \ ta&mifonf rdrd web page \ aemufct H a&mif jzpfap&rnf/ GIF wpfcu k kd zefqif;&ef image udk udik w f , G &f mwGif antialiased edge rsm;onf aemufct H a&mifEiS hf a&moGm;yg vdrrfh nf/
Preventing Unwanted Transparency
tcsKUd aom tajctaersm;wGif rdrd image \ ywfvnftpGe;f uvem;rsm; &Sad eonfukd awGYae& wwfonf/ xdt k cg rdrt d aejzifh eyedropper tool wpfcu k kd toH;k cscv hJ Qif tqkyd g tajctaersm; aysmufoGm;ygvdrhfrnf/ Figure 14-18
tjzLa&mif wd;k vQK;d ayguyf pkH jH zifh jyKvyk &f ef eyedropper wpfcu k kd toH;k cscv Jh Qif rdrd image twGi;f rS tjzLa&miftm;vH;k onfvnf; transparent
jzpfoGm;vdrfhrnf/
tu,fí rdrdonf Photoshop 5.5 odkYr[kwf Fireworks 3 udk toHk;jyKcJhvQif tvm;wl jyóemrsKd;rawGY&ay/ taMumif;rSm Matte feature onf rdrdqdkvdkaom tjzLa&mifESifh tjcm; tjzLa&mifrsm;udk oD;jcm;aqmif&Gufay;EdkifaomaMumifh jzpf\/ xkdodkYaom tcGifhtvrf;rsKd;ukd ,cktcg vltrsm;pk toHk;jyKaeMuNyD jzpfonf/ rnfoYkd yifjzpfap orm;½d;k us tool rsm;udk ydrk kd OD;pm;ay; toH;k jyKaecJyh gvQif abmifuvem; ta&mifudk ajymif;,lonfh ½dk;½dk;enf;jzifhyif opaque color udk rGrf;rH&if; ajz&Sif;,lEkdifygonf/ image onf flattened jzifh xm;NyD;aemuf color swap zefwD;,lonfhoabm jzpfonf/ Figure 14-19 wGif jyxm;onfhtwkdif; ta&mifopfwpfck jznhfwif;,laomtcg ¤if;\ antialiased edge wpfckckudk ra&G;cs,frd&ef owdjyK&rnf/ 280
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Figure 14-19 Photoshop wGif rvdv k m;tyfonfh transparency udk umuG,jf cif;
Layered image wpfcjk zifh
pcJv h Qif ¤if;udk save vkyíf layer rsm;udk flattened vky, f v l u dk yf g/ atmufq;kH layer onf halo udk umuG,af &;twGuf web page &Sd aemufcH ta&mifjzifh jznhw f if;Ny;D jzpfaeap&ygvrd rhf nf/
rdrd transparent jzpfapvkad om image \ tjyifbufay:wiG f ta&mif a&G;cs,&f ef Magic Wand udo k ;kH yg/
Image tm; Indexed Color odYk ajymif;,lyg/ Ny;D vQif GIF 89 a jzihf export vkyyf g/ Export dialog box wGif xd;k azmuf jrifvadk omta&mifukd a&G;,lyg/
rdrd image wGif &Sdraeaomta&mifudk aocsmpGm a&G;cs,Nf y;D rlva&G;cs,Nf y;D aomae&mwGif jznf, h yl g/ (yHw k Gif t0ga&mifawmufawmufjzifh a&G;cs,f,lxm;onf/) rS w f p k Magic Wand &Sd tolerance udk "1" jzifh csed n f x §d m;&ef
ta&;BuD;onf/ xdkYaemuf anti-aliased udv k nf; ydwx f m;&rnf/ rdrd image xJrt S a&mifudk ra&G;cs,rf &d ef owdjyKyg/
,ckawmh soft edge rsm;onf anti-aliased taejzifh tjzLodaYk jymif;oGm;onfh rlvyHyk g image tjzLa&mifrS tvkv d kd
vufawG o Y ifcef;pmrsm;
281
Optimizing GIFs
wGif tjrJwrf; em;vnfoabmayguf&onfh ]rdrd\ file rsm;udk i,fEkdiforQ i,fatmif jyKvkyfxm;yg/} [laom Oya'oudk rSwfrdrnfxifygonf/ txl;ojzifh *&yfzpfzdkif rsm;udk txl;*½kpu dk u f m xkOd ya'oESit hf nD aqmif&u G &f rnf jzpf\/ okYd twGuf tusK;d qufrsm; ydkí &Ekdifap&ef GIFs rsm;udk optimize vkyf,l&ayvdrfhrnf/ Optimize vkyf,lonfqkdonfrSm twwfEkdifqHk;tqifhtxd ao;i,fatmif vkyf,lEkdifrIudk nTef;qkdygonf/ GIF file rsm;udk Optimizing jyKvkyf,laomtcg wax&mwnf;jzpfaom pixel color rsm;\ twef;rsm;udk cyfpdyfpdyfvkyf,ljcif;jzifh zdodyfrIudk jyKvkyfonf[k rSwf,lxm;&onf/ tqkyd gvkyef nf;vky[ f eftrsm;pk\ aemufq;kH &v'fonf yH&k yd w f iG f Solid Color {&d,mydí k zefw;D ay;jcif;yif jzpfonf/ tu,fí rdro d nf Photoshop 5.5 okYdr[kwf ¤if;txuf? okdYr[kwf FireWorks udk toHk; csaeygu rdrcd sden f x d§ m;rI\ xda&mufyu kH kd csufcsif;ppfaq;Munh½f EI idk jf cif;? wpfzufEiS w hf pfzuf? wpfae&mESihf wpfae&myif EdiI ;f ,SOMf unhEf idk jf cif;uho J Ydkaom erlem zefw;D rItykid ;f vkyaf qmifay;Ekid f onfh tool tajrmuftjrm;udk awGU&rnfjzpf\/ Web design
Figure 14-20 Photoshop ESihf Fireworks uJo h aYdk om Web tool topfrsm;onf rdrzd efw;D ,laom
yk&H yd t f ajctaet&yf&yfudk MuKd wifo&d &dS ef ykpH t H aetxm;trsK;d rsK;d jzifh zGi, fh Ml unf½h cI Giahf y;onf/ Photoshop
Fireworks
282
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Reduce the Number of Colors
Bit Depth
GIFs wGif 256 colors txdom yg0ifxm;onfqadk omf
jim;vnf; ,ckvkyfief;wGif rnfolrQ ta&mifrnfrQ&Sd rnf[k owfrSwfxm;jcif;r&Sday/ okdYtwGuf rdrdwkdY taejzifh yHk&dyftwGif;rS ta&mifta&twGufudk avQmh oHk;Ekdifygonf/ (Oyrmtm;jzifh ¤if;\ bit-depth udk avQmhcs&rnf/) Figure 14-21 wGif jrifawGU&ouhJokdY file t&G,ftpm;udk avQmhcsoGm;í&onf/ Bit depth edrfhoGm;aom file rsm;wGif yg0ifonfh data udk avsmh enf;oGm;apaomoabm jzpfonf/ tjcm; enf;wpfck rSm ta&mifudkavQmhí flat color {&d,mudk ydk,ljcif; jzpfonf/ Pixel color rsm;wGif common boundry ac: yHrk sOf; owfrw S , f v l u dk o f nfo h abm[k qk&d rnf/ Flat color ydk&avav file ao;i,fatmif zdodyfrI vkyfief;twGuf tusKd;&Sdavav[k rSwf,lEkdifonf/ GIF format jzpfatmif save vkyjf cif;? okYd r[kwf export vkyfjcif;wkdYtwGuf *&yfzpfy½kd*&rf tm;vHk;
qkdonfrSm *&yfzpf wpfckwGif yg0ifaom ta&mif ta& twGuf tjrifq h ;kH udk nTe;f qkyd gonf/ atmufygZ,m;wGif ta&mifta& twGuf ukd,fpm;jyK bit-depth rsm; udk jrifawGUEkdifonf/ Bit depth
1-bit 2-bit 3-bit 4-bit 5-bit 6-bit 7-bit 8-bit 16-bit 24-bit
2 colors 4 colors 8 colors 16 colors 32 colors 64 colors 128 colors 256 colors 65,536 colors 16,777,216 colors
(omreftm;jzifh oef;udef;*Pef;jzifh jyavh&Sdonf/)
avmufeD;eD; aqmif&Gufay;Ekdifjcif;aMumifh ta&mif Web tool topf r sm;onf (okYdr[kwf bit-depth) ta&twGuf tao;pdwf azmfjy ta&mif ta&twGuf a&G;cs,fEkdif&ef ay;ygvdrhfrnf/ pD p Of x m;ay;wwf o nf / Photovkyfief;wpfckwGif rdrdtaejzifh ta&mifavQmhcsrI shop version ta[mif;rsm;uhJokdY udk tvGet f rif;&Scd v Jh Qif yH&k yd o f nf jym;oGm;wwfonf/ *&yfzpfqkdif&m tool tcsKdUonf popFigure 14-21 wGif jyxm;onht f wkid ;f 256 colors rS up menu rSwpfqifh oG,f0kdufaom enf;jzifh ta&mifta&twGufudk a&G; Figure 14-21 cs,f,lEkdifygonf/
yk&H yd w f pfcrk S ta&mifavQmch sraI Mumifh zkid t f &G,t f pm; ao;i,fvmykH WEB DESIGN
vufawG o Y ifcef;pmrsm;
283
8 colors okdY avQmhcsvkdufonfhtcg oufwefYa&mifrsm; aysmufoGm;awmh\/ avQmhcsvdkufonfh tqifhtvdkuf wpfyHkESifhwpfyHk uGmjcm;csuf &Sdvmonf/ 5 bit okYdr[kwf 32 pixel colors wGif toifah vsmq f ;kH jzpfaMumif; prf;oyfvyk u f idk Mf unho f nfh tcg awGUvmygvdrhfrnf/ (omreftm;jzifh xko d Ydk ta&mifavQmch s&mwGif taumif;qH;k ? toifah vsmf qHk; tajctaexuf tenf;i,fjr§ifhay;xm;&onf/) avQmhcsxm;rIxuf ravQmhrDyHk&dyfrSm ykdí om;em;aernfjzpfonf/ t"du&nf&G,fcsufrSm ta&mifudk enf;EkdiforQenf;apNyD; file t&G,f tpm;udk ao;EkdiforQao;&ef zefwD;jcif;ukdom OD;wnfvkyfudkif&ef&Sdonf/ wu,fwrf; save vkyfrnfhtqifhwGif flat color rsm;ae&efom ta&;BuD;onf/ tMurf; zsif;tm;jzifh 8 pixel colors txd avQmhcsvQif tqifajyaMumif; rSwo f m;xm;Ekid o f nf/ Reduce Dithering
Dithering qkdonfrSm Palette color rsm;udk r&Ekdifaomta&mifrsm;udk rjzpfrae pkpnf;aygif; pyfrIjyKvkyf zefwD;,lvkdufaomtcg rdrdyHk&dyfwGif tpuftajymuf yHkoP²mefrsm; ay:vmjcif;udk ac:onf/ yHk&dyfwpfcktwGif;&Sd ta&mifrsm;udk Specific palette wpfcktjzpf avQmhcsvkdufaom tcg ¤if;ta&mifrsm;onf Palette twGif;ü dithering jzifh teD;pyfqHk;taetxm; jzpfvm onf/ Figure 14-22
Dithering yrmPudk avQmch sjcif; okrYd [kwf turning off onf file
t&G,ftpm;ukd avsmhoGm;apygonf/ erlemyH&k yd Ef pS cf u k kd ,SOMf unhjf cif;tm;jzifh dithering &So d nfyh EkH iS hf r&So d nfyh u kH kd awGUjrifEkdifonf/
"mwfykH yH&k yd rf sm;twGi;f wGif dithering onf odyt f a&;BuD;aomjyóem r[kwaf y/ tusKd; &v'fyif &SEd idk af pygonf/ rnfoYdk yifjzpfap flat {&d,mrsm;twGi;f &Sd dithering onf omreftm; jzifh ta&mifysHUvGifhjcif;? rvdkvm;tyfonfh jrifuGif;rsKd; jzpfvmapjcif;wkdYudk awGU&wwfonf/ tjriftm½Hk tvStyobm0rsKd;udk ysufjy,fapjcif;aMumifh dithering udk odyfvkdvkdvm;vm; 284
WEB DESIGN
vufawG o Y ifcef;pmrsm;
&SMd urnfr[kwaf y/ taMumif;rSm acsmarGUajyjypfaeaom ta&mif{&d,mrsm;wGif tpuftajymuf rsm;u pdwt f aESmift h ,Sujf zpfaponfh oabm oufa&mufaejcif;aMumifh jzpfonf/ qkv d o dk nfrmS f m;pOf tajctaewGif rodrom&Sdvmaomfvnf; tpuftajymufrsm; rsm;aejcif;onf GIF zdEydS x yHkBuD;BuD; zGifhvkdufonfhtcg ododomom ay:xGufvmygvdrfhrnf/ ydkvQHaeaom byte rsm;udk GIF wpfckwGif jcpfxkwf,lEkdirf nfh enf;vrf;wpfcrk mS dithering yrmPudk uefYowfay;&efyif jzpfonf/ wpfzef GIF-creation tool rsm; tm;vH;k avmufeD;eD; onf dithering zGifhxm;rI? ydwfxm;rIwkdY ajymif;vJEkdifcGifh &Sdonf/ Sliding scale wpfckay:wGif dithering yrmP ppfaq;csdefwG,frIudk Photoshop wGifjzpfap? Fireworks wGifjzpfap xnhf ay;xm;\/ odkYtwGuf yHk&dyftwGif; dither setting \ tajctaeudk BudKwifjrifawGUEkid yf gonf/ tqkyd g jrifawGU&csuftay: rdrdqHk;jzwfvkdonfh tajctaejzifh qHk;jzwf,lEkdifaMumif; Figure 14-22 wGif jrifawGUEkdifonf/ Lossy GIFs
apmapmykdif;u aqG;aEG;xm;&SdNyD;jzpfonfhtwkdif; GIFs jzifh zdodyfrIvkyfief;onf "lossless" [k qkdnTef;xm;chJonf/ qkdvkdonfrSm yHk&dyfrsm;twGif;&Sd pixel wkdif;onf zdESdyfpOfumvtwGif; raysmufrysuf rqHk;½HI;EkdifaMumif;yifjzpfonf/ okdY&mwGif rdrdonf Photoshop 5.5 (okdYr[kwf txuf) ESifh Fireworks wGif&Sdaom "Lossy" okdYr[kwf "Loss" setting udk toHk;csNyD; rvdk vm;aom pixel tcsKdUudk xkwfypfívnf; &Ekdifygao;onf/ wpfzef xkdokdYxkwfy,fxm;onfh stray pixel rsm;onf tjywftawmuf r&Sdaom pixel color wef;rsm;\ ta&twGufudk tjrifhqHk;tqifh trSwftom;rsm; tm;vHk;jzpfaeapjyefonf/ GIF zdodyfrIwGif cGifhjyKxm;aom vkyfcsufwpfckjzpf\/ yHk&dyftay: rlwnfí yHk&dyft&nftaoG; ododomom rusqif;Ekdifaprnfh Lossy okdYr[kwf Loss value wpfckudk 5 &mckdifEIef;rS 30 &mckdifEIef;txd toHk;csEkdifonf/ Continuous tone art tEkynmta&miftaoG; qufvuf&&SE d idk af &;vkyif ef;pOftwGuf taumif; qH;k enf;vrf;jzpfonf/ (JPEG jzifh continuous tone tm;vH;k udk odr;f qnf;xm;apygvdrrhf nf) rdrt d aejzifh "mwfykH content ESifh flat wdkY aygif;pyfxm;onfh yHk&dyfwpfckudkom BudK;pm;vkyfaqmif &efomjzpf\/ Figure 14-23 Lossy (Photoshop) odkYr[kwf Loss (Fireworks) value wpfcu k kd toH;k csro I nf Pixel tcsKu Ud kd z,fxw k yf pfum file t&G,t f pm;udk ao;oGm;aponf/ 64 colors yg0ifaomyHk ESihf Diffusion dither
toH;k csxm;aom yHEk pS cf v k k;H udk yHw k Gif jyoay;xm;onf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
285
Design For Compression
rdrdwkdYonf rdrd\ GIFs rsm;\ t&G,ftpm; avsmhusapa&;twGuf &Sdaeaom tool rsm;jzifh csden f jd§ yKjyifru I ekd nf;vrf;trsK;d rsK;d jzifh aqG;aEG;chMJ uonf/ okYd&mwGif xko d Ydkaom tajctae tqifh ra&mufrDrSmyif zdESdyfrI'DZkdif;jzifhvnf; vkyfukdifEkdifygao;onf/ Keep It Flat
Web designer wpfOD;taejzifh tawmftwifh tqifh&Sdaom taetxm;rsKd;ESifh udkufnDaprnfh illustration style udk ajymif;xm;Ekdifonf/ vufiif;tajctaet& gradient blend wpfckudk toH;k jyK,lonf/ Flat color wpfcu k kd a&G;cs,, f v l u dk o f nf/ udpaö wmfawmfrsm;rsm;wGif þenf;jzifh tqifajyoGm;wwfonf/ Figure 14-24 jyuGuf wGif jrifawGU&onfhtwkdif; gradient blend jzifh wpfrsKd;wpfa&mifudk avQmhcsí wpfzHk? flat color rsm;jzifhwpfoG,f &&Sdayvdrfhrnf/ Figure 14-24 GIFCompression Scheme \ tusK;d qufudk &,laomenf;ukd tok;H csum 'DZidk ;f vkyjf cif;jzifh
zkid t f &G,t f pm;trsK;d rsK;d ukd xm;Ekid o f nf/
Color Value ukd 8 txd
Gradient blends ESifh 256 colors &Sad eaom GIF ykH (zkid t f &G,t f pm; 19 K
avQmch sjy;D pOf jrifawG &Y aom GIF ykH (zkid t f &G,t f pm; 7.6 K jzpfonf)
jzpfonf)
wlnaD om yk&H yd fwpfcu k ydk if enf; tpm; flat color ,lxm;í &&Sx d m;aom GIF ykH (zkid t f &G,t f pm; 3.2 K jzpfonf) blends
Play with Horizontal Stripes
Web graphic rsm;twGuf 'DZkdif;vkyf,laomtcg horizontal band ta&mifrsm; tay:wGif compression vky& f efuo kd m pdwu f ;l xm;&rnf/ cGmcRwrf w I pfcck k vkyaf wmhrnfqydk gu a'gifvu dk f
xuf tvsm;vkduf cGmcRwfrIu ydkrkdtqifajyonf/ Figure 14-25 GIFs 'DZidk ;f vkyif ef;wGif vertical band rsm;ukd compress vky, f jl cif;xuf horizontal band rsm;ukd compress
vkyf,ljcif;u ykdrdkxda&mufrI&Sdonf/
286
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Web design vkyfief;wGif trsm;qHk;enf;vrf;wpfckrSm "mwfyHk image wpfckay:okdY 1-pixel yrmPtus,f&Sd horizontal line rsm;udk cs,ljcif;yifjzpfonf/ yHk&dyfudk tvsm;vkduf vdkif;rsm; jzwfxm;onfhtaetxm;rsKd;jzifh jyoay;onf/ odkY&mwGif GIF compression onf image area \ xl;jcm;aom tpdwt f ydik ;f rsm;ay:wGif vSnjfh zm;vkyu f ikd f ,lEidk o f nf jzpfaMumif; Figure 14-26 wGif jrifawGUEdkifonf/ Figure 14-26 Photographic Image wpfct k ay: 1 pixel twGuf vkid ;f rsm;
jzwfxm;onfh ykHpH xnfhoGif;xm;jcif;onf zkdift&G,ftpm;ukd ao;,ljcif;twGuf 'DZkdif;enf;vrf;wpfrsKd; jzpfonf/ Designing with the Web palette
Web twGuf GIFs 'DZi dk ;f vkyjf cif;ESiyhf wfoufí tjcm;u@wpfcrk S rnfonfah e&mwGif rnfoYdk Web palette udk toH;k cs,r l nfqo dk nhu f @yif jzpfonf/ Web palette onf yDprD sm; okYd r[kwf ruf uGefysLwmrsm;ay:wGif dither rjzpfapaom 216 color wpfpHk[k t"dyÜm,f zGifhqkdEdkifonf/ ¤if;onf t"du browser rsm;tm;vH;k wGif wnfaqmufxm;&S\ d / 8-bit armfew D m (256 colors om display vkyfEkdifonfhacwfu armfeDwm) wpfckudk toHk;jyKaeonhf uGefysLwmwpfvHk; ay:wGif browser wpfcu k kd vnfywfaeapaomtcg page ay:wGif ta&mifrsm; jyKjyifzefw;D &ef Web Palette qdo k nfrmS rnfonhyf pkH eH nf;
Web palette twGif;&Sd colors rsm;onf toifha&G;cs,fxm;jyD;om; r[kwfay/ teDa&mif? tpdrf;a&mifESifh tjymazsmhawmhawmhwYdkukd rQrQww aygif;pyf jyoay;xm;um 20 &mckid Ef eI ;f pD tqifhvkduf jr§ifhwifay;xm;NyD; &&Sdxm;onfh tajctaersm; jzpfaom aMumifh Munhf½I&ef jyoay;xm;jcif;om jzpfonf/ Web color rsm;onf light-based jzpfojzifh xkdodkY yuwd jrifawGU&onfh tae txm;twkdif; yHkxkwf,lonfhtcg xGufrvmEkdifay/ xkdtaMumif;ESifh ywfoufí þ oifcef;pmrsm;wGif tao;pdwf aqG;aEG;vdrfhrnf r[kwfay/ Web palette twGif;rS erlemtm;vHk;udk Munhf½I&ef Photoshop Swatches palette twGif; ¤if;wkdYudk wif,l&onf (tajctaeudk Figure 14-27 wGif jrifawGUEkdif onf/) okdYr[kwf www.learningwebdesign.com wGif web palette chart udk Munhf½Ií&Edkifygonf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
287
Figure 14-27
þ GIFs rsm;onf non-web-safe f m;onf/ colors rsm;ESihf 'DZikd ;f vkyx odt Yk wGuf 8-bit armfew D mrsm;ay: wGif dithering rsm; &Sad e\/
24-bit armfew D mwpfck ay:wiG f solid color rsm;onf
wdwu d sus &Sad eí acsmrGwaf jyjypfaeonf/
8-bit armfew D mwpfcak y:wiG f color rsm;onf web palette rS colors rsm; dithering vkyjf cif;jzifh teD;pyfq;kH color om jzpfae&onf/
tu,fí flat areas rsm;onf web-safe f l xm;chv J Qif "mwfyt kH ae color rsm;ESihf jznh, txm;onf tpuftajymufrsm;ESihf &Sad evdrrhf nf/ okaYd omf flat color rsm;rSmrl flat taetxm;jzifo h m &Sad eonf/
internal web palette rsKd;udk nTef;qdkvdkonf/ yHk&dyfrsm;twGif;rS color rsm;onf web palette twGif;rS color rsm;udk jyefvnf ae&mcsxm;rIyifjzpfonf/ Color rsm;udk palette ao;ao;av;ay:okdY shifting ESifh dithering vkyfonfh tcg rnfokdY jzpfvmonfudk erlemawmfawmfrsm;rsm; jrifchJMuNyD;jzpfonf/ odkY&mwGif browser rS trSew f u,f toH;k jyKrnfh ta&miftwdtus od&&dS ef tcGit hf vrf;awmh tenf;qH;k &So d iho f nf/ yxrae&mwGif tqkyd g 'web-safe' color rsm;udk rdrw d Ydk toH;k jyKchv J Qif 8-bit armfew D mrsm;ay:wGif &Sad ernfh BudKwifwu G q f í r&Ekid af om tjcif;t&mrsm;udk tumtuG,jf yKEkid o f nf/ rnfoYdkyifjzpf ap rdrdwkdY\ *&yfzpfrsm;onf platform wpfckrSwpfckokdY tajymif;tul;wGifjzpfap? toHk;jyKol wpfOD;rS wpfOD;odkY vufurf;,lonfhtcgwGifjzpfap vdkufavsmnDaxG jzpfaeapygvdrfhrnf/ tcef; 12 u Web ay:rSta&mifrsm;taMumif;wGif HTML document twGif; rnfokdY toHk;cs,lrnf? web palette udk rnfokdYpDrHvkyfaqmifonf ponfwkdYudk vufawGUusus &Sif;jy chJNyD;jzpfonf/ odkY&mwGif GIF graphic rsm; zefwD;,ljcif;? 'DZdkif;jyKvkyfjcif;wkdYwGifvnf; Web palette u@onf qufvuf yg0ifaernfjzpf\/ Flat color oH;k image rsm;wGif dithering r&Sad p&ef toH;k 0ifaeqJ[k qk&d rnf/ Starting with Web-safe Colors
Image rsm;udk yHkMurf;rSzefwD;,lonfhtcg rdrd'DZdkif;wGif web-safe color rsm; toHk;csjcif;jzifh
jynhf0aom tcGifhtvrf;udk &&Sdaponf/ tusKd;qufrSm rdrd\*&yfzpfrsm;udk toHk;jyKoltm;vHk; wGif wlnDpGm jrifawGYEkdifvdrfhrnfjzpf\/ t"du tm;enf;csufrSm tqkdyg color a&G;cs,frIwGif 288
WEB DESIGN
vufawG o Y ifcef;pmrsm;
udk xnho f iG ;f rpOf;pm;vko d nft h cg Web palette twGufxnhfoGif;rpOf;pm;vkdonfhudpt ö wGuf om"utcsKdU &Sdaeygonf/ Web Palette
8-bit armfew D mrsm;wGif rnfo&Ydk rdS nfukd xnfo h iG ;f rpOf;pm;vQif
onf 8-bit armfeDwmrsm;twGufom jyKvkyfxm;aMumif; azmfjychJonfudk rSwfrdaeygvdrfhOD;rnf/ 16-bit ESifh 24-bit armfeDwmrsm;taejzifh rnfonhf image ESifhrqkd wdusjywfom;pGm cif;usif;jyoay;Ekid o f nfqo dk nft h csufuv kd nf; arhxm;í r&ay/ odYk yg í rdrd site \wifjycsufrsm;rSm Low-end system ESihf rywfouf[, k q l xm;ygu ¤if;udk xnhfoGif;pOf;pm;&ef rvkdawmhay/ okdYyifjzpfjim;vnf; 'DZkdif;oabmt& pdwf0ifpm;rI&Sdygu "Lowest common denominator" tay: ½Ijrifynwfvy dk gu oHk;oyf&efom xnhfay;xm;jcif;jzpfonf/ rdrd client rsm;onf rdrdwkdY oufqkdif&m site rsm;ay:wGif t&nftaoG; udkufnDrIudk y"mejyKí ajymqkdEkdifaprnfhoabmyif jzpf\/ Web palette
rdrd image onf "mwfyt kH ajccHtqihf jzpfaevQif yxrOD;pGm rdrt d aejzifh "mwfyo kH abmobm0 image wpfct k jzpf pxm;chrJ u d rdrt d aejzifh ¤if;udk JPEG format wGif save vkyfvdrfhrnf[k ajymqkday;ygvdrfhrnf/ okdYaomfrdrdu GIF taejzifhom save vkyf,lrnf[k ajymvkduf&rnfhtaMumif;rSm ta&mifrsm; avQmhcsvkdaom qE´&Sdí ditherthing tqifhajymif;,lvdkjcif;aMumifh jzpfonf/ "mwfyHk image rsm;wGif dithering jzihf jyKjyif,lvkdonfh oabmyif/ xkdYaMumifh web palette udk toH;k rcsv[ dk rk w S cf suaf y;vku d &f ma&mufomG ;\/ ajymif;vJzefwD;rI vkyfief;pOf wGif adaptive palette wpfcu k kd a&G;cs,v f u dk jf cif;onf taumif;qH;k a&G;cs,frI jzpf\/ rdr\ d image onf JPEG format jzpfaechv J Qif Web palette onf JPEG image rsm;twGuf toH;k jyK&efroifah vsmfay/ JPEG wkYdrnfonf palette rsm;udk toH;k csí color ppfaq;rIudk rjyKaomaMumifhjzpf\/ ydkí ta&;BuD;onfrSm rlv image wGif web-safe color rsm;twGuf flat area rsm; r&Sv d Qif JPEG compression vkyif ef;pOfü taESmift h ,Sujf zpfaponf/ GIF udpt ö wGuo f m Web-palette jzifh 'DZdkif;vky, f l Muonf/ uefYowfrI&Sdaejcif;yifjzpfonf/ 216 rsKd;rS a&G;cs,f,l&½HkrQru ta&mifzrf;,lrIEIef;xm;wGif vnf; pdwMf udKufr&Edik af y/ (Web palette wkYd rnfonf *Pef;ocFsmoabmt& aqmif&u G af y; aewwfonf/ tEkynmoabm rygay/) WEB DESIGN
vufawG o Y ifcef;pmrsm;
289
Swatche palette wpfckwGif web palette \ &Edkifaom color rsm;onf tawmf tajym& cufvSonf/ uHtm;avsmfpGm web graphic rsm;twGuf awmif;qdkrIESifhtwl web palette wGif *&yfzpfvkyfief; toHk;csy½kd*&rftrsm;pkwGif yg0ifxm;&Sday;xm;chJ\/ Adobe Photoshop (5.0 ESifh txuf) Macromedia Fireworks (1.0 ESifh txuf) JASC Paint Shop Pro (5 ESifh txuf) Adobe Illustrator (7.0 ESifh txuf) Corel (,cifu Meta Creation ) Painter (6 ESifhtxuf) Macromedia Freehand (7.0 ESifh txuf) Macromedia Director (5.0 ESifh txuf) Macintosh System Color Picker OS8 ponfwkdYwGif uefYowfxm;csufr&Sday/ Web palette udk trnfa0g[m&trsKd;rsKd;jzifh awGUjrifEdkifygvdrfhrnf/ Netscape palette, Web 216, Browser-safe palette, Non-dithering palette, 6 x 6 x 6 Cube ponfwkdY jzpfonf/ Photoshop ESifh tjcm; *&yfzpf tool rsm;wGif CLUTs [kac:aom file rsm;wGif palette udk save vkyfxm;wwfonf/ CLUTs qkdonfrSm Color Look-Up Tables \ twkdaumuf a0g[m&jzpfonf/ Fireworks uho J Ykd aom tool tcsKUd wGif CLUT file jzpfvmap&ef vky, f o l nfh vkyfief; tqifhrsKd; oihfavsmfovkd xm;ay;ygonf/ Photoshop wGif rnfokdY vkyfudkifonfudk Figure 14-28 wGif awGUjrifEkdifonf/ Applying the Web Palette
Web-safe colors toHk;csxm;onfh rdrd image jzpfaMumif; tjcm;enf;vrf;wpfckrSm RGB rS indexed color okdYajymif;,l&onfhvkyfief;pOfwGif Web palette ukd toHk;cs,l&efyifjzpfonf/ Tip Photoshop rS Browser Dither Preview udk toHk;csí 8-bit qkdif&m
tajctaewGif yHk&dyfudk jrifawGUEkdif yHkudk ½IjrifEkdif&ef yHkaqmifay;xm; onf/ Optimization ESifh ywfoufí pOf;pm;qHk;jzwf&mwGif taxmuftul jzpfaponf/
290
WEB DESIGN
vufawG o Y ifcef;pmrsm;
,cktcg Web Safe
Figure 14-28 Photoshop
wGif
Web palette
udk wif,jl cif;
Color udk a&G;Ekid yf gNy/D þae&mwGif eye dropper tool udk oH;k í rdrd image tay:
toHk;cs&rnfjzpf\/
udk zGiMhf unhyf g/ ¤if;rS nmbufaxmifhtay:em;wGif pop-up menu udkzGifhum k kd ae&mowfrw S &f ef Color Palette wpfcu 'Load Swatches' udk ay;ygvrd rhf nf/ Photoshop wGif →Goodies → a&G;ívnf;aumif;? "Replace Color Swatches (okrYd [kwf Color Palettes) Swatches" udak &G;í udo k Gm;ívnf;aumif;? okrYd [kwf Web Hues udk vnf;aumif; zGifh,lEkdio f nf/ a&G;ívnf;aumif;? Photoshop wGif Web Load Swatches onf k nf;aumif; Web Safe Colors udk spectrum udv rdrv d uf&dS swatche tm; vnf;aumif; a&G;&ygrnf/ jznhpf Gu&f efjzpfNy;D Replace Swatches onf rdrd swatche tm; Web-Palette ESihf vJv, S , f &l ef jzpf\/ Swatches palette
rnfonfh tool wGifrqkd GIF wpfcktwGif; rdrd image udk jyKvkyf&ef a&G;cs,f,lvkdufonfESifh? okYdr[kwf indexed color udk ajymif;,lvu dk o f nfEiS hf image twGuf palette wpfcu k kd a&G;cs,&f ef ar;vmygvdrfhrnf/ t½kd;t&Sif;qHk;ESifh qef;jym;aomenf;vrf;wpfckrSm palette twGuf ar;vmonfhtcg "web" [lonfh palette option udk a&G;cs,f,l&efjzpfonf/ GIF azmfxkwfrItwGuf color table onf Figure 14-29 wGif jrifawGU&onfhtwkdif; web palette rS oD;jcm; color rsm; ygaeygvdrfhrnf/ topfxGufvmaom web graphic tool rsm;onf ajymif;vJrIvkyfief;pOfwGif Web-safe color rsm; toHk;cs&efESifh odrf;qnf;&eftwGuf qef;opfaomenf;rsm; ydkrdkygvmwwfonf/ tqkyd genf;rsm;onf txl;ojzifh a&mifjynh"f mwfykH yHk&dyfrsm; flat ESifh web-safe color rsm; aygif;pyfyg0ifaeaom image rsKd;rsm;twGuf txl;toHk;0ifapygonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
291
Figure 14-29 Indexed color udk ajymif;a&TU jcif;twGuf vkyaf qmifaepOf umvtwGi;f web palette a&G;cs,&f ef tool awmfawmfrsm;rsm;u cGijhf yKay; onf/ Image twGuf Color Table f Qif web (Photoshop yHpk H) ukd ½IMunhv palette colors rsm; jrif&vdrrhf nf/
Fireworks 3 wGif "Web Adaptive" palette ESifhtwl odrf;qnf;jcif;twGuf option rsm;ay;xm;onf/ xkdYaMumifh palette onf image twGuf customized jzpfaeapvdrfhrnf/ okdYaomf web palette color rsm;okdY value ESifhwuG jyay;xm;onfh yHkpHrsKd;&Sdaom rnfonhf color rqkd web palette color rsm;ESifh teD;pyfqHk; qkyfudkifxm;ygvdrfhrnf/ Figure 14-30 Fireworks 3 rS Web Adaptive palette
cGifhjyKxm;yHk
Color Table Palette wGif image twGuf color table udk ½IMunhEf idk o f nf/
292
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Photoshop wGif adaptive palette (Adaptive, Perceptual, or Selective) wpfckudk a&G;cs,f,ljcif;jzifhteD;pyfqHk; web-safe equivalent rsm;okdY color ajrmufjrm;pGm ul;ajymif;rI jyKrnfudk xdef;csKyf,lEkdifonf/ Figure 14-31 wGif jrifawGU&onfhtwkdif; "Web Snap" slider tool udk oH;k Eki do f nf/ Slider tjrifo h Ykd wk;d jr§i, hf al vav Color rsm;rsm; ajymif;oGm;avav jzpfonf/ ¤if;rS image web-safe \ area rsm; csxm;pOf Custom color table wpfcu k kd wnfaqmuf&ef photoshop wGif jyKxm;NyD;jzpfonf/ Figure 14-31 Web-safe equivalent odYk color snap rnfrQ twdtus xde;f csKy, f rl nfukd Photoshop \ Web Snap Slider udo k ;kH yg/ Color Table wGif dot rsm;ESihf swatche wko Yd nf web-safe jzpfonf/ Preview Window av;wGif rdrd setting
taetxm;udk csucf si;f qko d vdk awGEU ikd o f nf/
Web Palette Strategies for Graphics
Web 'DZi dk ;f pwif vkyaf qmifMuolrsm;onf tawGUtMuHK r&Sad o;rD rdrv d yk o f rQ *&yfzpfwidk ;f wGif web palette ukd rSm;,Gif;pGm toHk;csaeMuavh&Sdonf/ wu,fwrf;rSmrl Web palette onf images yHp k t H rsKd;tpm;wkid ;f twGuf r[kwaf y/ Web palette onf *&yfzpfrsm;\ t&nftaoG;
udk avsmhusoGm;apEkid o f nfrmS trSeyf ifjzpfaMumif;udo k m odxm;&efjzpf\/ okYd twGuf ,cktcg web palette udk wkduf½kduftoHk;rcs&aomaMumifh ,cktcg web graphics tool rsm;jzifh vkdtyf ovdk toHk;jyKEkdif&eftvkdYiSm xl;jcm;qef;opfaom Option rsm;jzifh yhHydk;ay;xm;avh&Sdonf/
rnfonfhtcgrQ wdwdusus ckdifckdifrmrm Oya'otjzpf jy|mef;rIrjyKMuawmhbJ image wkid ;f tay: vkt d yfcsuEf iS t hf nD aqmif&u G v f u kd aqmif&u G af pEkid &f ef rzGirhf ydwf vkyaf y;xm;vku d f Muonf/ tqkdygudpt ö wGuf tajccHvrf;nTeftjzpf atmufygtwkdif; qufvuf avhvm,lEkdif ygonf/ WEB DESIGN
vufawG o Y ifcef;pmrsm;
293
Flat graphical images
vkyfief;pOfrsm;wGif tacsmudkifaepOf dithering rS flat color area tjzpf xm;,lvkduf&onf/ STRATEGY- image 'DZkdif;vkyfaeaomtcg ½kd;½kd; Web palette option udk toHk;rcsay/ taMumif;rSm anti-aliasing wGif color \ tqift h wef;tvdu k f aysmufomG ;rSm pd;k &draf om aMumifh jzpfonf/ tu,fí &Ekdifrnfqkdygu "Web Snap" wpfck yg&Sdonfh Adaptive palette wpfcu k kd a&G;cs,fvu dk jf cif;onf taumif;qH;k jzpfonf/ Photoshop wGif "WebSnap" \ yrmPudk Slider Scale ESifh csdefwG,fonf/ Fireworks wGifrl "Web Adaptive" palette udk toHk;csonf/ ¤if;onf rdrd\ flat area rsm;tay: web color udk xdef;odrf;ay;ygvdrfhrnf/ odkY&mwGif anti-aliasing twGif;&Sd color tcsKdUudk qufvuf wnf&SdaecGifh jyKay;xm;onf/ GOAL-
anti-aliased
Photographic images
toHk;jyKoltrsm;qHk;taetxm;twGuf &Sif;vif;jywfom;rI? color ckdifjrJrIudk xdef; odrf;xm;&rnf/ STRATEGY- yxrOD;pGm "mwfyHk image vHk;vHk;jzpfaevQif JPEG format jzifh save vkyf&ef pOf;pm;&rnf/ okdYr[kwfvQif GIF format odkY image udk ajymif;,lpOf Adaptive palette (Photoshop 5.5 txuftwGuf Selective udk a&G;&ef) wpfckudk a&G;cs,f&onf/ "mwfykH image wpfct k wGi;f rS color rsm; avQmch sonhf tcgwkid ;f dithering tenf;i,fawmh &oGm;ygvdrfhrnf/ odkYtwGuf image rS color ESifh udkufnDonfh palette wpfckudkom a&G; cs,, f &l onf/ xked nf;wGif image onf 24-bit armfew D m toH;k jyKolrsm;twGuf tqifajy qHk;[k qkd&rnf/ 8-bit armfeDwm toHk;jyKolrsm;twGuf Web palette ay:okdY wpfzefjyefí image udk tpDtpOfvkyfay;vdrfhrnf/ okdYaomf "mwfyHk image rsm;wGif omreftm;jzifh dithering jzifh xdckdufrIr&Sdapay/ Continuous-tone image wpfckudk Web palette toHk;cs&ef tusKd;qufom jzpfapygonf/ GOAL-
Combination images (both flat and photographic areas)
adaptive palette wpfckESifhtwl continuous-tone area dithering rS flat area udk xdef;odrf;xm;&rnf/
GOAL-
udk dither cGifhjyKxm;pOf
image udk 'DZkdif;jyKvkyfaeaomtcg flat areas wGif web-safe color udk oHk;& rnf/ GIF format jzifhodrf;qnf;rI? tjcm;okdY xkwfay;rIjyKvkyfcsdefwGif &EkdifvQif 'Web Snap' option wpfckESifh Adaptive palette wpfckudk a&G;cs,fxm;&onf/ Adaptive palette onf "mwfyHk{&d,mtwGif; color t&nftaoG; avsmhqif;rI r&Sdap&ef xdef;ay; xm;onf/ xkdtcsdefwGif "Web Snap" option onf flat area rS web-safe color rsm;
STRATEGY-
udk xdef;odrf;xm;ay;onf/ 294
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Some Things to Remember About GIFs
oifcef;pm 14 wpfckvHk;\ tcsKyfwGif t"dutcsufrsm;udk atmufygtwkdif; twdkcsKH; rSwfom; xm;Edkifonf/ - GIF onf Logo odkYr[kwf Line art odkYr[kwf text graphic ponfwkdYuhJodkYaom flat color area rsm; &Sdaeonfh image rsm;twGuf taumif;qHk; file format jzpfonf/ - GIFs rsm;onf Nidw, G af ponf? xk;d azmufjrifprG ;f apEkid o f nf? okYdr[kwf vIy&f mS ; aqmif&u G f ay;Ekdifaponf/ -
GIF wpfckonf 256 colors txd yg0ifEkdifaom color palette wpfckudk toHk;jyKonf/ GIF wpfcktaejzifh image wpfckudk save vkyfaomtcg indexed color odkY ajymif;&ef vkdtyfonf/ xkdYtjyif oifhavsmfaom color palette udk a&G;cs,f,l&onf/
-
Layered document wpfct k wGi;f &Sd transparent area rsm; xdef;odrf;xm;jcif;jzifh jzpfap? rSefuefaom transparency tool ESifh flattened image wpfcktwGif;&Sd color wpfck a&G; cs,f,ljcif;jzpfap GIF transparent wpfck\ tpdwftydkif;rsm;udk vkyf,lEkdifonf/
-
Page \ aemufcHta&mifxuf anti-aliased udk ta&mifwpfckckay;jcif;udk OD;pm;ay;xm; aomtcg Halo rsm; ay:vmwwfonf/ Image ywfvnftpyfrsm;wGif pixel rsm; ay:ae onfh oabmjzpfonf/ Halo rsm;udk jyKjyif&efxuf tumtuG,jf yK&efu ydrk v kd , G u f o l nf/
-
GIF file t&G,t f pm; ao;i,fap&eftwGuf enf;y&d,m,f tcsKdUrSm color rsm;\ flat area rsm;jzifh 'DZkdif;vkyfjcif;? indexed color okdY ajymif;,lonfhtcg color ta&twGuf avQmh csjcif;? dithering uefYowf,jl cif;? &Ekid v f Qif lossy GIF compression \ tcGit hf vrf;udk
-
&,ljcif;wkYd jzpfonf/ Web palette onf 8-bit armfeDwmrsm;ay:wGif&Sd browser twGif;&Sd dither r&Sdap&ef 216 colors pHkjzifh csdefn§day;onf/ Flat area rsm;&Sdta&mifwGif dithering r&Sdap&ef tumtuG,jf yK GIF image udk 'DZidk ;f jyKvkyaf omtcg Web palette rS color rsm; a&G;cs,f ,l&onf/
WEB DESIGN
vufawG o Y ifcef;pmrsm;
295
296
WEB DESIGN
vufawG o Y ifcef;pmrsm;
Adobe Photoshop CS2 vufawGUoifcef;pmrsm; - uGeyf sLwm*sme,fpmwnf;tzGu YJ Adobe Photoshop CS2 Classroom in a book udk wku d ½f u dk jf yefqkd a&;om;jyKpx k m;onf/ - uGeyf sLwmjzifh 'DZikd ;f a&;qGv J o kd rl sm;? 'DZikd ;f vkyif ef; aqmif&u G v f o kd rl sm;twGuf r&drS jzpf avhvm&rnfh oifcef;pm pmtkyf jzpfonf/ - oifcef;pmrsm;udk tydik ;f vdu k f cGjJ cm;a&;om; jyefqx kd m;jcif;jzpfí oifcef;pmwpfcck si;f udk tajccHrpS í avhusiEhf ikd o f vdk rdrd ESpo f uf&m tydik ;f udk a&G;cs,íf vnf; avhvmEdik yf gonf/ - *&yfzpf'ZD ikd ;f oifwef;wufaomolrsm;twGuf taxmuftuljyKapjy;D oifwef;rwufbJ ud, k w f ikd af vhvmvdo k rl sm;twGuv f nf; teD;uyf ydcYk say;aernfh pmtkyjf zpfonf/ vufawGv U yk if ef;e,fy,frS *&yfzpf'ZD ikd ef mrsm;? 0ufb'f ZD ikd ef mrsm;twGuv f nf; vufawGU taxmuftul jzpfapygonf/ - &efuek jf rKd w U iG f pmtkyq f ikd w f idk f;ESihf City Mart, Ocean North Point Centre, Super One, Yd iG f Blazon, Orange Super Mart wkw
0,f,&l &SEd ikd yf gonf/ uGeyf sLwm*sme,fwu kd o f Ydk wdu k ½f u dk rf mS Mum;0,f,El ikd yf gonf/ - rEÅav;jrKd w U iG f e*g;pmayESihf xGe;f OD;pmaywdw Yk iG f 0,f,&l &SEd ikd yf gonf/
xGuaf eygjyD
pmrlcGifhjyKtrSwf4008030606
pmrlciG jhf yKtrSwf 4012290610
- ya&mfzuf&iS ef ,f *&yfzpf'ZD ikd ef m yDo&ef r&Srd jzpf wwfuRr;f &efvt kd yfonfh Illustrator CS2 twGuf uGeyf sLwm*sme,fpmwnf;tzGu YJ Adobe Illustrator CS2 Classroom in a book udk wku d ½f u dk jf yefqkd a&;om; jyKpx k m;onf/
h Ykd line - Bitmap image editing twGuf Photoshop onf tjyKd irf &Sd ausmMf um;ouJo art rsm;? logo rsm; a&;qG&J ef Vector graphics twGuf Illustrator u txl;aumif;rGeo f nf/ - Classroom in a book onf Adobe Illustrator \ tajccHrsm; avhvm oif,&l ef NcKH irkH ad pNy;D ra&wGuEf idk af om rSwo f m;zG,f tcsurf sm;? enf;pepfrsm; yg0ifonf/ - oifcef;pmrsm;udk tydik ;f vdu k f cGjJ cm;a&;om; jyefqx kd m;jcif;jzpfí oifcef;pmwpfcck si;f udk tajccHrpS jy;D avhusiEhf ikd o f vdk rdrd ESpo f uf&m tydik ;f udk a&G;cs,íf vnf; avhvmEdik yf gonf/ U iG f pmtkyq f ikd w f idk ;f ESihf City Mart, Ocean, North Point Centre, Super - &efuek jf rKd w One, Blazon, Orange Super Mart wkw Yd iG f 0,f,&l &SEd ikd yf gonf/ uGeyf sLwm*sme,fwu kd o f v Ydk nf; wdu k ½f u dk rf mS Mum; 0,f,El ikd yf gonf/ - rEÅav;jrKd w U iG f e*g;pmayESihf xGe;f OD;pmaywdüYk 0,f,&l &SEd ikd yf gonf/
Adobe Illustrator CS2 vufawGUoifcef;pmrsm;
xGuaf eygjyD
- þpmtkyw f iG f uGeyf sLwmtajccHa0g[m&rsm;? xl;jcm;qef;jym;aom acwfopf uGeyf sLwmoH;k a0g[m&rsm;? pum;vH;k rsm;udk taMumif;t&m? bmom&yftvdu k f vk&d if;wd&k iS ;f azmfjyxm;onf/
pmrlciG jhf yKtrSwf - 4003990307
- uGeyf sLwmbmom&yfqikd &f m owif;tcsut f vufrsm;ESihf enf;ynmqdik &f m pum;vH;k rsm;udk us,jf yefpY mG xnfo h iG ;f azmfjyxm;onf/ twdak umuf pum;vH;k rsm;? t,ltquGjJ ym;wwfonfh pum;vH;k rsm;vnf; yg0ifonf/ - uGeyf sLwm enf;ynmqdik &f ma0g[m&aygi;f 600 ausmf yg0ifí toH;k jyK&ef vrf;nTecf suf enf;vrf;rsm;vnf; yg0ifonf/ - cufcaJ om uGeyf sLwm ynm&yfa0g[m&rsm;ESihf Aef;pum;rsm;udk vG,u f al p&ef [moajrmufaom o½kyaf zmfyrkH sm;jzifh a&;qGaJ zmfjyxm;onf/ f jzpf toH;k jyKEikd o f uJo h Ykd - ausmif;oifcef;pmtaxmuftuljyK tbd"mef pmtkyt rdom;pkvufpt JG jzpfvnf; vd&k moH;k Edik o f nfh pmtkyw f pftyk jf zpfonf/ - &efuek jf rKd w U iG f pmtkyq f ikd w f idk ;f ESihf City Mart, Ocean North Point Centre, Super One, Blazon, Orange Super Mart wkw Yd iG f 0,f,&l &SEd ikd yf gonf/ uGeyf sLwm*sme,fwu kd o f Ydk wdu k ½f u dk rf mS Mum;0,f,El ikd yf gonf/ - rEÅav;jrKd w U iG f e*g;pmayESihf xGe;f OD;pmaywdw Yk iG f 0,f,&l &SEd ikd fygonf/
Related Documents
Learning Web Design
December 2019
17
Web Learning
May 2020
5
Web Design
May 2020
23
Web Design
May 2020
19
Web Design
May 2020
13
Web Design
June 2020
11
More Documents from "Robiansyah,S.Pd"
Ma Sandar - Pan Pwint Kha Yay
December 2019
22
Poe Zar - Ma Kyauk Bu
December 2019
12
Khin Myo Chit -taung Pyaung Htwe Lar
December 2019
15
Nwam Jar Thein - 1myo Nyar Nae ..
November 2019
19
Maine Pon Saw Bwar Saat San Tun
December 2019
15
Learning Web Design
December 2019
17