Txhawm rau tsim lub vev xaib, koj yuav tsum paub txog cov hauv paus ntawm qhov web programming. Qhov no yuav tsum tau kawm HTML, CSS, JavaScript. Thawj ob hom lus hais tau yooj yim kawm. JavaScript yog qhov nyuaj dua. Ua kom koj txoj haujlwm yooj yim dua, koj tuaj yeem siv ntau yam HTML thiab CSS cov neeg kho.
Html
HTML - cov lus uas cov nplooj ntawv web sau, yog caj qaum ntawm lub xaib. Txhawm rau ua haujlwm nrog cov hom lus no koj xav tau ib tus ntawv sau "Notepad" thiab qhov browser. Txhawm rau tsim cov nplooj ntawv yooj yim, koj yuav tsum tsim "Notepad" cov ntaub ntawv, tom qab ntawd qhib nws thiab xaiv qhov haujlwm "txuag tau". Koj tuaj yeem sau txhua lub npe tom qab txuas ntxiv ".html". Cov hom ntaub ntawv yuav tsum raug xaiv "txhua cov ntaub ntawv". Ib daim ntawv yuav tam sim no tshwm ib sab ntawm Notepad uas koj tuaj yeem qhib hauv koj tus browser. Cov kauj ruam ntxiv uas yuav tsum tau ua yog yooj yim web page markup, suav nrog cov lus qhuab qhia thiab cim npe. Nws yuav zoo li no:
Koj tuaj yeem muab txoj cai no los ntawm qhib lub vev xaib nrog Notepad. Opera browser tso cai rau koj kho ib qho web resource nyob rau hauv nws. Txhawm rau ua qhov no, hu rau cov ntawv qhia zaub mov thiab xaiv "source code".
Daim ntawv tshaj tawm (doctype) yog kev tshaj tawm rau cov browsers txog li cas cov ntsiab lus ntawm nplooj ntawv yuav tsum tshwm tawm. Muaj ntau ntau hom kev tshaj tawm, tab sis nrog kev tshaj tawm ntawm lub npe thib tsib ntawm HTML, ib qho kev lees paub ib leeg
Ib lossis yog chav nyob ntawm cov lus html. Nrog kev pab ntawm cov cim npe ntawm lub xaib, cov duab raug tso tawm, tom qab tau teeb tsa, cov ntawv sau tau muab sau, thiab lwm yam. Feem ntau, ob daim ntawv cim npe yog siv los tso saib lub keeb: qhib thiab kaw. Nkawv ob leeg pib nrog ". Qhov txawv tsuas yog tias luaj yog sau tom qab "<" hauv daim cim tag. Piv txwv, Lub Vev Xaib. Ib qhov txuas tau qhia ntawm lub vev xaib.
Daim npe ntawm cov cim npe tuaj yeem nrhiav hauv cov phau ntawv siv tau dawb muaj nyob hauv Is Taws Nem.
CSS
CSS - style tsis dhau, ua tsaug uas koj tuaj yeem tswj tus tsim ntawm txhua nplooj ntawv ntawm lub xaib. Txhawm rau tsim cov CSS, cov ntawv hloov kho cov ntaub ntawv raug tsim, nws qhib thiab "txuag li" xaiv tau xaiv. Txhua lub npe tau nkag mus, tom qab ntawd txuas ntxiv ".css". Cia peb hais tias nws raug hu ua ows. Txhawm rau txuas cov ntawv no rau nplooj ntawv, koj yuav tsum sau tus lej cim ntawm kab ntawv. Qhov no tsuas yog ua haujlwm tau yog tias CSS thiab cov nplooj ntawv web nyob hauv qhov qub. Yog tias nyob hauv cov nplaub tshev sib txawv, tom qab ntawd nyob rau hauv ib feem ntawm qhov chaws href = "ows.css" koj yuav tsum qhia txoj kev mus rau qhov chaw ntawm cov ntaub ntawv.
Koj tuaj yeem tsim qhov style hauv CSS daim ntawv nws tus kheej. Tus lej sau rau raws li qee qhov kev cai:
Piv txwv:
lub cev {keeb kwm yav dhau los-duab: url (img / tree.jpg);}
a: txuas {xim: liab;}.
Thawj tus lej teeb tsa tom qab ntawm nplooj ntawv rau ib qho duab. Tus lej thib ob teeb tsa xim ntawm qhov txuas. Lub cev tuaj yeem yog lub caij nyoog uas cov qauv siv. Txhua lub zog CSS tuaj yeem nrhiav pom hauv kev xa tawm.
JavaScript
JavaScript yog lus sau rau cov nplooj ntawv web. Nws yog siv los tsim lub xaib zoo. Nrog kev pab ntawm JavaScript, nws muaj peev xwm ua kom cov ntsiab lus ntawm nplooj ntawv hloov tau ntawm txhua qhov kev txiav txim. Cov lus hais nkag mus rau qhov chaw qub li HTML.
Cov tsab ntawv no pib nrog tus xaus thiab xaus. Cov haujlwm sau qhia sau cia nyob nruab nrab ntawm lawv. Muaj tons ntawm lawv, thiab koj tuaj yeem nrhiav lawv hauv cov phau ntawv JavaScript thiab cov phau ntawv siv. Koj yuav tsum paub tias muaj cov neeg laus ntawm cov khoom hauv hom lus no. Thaum muab ib txoj haujlwm rau ib qho kev qhia tshwj xeeb, tag nrho txoj hauv kev los ntawm qhov khoom siab dua qhia ua ntej.
Qhov chaw tso kawm rau Is Taws Nem
Yog tias lub vev xaib twb tau tsim, ces nws yog lub sijhawm muab tso rau hauv Is Taws Nem. Txhawm rau ua qhov no, koj yuav tsum tau yuav ib tus tswv sau ntawv thiab hosting. Nws yuav yooj yim dua yog tias lawv tau yuav hauv ib qho chaw.
Sau - koj tus kheej lub npe tshwj xeeb rau lub vev xaib hauv Is Taws Nem. Muaj peb qib. Thawj-theem sau npe tsis yog rau kev muag khoom. Piv txwv, ru, net, com, org. Koj tuaj yeem xaiv theem thib ob thiab theem peb ntawm tus thawj.
Hosting yog chaw nyob ntawm tus neeg rau zaub mov uas cov ntsiab lus ntawm lub xaib yuav raug tshaj tawm, piv txwv li cov duab, suab paj nruag, ntawv sau.