Yuav Ua Li Cas Tso Cov Cim Npe Meta

Cov txheej txheem:

Yuav Ua Li Cas Tso Cov Cim Npe Meta
Yuav Ua Li Cas Tso Cov Cim Npe Meta

Video: Yuav Ua Li Cas Tso Cov Cim Npe Meta

Video: Yuav Ua Li Cas Tso Cov Cim Npe Meta
Video: Qhia txog mus ua daim ntawv tso npe hro npe tuaj mus nyob teb chaws meskas 2024, Hlis ntuj nqeg
Anonim

Lub hauv paus ntawv ntawm feem ntau ntawm cov nplooj ntawv hauv Is Taws Nem tau muab sau ua HTML (HyperText Markup Language). Nws yog txheej txheej qhia ("cim npe") uas muaj cov ntaub ntawv hais txog qhov tsos thiab qhov chaw ntawm txhua lub caij ntawm nplooj ntawv. Tsis tas li ntawd, muaj ib pab pawg ntawm cov cim npe tsis hais txog cov ntsiab lus tshwj xeeb, tab sis rau tag nrho nplooj ntawv tag nrho. Daim META tseem muaj nyob rau pawg no.

Yuav ua li cas tso cov cim npe meta
Yuav ua li cas tso cov cim npe meta

Cov Lus Qhia

Kauj ruam 1

Ua ntej tshaj, qhia meej txog seb cov meta cov ntawv cim zoo li cas thiab qhov twg raws nraim lawv yuav tsum tau tso. Cov cim npe Meta tau tsim raws li cov cai tib yam li lwm cov kab HTML - cov ntawv qhib nrog cov cim sib txuas <, thiab muab kaw nrog cov teeb ua cim: qhov chaw, ib qho luaj ib kab, thiab "/>" kev sib txuas lus. Ntxiv rau lub npe ntawm daim pib, cov ntaub ntawv ntxiv tuaj yeem muab tso rau sab hauv cov nkhaus, uas nyob rau hauv cov lus no hu ua "cov cwj pwm" ntawm cov cim npe. Rau META cim npe, ib qho ntawm cov cwj pwm yog yuav tsum - cov ntsiab lus, thiab ntawm peb ntxiv, tsuas yog lub npe cwj pwm feem ntau siv. Ib qho piv txwv ntawm cov kab cim npe yooj yim: Muaj ob qho cwj pwm, lub npe thiab cov ntsiab lus. Tus nqi ntawm lub npe ntaus cim ntawm no meta tag (cov ntsiab lus) txhais tau hais tias cov ntsiab lus tus cwj pwm muaj cov ntsiab lus uas tshawb nrhiav yuav tsum tau cais cov ntsiab lus ntawm nplooj ntawv. uas pib nrog tus pib thiab xaus nrog daim pib. Feem ntau lawv muab tso rau sab hauv qhov yog tam tom qab daim pib uas muaj lub npe ntawm nplooj ntawv lub qhov rai, tab sis cov cai no yog xaiv tau.

Kauj ruam 2

Muaj qhov dab tsi thiab qhov twg tso, koj tuaj yeem npaj mus rau qhov tseeb ntawm cov txheej txheem. Ua ntej, qhib cov kab ntawv ntawm nplooj ntawv rau hosting meta cov ntawv cim npe. Yog tias koj muaj lub peev xwm los kho siv ntawm nplooj ntawv kho ntawv los ntawm cov txheej txheem tswj hwm cov ntsiab lus, tom qab ntawd qhib qhov xav tau, hloov tus editor ntawm hom WYSIWYG (Qhov Koj Pom Qhov Koj Tau Txais - "qhov koj pom yog qhov koj tau txais") rau HTML-code hloov hom. Yog tias koj tsis siv cov kev tswj hwm kev tswj hwm, rub nplooj ntawv nplooj ntawv rau koj lub khoos phis tawm thiab qhib nws hauv cov ntawv nyeem ib txwm muaj.

Kauj ruam 3

Tam sim no, nyob rau hauv qhov chaws, koj yuav tsum nrhiav qhov ntsuas header thiab muab koj cov meta cov cim rau sab hauv. Qhov block no yog yuav luag nyob rau qhov pib ntawm nplooj ntawv. Koj tsis tuaj yeem yuam kev yog tias koj tshawb nrhiav txoj hlua (tsis muaj ib daim ntawv cim) thiab ntxig koj cov npe meta ua ntej lub cim ntawd.

Kauj ruam 4

Tam sim no txhua qhov seem yog los khaws cov nplooj ntawv nrog rau cov kab cim npe ntxiv rau. Yog tias koj tsis siv nplooj ntawv kho, tab sis rub tawm cov ntawv los ntawm tus neeg rau zaub mov, rub tawm nws rov qab, hloov daim qub nrog daim tshiab. Nws yog qhov yooj yim tshaj plaws los rub tawm thiab upload cov ntaub ntawv siv cov thawj tswj hwm cov ntaub ntawv, uas muaj nyob hauv cov tswj hwm ntawm txhua tus muab cov tuam txhab. Tag nrho cov txheej txheem nyob rau hauv cov ntaub ntawv no yuav siv qhov chaw ncaj qha rau hauv koj tus browser.

Pom zoo: