Yuav ua li cas ntxiv tus cwj pwm ALT rau ib daim duab kom raug?

Cov txheej txheem:

Yuav ua li cas ntxiv tus cwj pwm ALT rau ib daim duab kom raug?
Yuav ua li cas ntxiv tus cwj pwm ALT rau ib daim duab kom raug?
Anonim

Txhua nplooj ntawv web yog tsim los ntawm kev kos npe - code uas tau sau ua hom lus tshwj xeeb (feem ntau HTML). Tus neeg siv lub browser, dhau los, tuaj yeem nyeem cov lej no txhawm rau ua kom pom tag nrho cov ntaub ntawv uas tus tsim cov peev txheej xav qhia rau peb. Nws hloov tawm tias tag nrho cov ntsiab lus uas peb pom ntawm nplooj ntawv web yog muab los ntawm qhov chaws ntawm qhov chaw peb mus ntsib.

Code optimization

teeb lub ALT attribute
teeb lub ALT attribute

Raws li koj tuaj yeem twv, txhua tsab ntawv ntawm cov lej no, txhua lub cim muaj lub ntsiab lus. Tsis tas li ntawd, nthuav, nws tshwm sim tias qhov muag pom lub vev xaib yuav tsis muaj cov ntsiab lus tseem ceeb heev rau nws qhov kev ua kom zoo (txhais tau qhov tseeb qhov chaw ntawm kev tshawb fawb xyaw). ALT tus cwj pwm tuaj yeem raug ntaus nqi rau tus lej ntawm cov tsis tshua pom zoo, piv txwv li. Nws nyob ntawm nplooj ntawv ntawm ntau qhov kev pab cuam, thiab feem ntau peb tsuas yog tsis pom nws.

Nyob rau hauv tsab xov xwm no, peb xav them sai sai rau lub ntsiab ntawm lub vev xaib tsim. Ntawm no peb yuav qhia koj tias vim li cas nws tseem ceeb heev rau qhov raug qeb duas ntawm qhov chaw, kev loj hlob ntawm nws cov tsheb khiav thiab cov neeg siv yooj yim hauv kev ua haujlwm nrog nws.

Tus cwj pwm ALT yog dab tsi?

Cia peb pib txij thaum pib: peb yuav piav qhia txog kab lus no hais txog dab tsihais lus thiab vim li cas peb thiaj xav tau tus cwj pwm no txhua.

ALT tus yam ntxwv
ALT tus yam ntxwv

Yog li, txhawm rau nkag siab cov ntawv no, koj yuav tsum xub nkag siab cov lus HTML markup. Qhov no yog cov cai uas cov nplooj ntawv web yooj yim tau sau, uas, raws li twb tau sau tseg, muaj cov cuab yeej raug tso tawm hauv browser. Tag nrho cov lus yog tsim los ntawm cov yam ntxwv tshwj xeeb (xws li IMG, ALT, FONT, thiab lwm yam). Txhua tus ntawm lawv yog lub luag haujlwm rau kev ua haujlwm nrog ib lossis lwm qhov tsim qauv. Hauv kev xyaum,"Duab" tus cwj pwm uas tau hais los saum toj no yog siv rau cov duab uas tuaj yeem pom ntawm nplooj ntawv lub vev xaib. Tshwj xeeb tshaj yog, nrog rau nws cov kev pab, ib qho kev piav qhia yog tsim rau cov duab, raws li cov neeg siv (tus neeg tuaj saib lub vev xaib) tau yooj yim nkag siab txog yam uas qhia rau lawv. Muaj tseeb koj tus kheej tau hla cov lus piav qhia - lawv tshwm sim thaum koj txav tus nas hla daim duab.

Tus nqi siv tau

Tau kawg, cov cwj pwm no tau siv rau hauv kev xyaum vim li cas. Webmasters xav tau cov lus piav qhia rau lawv cov duab ntau npaum li cov neeg tuaj saib lub vev xaib (tej zaum ntau dua). Tom qab tag nrho, yog tias tag nrho cov duab tsis muaj tus cwj pwm ALT, ib tus neeg yuav tsis pom qhov no yog tias cov lus piav qhia ntxiv rau cov duab ntawm nplooj ntawv. Ntawm qhov tod tes, kev tshawb nrhiav neeg hlau (nrog rau qhov khoob ALT) yuav tsis nyob ntawm qhov chaw txaus txaus, txo nws txoj haujlwm hauv cov txiaj ntsig tshawb fawb thiab, yog li, yuav tsis coj tus naj npawb txaus ntawm cov qhua. Yog li ntawd, peb tuaj yeem hais nrog kev ntseeg siab tias cov lus piav qhia rau cov duab ntawm lub xaib kuj tseem ua lub luag haujlwm tseem ceeb rau cov webmasters lawv tus kheej, yog li lawv tsis tuaj yeem.tsis saib xyuas.

Tag nrho cov duab pom tau ploj lawm ALT tus cwj pwm
Tag nrho cov duab pom tau ploj lawm ALT tus cwj pwm

Bonuses los ntawm kev tshawb fawb xyaw

Yuav kom nkag siab zoo dua cov txiaj ntsig ntawm kev sau cov lus piav qhia rau cov duab, cia peb muab piv txwv me me. Cia peb hais tias muaj lub vev xaib nrog cov duab tuav ntawm nws. Yog tias tus cwj pwm ALT tsis tau teeb tsa, tus neeg siv yuav tsis raug kev txom nyem, vim tias nyob rau hauv txhua rooj plaub nws yuav pom dab tsi tshwm sim hauv ib daim duab tshwj xeeb. Ib qho txiaj ntsig sib txawv kiag li tos tus tswv ntawm cov peev txheej, leej twg yuav tsis quav ntsej cov ntawv sau saum toj no, vim tias nws yuav poob qee qhov kev sib faib ntawm cov duab duab, piv txwv li.

Yuav ua li cas sau tus cwj pwm ALT?

Technically, tsis muaj dab tsi nyuaj rau sau cov lus piav qhia hauv qab no lossis daim duab ntawd. Qhov no yog qhov tseeb: koj yuav tsum mus rau HTML editor ntawm koj lub xaib thiab nrhiav cov duab code (pib nrog IMG thiab xaus nrog tib yam). Nyob rau hauv lub block ntawm code, muaj code. Qhov no yog qhov lawv txhais tau tias thaum lawv hais tias koj yuav tsum sau tus cwj pwm ALT. Qhov no ua tau li no: “alt=“description”.

Yog tias koj tsis ua haujlwm nrog cov cai dawb huv, tab sis siv qee qhov "cav" cais rau lub xaib (piv txwv li Wordpress lossis Joomla), nws koom ua ke ib qho tshwj xeeb rau kev ntxiv " alts" uas peb lub xaib yuav nco ntsoov. los ntawm kev tshawb fawb xyaw. Yog tias koj sau ALT tshiab, qhov hloov tshiab yog nyob ntawm koj nplooj ntawv.

Lawv sau dab tsi hauv tus cwj pwm?

Tau kawg, thaum koj muaj txoj haujlwm sau ALT tus cwj pwm, koj tsis xav txog kev ua haujlwmsab. Feem ntau, lo lus nug no yog nug yog tias tus webmaster tsis paub dab tsi cov ntaub ntawv nws xav tau los muab txog ib qho duab tshwj xeeb. Qhov no ua rau nws nyuaj rau hais tias cov ntaub ntawv twg yuav muaj txiaj ntsig rau lub xaib los ntawm qhov pom ntawm kev tshawb fawb xyaw.

Hauv kev xyaum, muaj ntau txoj hauv kev los daws qhov teeb meem piav qhia. Ib tug neeg ua haujlwm nrog cov qauv tsim, raws li cov cim npe tsuas yog sau nrog cov lus tseem ceeb uas nplooj ntawv tsim. Tej zaum qhov no yog qhov kev coj ua uas tuaj yeem pom ntau zaus. Qee zaum, es tsis txhob nrhiav kev sau ALT tus cwj pwm li cas, tus neeg siv tsuas tso qhov chaw khoob no. Nws yuav tsum tau qhia meej ntawm no tias txhua tus txiav txim siab lawv tus kheej txog qhov kev piav qhia los qhia.

nco alt attribute
nco alt attribute

Requirements

Tib lub sijhawm, muaj ntau txoj cai yooj yim (lossis, yog tias koj nyiam, xav tau) raws li txhua tus tuaj yeem ntxiv tus cwj pwm zoo rau lawv cov duab. Lawv suav nrog cov khoom me me, txhua qhov hais txog cov lus piav qhia ntawm cov duab thiab cov duab ntawm lub xaib.

Piv txwv li, thawj qhov yuav tsum tau muaj yog qhov ntev ntawm tag nrho cov ntawv. Yog tias koj tab tom nrhiav kev sau tus cwj pwm ALT kom raug, kev daws teeb meem yog theem pib: siv tsis pub ntau tshaj 2-3 lo lus. Cov ntawv nyeem ntawm qhov loj me no yuav, ua ntej, nyeem tau zoo los ntawm kev tshawb nrhiav neeg hlau (thiab ua rau koj qhov chaw muaj feem cuam tshuam ntau dua); Qhov thib ob, xws li cov lus piav qhia yog nkag siab ntau dua rau cov neeg siv lawv tus kheej. Pom zoo, nyeem tag nrho kab lus, yog tias koj tsuas yog xav paub dab tsi hauv daim duab, tsis muaj leej twg yuav. Suffice nws kom luv luv thiab meej.cov lus piav qhia uas yuav muaj txiaj ntsig rau koj thiab koj cov neeg siv khoom.

Tsis txhob hnov qab lub ntsiab. Yog tias koj tshaj tawm ib daim duab ntawm tus ntxhw, nco ntsoov piav qhia txog nws hom tsiaj lossis keeb kwm; qhia tias vim li cas nws thiaj li piav qhia hauv daim duab no, qhov koj xav hais los ntawm qhov no. Nws yuav pab tau rau cov qhua kom paub koj cov kev xav ntawm tus ntxhw no.

Lwm qhov tseem ceeb (uas tau tsim nyob rau hauv chav kawm ntawm ntau qhov kev sim ua tau zoo) yog qhov tshwj xeeb. Yog tias koj tab tom nrhiav yuav ua li cas ntxiv qhov "Image" tus cwj pwm rau ib daim duab, nco ntsoov tias nws yuav tsum yog qhov tshwj xeeb rau txhua daim duab teev nyob rau ntawm lub xaib. Piv txwv li, luam tawm peb daim duab nyob rau hauv ib kab nrog cov kab lus "kuv tus ntxhw" yuav ua tsis ncaj ncees lawm - qhov no tsuas yog ua rau koj cov peev txheej hauv kev tshawb nrhiav. Nws yog qhov zoo dua los tso npe cov duab "ntsuab 1" thiab "ntsuab 2", uas yuav ua rau lawv txawv dua.

Thaum kawg, nco ntsoov qhov tsis muaj ntawm cov duab lawv tus kheej koj tab tom nrhiav yuav ua li cas ntxiv tus cwj pwm ALT rau. Rau cov duab, nws yog ib qho tseem ceeb kom ua tau raws li ib tug xov tooj ntawm cov txheej txheem - tsis txhob yuav me me heev, kom saib qhov tseeb. Ntawd yog, yog tias koj teev cov lus piav qhia, tom qab ntawd ua rau cov duab loj dua uas tau coj mus rau hauv tus lej hnyav dua. Tsis tsim nyog rau "Image" tus cwj pwm rau qee qhov emoticons me lossis ib yam dab tsi zoo li ntawd.

Search ALT

Thaum kawg, peb tau tham txog cov hauv paus ntawm tus cwj pwm, qee cov cai rau nws muab tso ua ke thiab cov kev cai ntawm ob tog (ob tus neeg siv thiab tshawb nrhiav neeg hlau) rau lawv. Tam sim no cia peb xav: yuav ua li cas tshawb nrhiav cov ntsiab lus thiab kab lus,uas peb yuav sau rau ntawm peb lub vev xaib? Raws li tau sau tseg saum toj no, kev tshawb fawb yuav tsum tau coj mus rau cov ntaub ntawv npaj ua tiav ntawm cov lus tseem ceeb uas pib nyiam cov neeg siv khoom rau koj qhov chaw. Tau kawg, qhov no tsis tuaj yeem ua tiav yog tias koj tseem tsis muaj tus cwj pwm ALT. Npaj cov lus tseem ceeb thiab kab lus uas koj siv hauv koj cov ntsiab lus thiab muab tso rau hauv cov duab.

Yog tias koj tsis muaj cov ntaub ntawv zoo li no thiab koj tsis tau xav txog txhua yam txog kev pib maj mam txhawb koj cov peev txheej, peb xav kom koj pib nrhiav cov ntaub ntawv ntawm "cov ntsiab lus" uas koj tuaj yeem tsim cov chaw tshiab tau yooj yim. Rau qhov no, cov kev pabcuam zoo li Google Keyword Extract Tool lossis Yandex. Wordstat yog qhov zoo tshaj plaws, uas qhia cov txheeb cais tshawb fawb rau qee cov kab lus. Los ntawm "ua si" nrog cov kev teeb tsa no, koj tuaj yeem nce qhov sib koom ntawm kev tshawb nrhiav tsheb hauv koj qhov chaw thiab yog li pib sau cov txiaj ntsig tshiab. Qhov tseem ceeb tshaj plaws yog kom tsis txhob muaj qhov xwm txheej uas pom tag nrho cov duab tsis muaj tus cwj pwm ALT.

Cov Lus Qhia

Yog li, peb tuaj yeem hais li cas txog tus cwj pwm tau piav qhia hauv kab lus no? Nws yog ib feem ntawm cov lus uas cov chaw yooj yim tshaj plaws yog tsim - HTML. Nws yog ib qho yooj yim heev los ua qhov no, txij li nws piav qhia txog qib theem pib, hom lus yooj yim. Txhawm rau kom tseem sau npe tag rau hauv cov duab, koj yuav tsum tau muab nws tus kheej tawm ntawm qhov chaws. Lossis, siv cov lus qhia tshiab, pib ua dua tshiab. Ua li ntawd, tagging "Image" yog qhov zoo tshaj plaws ntawm kev sib nrig sib pab thaum ob tus qhua thiab tus tswv ntawm cov peev txheej txaus siab.

Qhia ib daim ntawv tuaj yeem ua rau tshiabcov qhua - qhov tshwm sim no tshwj xeeb tshaj yog pom ntawm cov kev pabcuam xws li Google thiab Yandex Duab. Thaum koj nyem rau ntawm ib daim duab, lub vev xaib ntawm nws tus kheej txiav txim siab qhov chaw uas cov duab raug coj los thiab xa rov qab cov qhua. Thiab qhov no, raws li koj nkag siab, tseem ceeb heev uas yuav tsum tau ua yav tom ntej.

Pom zoo: