Yuav Tsim Li Cas Hyperlinks

Cov txheej txheem:

Yuav Tsim Li Cas Hyperlinks
Yuav Tsim Li Cas Hyperlinks

Video: Yuav Tsim Li Cas Hyperlinks

Video: Yuav Tsim Li Cas Hyperlinks
Video: Yuav Ua Lis Cas Peb Thiaj Mus Txog Peb Lub Hom Phiaj? 2024, Hlis ntuj nqeg
Anonim

Lub ntsiab tseem ceeb ntawm cov lus ntawm hypertext markup ntawm cov ntaub ntawv - HTML yog lub peev xwm tsis tsuas yog nqa cov ntawv tsim nyog ntawm cov ntawv, tab sis kuj txuas ua ke ob peb cov ntaub ntawv uas tuaj yeem nyob ntawm txhua qhov deb ntawm txhua lwm yam. Cov peev xwm no yooj yim rau kev ua haujlwm ntawm kev mus tshawb xyuas, ob qho tib si ntawm cov ntawv sib txawv thiab tsis dhau ib. Yeej, ib qhov txuas yog tib daim nrog qee cov cwj pwm.

Yuav tsim li cas hyperlinks
Yuav tsim li cas hyperlinks

Cov Lus Qhia

Kauj ruam 1

Txhawm rau tsim cov ntawv yooj yim ntawm html-nplooj ntawv, cov ntawv nyeem zoo nkauj tshaj plaws "notepad" txaus. Thaum pib thawj theem, koj yuav tsum kawm cov kev cai yooj yim rau kev tsim cov ntaub ntawv hauv hom lus html thiab nco qab tsawg kawg ntawm cov cim pib. Yog tias koj tam sim ntawd ua haujlwm nrog cov neeg kho qhov twg pib hloov chaw, txoj kev nco qab tuaj yeem ncua sijhawm. Txawm li cas los xij, txhawm rau ua haujlwm nrog cov lej kom paub meej dua, nws raug nquahu kom siv cov ntawv kho nyeem nrog cov ntawv nyeem ntsiab lus, xws li "Notepad ++".

Kauj ruam 2

Pib nrog qhov piv txwv yooj yim tshaj plaws. Tsim daim nplaub tshev rau qhov kev xeem nrog txhua lub npe uas koj nyiam thiab hauv nws tsim ob cov ntaub ntawv nrog.html txuas ntxiv - index.html thiab page.html. Ntxiv mus, hauv txhua ntawm lawv, sau cov ntsiab lus "lub moj khaum" pib rau txhua nplooj ntawv html:

Nplooj ntawv cov npe

*** tus lej ntawv phab yog sau rau ntawm no ***

Txuag hloov pauv ntawm cov ntaub ntawv.

Kauj ruam 3

Qhib rau "index.html" cov ntaub ntawv rau kho thiab sau cov hauv qab no nyob rau hauv qhov chaw rau qhov chaws:

Txuas rau phab ntawv nploo

Ntawm no "a" yog ib qho tsim los ua cov kev txuas hypertext. Tus "href" cwj pwm qhia qhov chaw nyob uas tus neeg siv yuav mus los ntawm nyem rau ntawm qhov txuas tsim. Nws tuaj yeem yog nplooj ntawv nyob rau hauv tib nplaub tshev raws li nplooj ntawv tseem ceeb, lossis txhua qhov chaw nyob hauv network. Yog tias koj qhia txoj hauv kev rau cov ntaub ntawv hauv qhov chaw nyob, tom qab ntawd koj yuav tau txais qhov txuas mus rub tawm, vim thaum taug kev los ntawm nws, qhov browser yuav sim qhib cov ntaub ntawv, thiab rau qhov no, cov ntaub ntawv yuav xav tau kev cawm ua ntej.

Kauj ruam 4

Tshawb nrhiav kuj qhov cim npe txuas ntxiv ntawm qhov txuas tsis tu ncua rau cov ntawv lossis cov ntawv, koj tuaj yeem tuaj yeem tsim qhov txuas los tsim tsab ntawv.

Piv txwv li:

DarkHTML - kev txuas rau xa ntawv xa tawm

Kauj ruam 5

Qhov txuas kuj tseem tuaj yeem ua rau tua ntawm qee cov lus txib hauv cov ntawv javascript.

Piv txwv:

qhov rai txuas tshiab yuav qhib daim ntawv hauv lub qhov rai tshiab 300 * 200

Pom zoo: