Cov lus syntax ntawm cov hom lus HTML tso cai rau koj los ua cov hyperlinks tsis yog cov ntawv sau xwb, tab sis kuj yog cov duab. Rau tus qhua tus xaib, qhov txuas no zoo nkaus li zoo li duab, thiab thaum koj nyem rau ntawm daim duab, koj mus rau lwm qhov web page.
Cov Lus Qhia
Kauj ruam 1
Siv cov duab editor, txo cov duab. Nws qhov loj hauv ib qho ntawm cov saib xyuas yuav tsum tsis pub ntau tshaj 200 pixels. Nws zoo dua yog tias daim duab muaj kab rov tav. Qhov no tuaj yeem yog, piv txwv li, khawm virtual, daim ntawv sau uas tau ua hauv kev kos duab kos duab. Daim duab cov duab yuav tsum yog ib qho hauv qab no: JPG, PNG, GIF. Qhov xub thawj yog nyiam rau cov duab, thiab ob qhov seem yog nyiam rau kab kos duab (qhov no yog qhov zoo tshaj plaws compression). Nco ntsoov tias tseg qhov txiaj ntsig ntawm kev hloov pauv nyob rau hauv ib lub npe tshiab kom tsis txhob lwj qhov qub.
Kauj ruam 2
Rub cov duab xa mus rau cov neeg rau hauv lub nplaub tshev uas cov ntawv HTML nyob. Txhawm rau nqa tawm cov rub tawm, koj tuaj yeem siv lub vev xaib (yog tias muaj los ntawm tus muab kev pabcuam) lossis lwm qhov kev pabcuam FTP.
Kauj ruam 3
Muab cov code hauv qab no tso rau hauv qhov chaw xav tau hauv cov ntawv HTML:, qhov twg cov lus qhia tom qab tus neeg ua haujlwm "href =" yog qhov chaw nyob uas tus xa mus, thiab someimage
Kauj ruam 4
Rau qee tus neeg siv, cov zaub ntawm cov duab hauv qhov browser yog xiam. Yog li ntawd, nws raug nquahu kom muab qhov kev piav qhia ntawm qhov chaw sib txuas ncaj qha hauv qab daim duab. Hauv qhov xwm txheej ntawd, hloov kho cov cai kab lus saum toj saud kom pom zoo li no:
Kab kab ze ze. Cov lus piav qhia yuav tshwm nyob hauv qab daim duab. Nyem rau nws tseem yuav coj koj mus rau qhov txuas.
Kauj ruam 5
Tom qab luam tawm cov kho tshiab ntawm HTML ntawv rau cov neeg rau zaub mov, qhib nplooj ntawv sib nug xov hauv browser, thiab tom qab ntawd nco ntsoov tias cov duab raug tso tawm kom pom thiab cov kab txuas yog siv tau. Txoj kev hloov pauv nrog nws yuav tsum tshwm sim thaum koj nyem ob qho tib si rau ntawm daim duab thiab ntawm cov ntawv sau piav qhia nyob hauv qab nws (yog tias muaj).