Vim Li Cas Thiaj Xav Tau Cov Cim Npe

Vim Li Cas Thiaj Xav Tau Cov Cim Npe
Vim Li Cas Thiaj Xav Tau Cov Cim Npe

Video: Vim Li Cas Thiaj Xav Tau Cov Cim Npe

Video: Vim Li Cas Thiaj Xav Tau Cov Cim Npe
Video: Vim li cas cov qaib keej ho ntaus tsis nrov npe? 2024, Kaum ib hlis
Anonim

Lo lus "tag" los ntawm cov lus Askiv tag - "tag, daim ntawv lo". Feem ntau nws siv nyob rau hauv lub ntsiab lus ntawm hypertext markup lus keeb. Tsis tas li, ib daim ntawv lo tuaj yeem txhais tau tias cim npe rau ib qho twg ntawm ib tus neeg cov ntaub ntawv lossis pob nyob rau hauv cov ntaub ntawv ntws.

Vim li cas thiaj xav tau cov cim npe
Vim li cas thiaj xav tau cov cim npe

Hypertext markup lus txiav txim siab yuav ua li cas nplooj ntawv web raug tso tawm hauv qhov browser. Qhov kev tso kawm ntawm kab ntawv, cov duab, thiab hyperlinks yog txhais los ntawm cov ntawv. Feem ntau, cov vev xaib tsim los siv HTML, cov qauv cim npav hauv Is Taws Nem.

Raws li txoj cai, paired cim npe yog siv - qhib thiab kaw, tab sis kuj tseem muaj tus cim npe tib. Hauv HTML, tag cov npe tau muab ntim nrog lub kaum ob ceg.

Muaj qee qhov cim npe xav tau, tsis muaj uas lub vev xaib tsuas tsis qhib. Piv txwv, tag nrho cov khub sib txuas yuav tsum tshwm thaum pib thiab xaus ntawm daim ntawv web code. Daim pib muag cov kev pabcuam cov ntaub ntawv hais txog ntawm daim ntawv, thiab nruab nrab ntawm cov cim npe thiab yog txhua yam muaj txiaj ntsig ntawm nplooj ntawv.

Rau cov nplooj ntawv yuav tsum tau tso tawm kom raug, koj yuav tsum ua raws li cov xaj kev qhib thiab kaw cov cim npe, i.e. lawv ua zes:

Nov yog kuv, nplooj ntawv tshiab

Cov ntaub ntawv muaj txiaj ntsig zoo ntawm nplooj ntawv

Ib qho tag

muab cov ntawv sau rau lwm kab, thiab

txhais qhov indentation ntawm ib kab (pawg lus).

Cov cim npe tuaj yeem muaj cov cwj pwm (cov khoom) nrog cov ntawv sau ntxiv. Piv txwv li, xim cwj pwm tuaj yeem hloov cov xim ntawm cov font lossis keeb kwm yav dhau los:

html tau txias

Cov xim tom qab tau teev hauv tus cim:

Tus cwj pwm muaj nqis yuav tsum muab ntim rau hauv cov cim kab cim.

Txhawm rau kom nkag siab qhov hypertext markup zoo li zoo li, txoj nyem rau ntawm cov ntawv nyeem uas koj tab tom nyeem. Nyob rau hauv daim ntawv qhia zaub mov nco, xaiv lo lus txib "Nplooj Ntawv", "Saib Nplooj Ntawv Cov Cai" lossis "Saib HTML Code", nyob ntawm koj tus browser.

Pom zoo: