Computers, Programming
HTML-commands rau tsim qhov chaw
HTML acronym sawv raws li ib tug HyperText Markup Language. HTML - qhov no yog tsis yog ib tug programming lus, yog cov lus uas cov markup site.
Tag nrho cov browsers yuav tau hloov qhov no markup nyob rau hauv ib tug yooj yim daim ntawv rau cov neeg siv.
Qhov no lus siv tshwj xeeb commands, hu ua cim npe. Txhua tag nws muaj nws tus kheej muaj nuj nqi. Muaj ntau ntau cov cim npe. Qhov tseeb tiag mas, koj yuav tsum paub txhua yam. Tab sis rau cov novice tsim tawm ntawm theem pib paub yog txaus.
Basic HTML commands
Daim ntawv teev cov HTML-hais kom ua yog heev loj. Tab sis lub ntsiab tsis yog li ntawd ntau npaum li cas. Nyob rau hauv thiaj li yuav pib sau ntawv code, koj xav tau ib tug editor. "Phau" yuav siv tau. Peb pom zoo kom siv Notepad ++. Nws zoo li no.
Qhov kom zoo dua yog tias nyob rau hauv ib tug tshwj xeeb editor cim npe tseem ceeb nyob rau hauv cov xim txawv, nyob ntawm seb lub hom. Lus txib rau tsim HTML site nyob rau hauv Notepad los yog lwm yam kev pab cuam ntawm lub tib lub. Language yog siv qhov txhia chaw zoo li qub. Kev loj hlob ib puag ncig - tsuas yog ib lub cuab tam.
Nyob rau hauv HTML, muaj kaw cim npe thiab unobscured. Tsis tas li ntawd, nyob rau hauv cov lus no muaj lub tswvyim ntawm zes. Txhua yam khoom nyob rau hauv lub code - nws yog ib qho lub caij. Ib lub caij muaj ib tug pib lossis, cov ntsiab lus, thiab kaw. Ntxiv mus, lub tag nws muaj nws tus kheej ncua cwj pwm nrog lawv qhov tseem ceeb.
Tus naj npawb qhia tau hais tias ob cim npe thiab html>. Nco ntsoov hais tias qhib thiab kaw yog spelled ib yam tab sis txawv nkaus xwb los ntawm "/". Yog hais tias lub tag yog tsis tau kaw, lub handler yuav muab suav hais tias ib tug continuation ntawm tus so ntawm no xyov lub caij. Qhov no yog qho tseem ceeb heev. Tshwj xeeb tshaj yog nyob rau hauv lub chiv keeb. Peb yuav saib lawv ib tug me ntsis ntxiv.
tag losis tswvyim dabtsi. Nws yog ib txwm tsim nyog los sau. Tab sis lub kaw yog tsis yuav tsum tau. Los ntawm cov qauv yuav tsum, tab sis yog tias koj tsis txhob muab kaw ua hauj lwm tseem yuav tsum tau.
Nws muaj lwm yam yooj yim cim npe: lub taub hau thiab lub cev.
Cov HTML-teams yog lub moj khaum rau cov nplooj ntawv. Lawv yuav tsum tau. Lawv kuj kaw.
Lub npe ntawm lub tag ntais ntawv lub hom phiaj. Lub taub hau - lub taub hau. Seem no qhia txog cov kev pab thiab ntaub ntawv tseem ceeb, uas yog tsis pom. Section lub cev - lub cev ntawm cov ntaub ntawv. Ntawm no, cov ntsiab lus uas yog tso tawm rau cov neeg siv. Sim kaw cim npe ib zaug, ces yuav tsum tsis txhob tsis meej pem.
Nyob rau hauv cov kev pab cuam seem, hais tias:
- title ntawm daim ntawv;
- Style ntaub ntawv;
- tsab ntawv cov ntaub ntawv;
- meta cim npe;
- cov lus qhia rau kev tshawb fawb xyaw;
- cov lus qhia rau robots;
- lwm yam ntaub ntawv uas yuav siv tau los ntawm cov, tiam sis tsis cov neeg siv.
style ntaub ntawv no yog rau ntawm qhov no raws li nram no:
= http: // site /article/256185/%E2%80%9Cstyle.css%E2%80%9D hom = "text / css">
tsab ntawv cov ntaub ntawv raws li nram no:
Nyob rau hauv cov ntawv nyeem yuav tsum tau mus. Nws taw tes tawm no:
Qhov no ntawv nyeem yuav muab tso tawm kom nyob rau hauv lub npe ntawm lub browser tab. Tsis tas li ntawd, cov npe no yog muab tau los raws li ib tug tshwm sim ntawm cov muab los ntawm ib tug search engine.
Tags ntawv formatting
Cov ntawv nyeem yuav tsum tau muab tso rau hauv lub lossis ntawm lub pawg lus. Nws yog xa mus rau raws li
text p>. Rau cov ntawv luam, koj yuav tau siv lub
Yuav kom kos ntawv nyeem yuav ua tau, raws li nyob rau hauv "Lo lus":
-
ntawv qaij kuv> -
bold ntawv nyeem muaj zog> -
strikethrough ntawv nyeem s> - underlined ntawv nyeem u>
Phau ntawv muaj peev xwm kos yeej. Peb yuav saib lawv nyob rau hauv lub kawg, tom qab ib tug saib xyuas ntawm lwm yam hais.
Siv cov Title
Muaj lwm yam tseem ceeb HTML-hais kom ua. headers tas siv rau kev tsim websites. Lawv teev siv cov tag
nom tswv thawj theem H1>. Muaj ntau ntau ntau 1 mus rau 6. Nws yog ib qho tseem ceeb kom to taub tias nyob rau hauv lub headers yuav tsum tau nested.
Cov piv txwv nyob rau hauv Daim duab.
Khaws nyob rau hauv lub siab hais tias nws yog pom zoo kom siv tsuas yog ib H1 nqe lus hais txog. Nyob rau hauv cov ntaub ntawv no, nws yuav tsum phim lub tag
siv dluab
Dluab yog ib feem ntawm lub web pages. Cov piv txwv qhia tau hais tias yuav ua li cas nws yog ua tau mus tau ntxig tej yees duab.
Raws li koj tau pom, cov piv txwv qhia nyob rau hauv kom meej yuav ua li cas thiab hais dab tsi.
siv mus
Yog hais tias koj kawm HTML-hais kom ua, cov tag-paub mus koj tsuas yuav tsum. Qhov no yog ib tug ntawm cov tseem ceeb tshaj plaws hais, uas yog lub ntiaj teb dav Web.
Nyob rau hauv cov piv txwv saum toj no, nws yog pom tias es tsis txhob ntawm phau ntawv muaj cov reference daim duab. Hais tias yog, koj yuav muab ob cov ntawv nyeem thiab cov duab.
Links kuj yuav formatted siv yeej chav kawm los yog cov pa cim npe (ntawv qaij, bold, khij hauv qab, strikethrough).
siv lub rooj
Ntxhuav kuj siv ntau heev. Lawv xub thawj yog los muab cov lus qhia nyob rau hauv ib tug yooj yim txoj kev. Tab sis, ces lub layout tau siv kom haum raws li ntau yam page ntsiab.
Lub rooj yog tsim raws li nram no:
Tr> Tr> Rooj> Lub dav attribute qhia txog lub dav ntawm lub qhov rooj. Nws yuav ua tau ib tug feem pua los yog pixels. Ciam teb hais tias tus thickness ntawm tus ncej. Tus qauv yog qhia raws li nram no. Tr lossis yog ib txoj hlua. Tag td cell. Thiab tag nrho ua ke - ib lub rooj. Koj muaj peev xwm dlhos lub rooj. Nws yuav siv lub dlhos attribute, uas muaj peev xwm coj peb qhov tseem ceeb: Sab laug, Center, Txoj cai. Piv txwv li ntawm kev siv kev cai tswjhwm hauv qab no. Cov HTML-hais kom ua (dav thiab kawm tuab si lug) tseem haum rau lwm yam hais. Lub thickness ntawm tus ncej raws li qhia nyob rau hauv cov duab. Siv HTML-commands, koj muaj peev xwm tsim ntau hom npe. Yuav luag raws nraim tib yam li nyob rau hauv lo lus. Nyob rau hauv cov lus muaj Html kom thiab unordered npe (bulleted). Ib qho piv txwv ntawm xws li ib tug daim ntawv teev. Ul> Cov tshwm sim yuav tsum tau: hom daim ntawv teev Cov cai nyob rau hauv lub HTML lus Nyob rau hauv daim ntawv ntawm ib lub voj voog Nyob rau hauv ib lub voj voog Nyob rau square markers Kom npe yog tsim nyob rau hauv tib txoj kev, tab sis es tsis txhob ntawm Koj yuav tau qhia kom meej hom ntawm cov zis daim ntawv teev: Tus txheem tso zis ntawm cov Arabic numerals. Vim qhov no bulleted npe, lawv muaj pib attribute, uas qhia txog tus pib tus nqi ntawm daim ntawv teev. Piv txwv li, koj muaj peev xwm tso saib ib daim ntawv teev pib los ntawm lub 10 th los yog 20 th. HTML-commands rau lub site yog heev ntau haiv neeg, tab sis tag nrho lawv mloog yeej. Yeej yuav tsum teev nyob rau hauv ib cov ntaub ntawv nyob rau hauv lub taub hau: los yog muab ib tug npaj txhij style. Thov nco ntsoov tias ntawm cov ntsiab lus ntawm yeej muaj ib tug txawv. Duab yeej yuav muab teev nyob rau hauv tag nrho cov nplooj ntawv ntawm qhov chaw. Sai li sai tau raws li koj hloov mus rau nws, ces qhov no update yuav cuam tshuam rau tag nrho lub website raws li ib tug tag nrho. Yog hais tias koj qhia kom meej cov yeej nyob rau hauv ib lub page, cov kev hloov thiab kev siv ntawm cov hoob qhia no yuav tsum tsuas tsis pub dhau cov ntaub ntawv. Tshaj ntawd nws mus rau koj qhov chaw yuav tsis tuaj tawm. Xav txog tej yam uas koj muaj 20 nplooj ntawv nyob rau hauv HTML thiab koj txiav txim siab mus ua lub header 2 pixels ntau. Yog hais tias koj muaj txhua yam nyob rau hauv cov style ntaub ntawv, ces Kho kom raug neeg tsuas yuav tau ua muaj. Yog hais tias tag nrho cov ib lub zuj zus, koj yuav tsum hloov tag nrho 20 nplooj ntawv. Tsuas yog taw tes rau ib sab raws li nram no. Qhov no txoj kev yog tsis pom zoo.
cell ntawv nyeem td>
cell ntawv nyeem td>
cell ntawv nyeem td>
cell ntawv nyeem td>
siv npe
Ul>
Ul>
Ul>
, siv lub tag
.
siv yeej
Similar articles
Trending Now
Newest