Is taws nem yog raws html, hypertext markup lus. Los ntawm "hypertext" yog txhais tau tias cov ntawv nyeem uas muaj cov kev sib txuas. Nws yog qhov yooj yim muaj peev xwm mus los ntawm ib nplooj ntawv mus rau lwm qhov, los ntawm ib lub xaib mus rau lwm qhov uas tau hloov kho thev naus laus zis thev naus laus zis. Qhov yooj yim ntawm html tau tiav los ntawm qhov tsim tawm tsim khoom yooj yim - cim npe.
Cim npe hauv html
Cov cim npe hauv html yog txhais tau tias ntawm hom (semantic) kev ua qauv, kev nthuav qhia thiab kev sib txuas lus ntawm cov ntaub ntawv. Ib qho tag yuav tsum nyob ntawm tus cim:. Tag nrho cov html cim npe tau to taub los ntawm feem ntau ntawm cov browser txuas tam sim no. Lub koom haum thoob ntiaj teb W3C yog lub luag haujlwm rau tus txheej txheem thiab tsim cov cim npe tshiab - nyob ntawd koj tuaj yeem kawm txog tag nrho cov html cim uas twb muaj lawm. Cim npe tuaj yeem ua haujlwm sab hauv "tseem ceeb" tag ntawm cov ntaub ntawv html - HTML. HEAD thiab BODY tags cais cov nplooj ntawv Web site ua ob qhov xwm txheej. Hauv HEAD, koj tuaj yeem cuam tshuam cov nplooj ntawv cov npe (tso tawm rau ntawm qhov browser tab), thaum BODY yog "lub luag haujlwm" rau tag nrho cov ntsiab lus ntawm nplooj ntawv.
Ib qho thiab tag ib khub
Txhua cov ntawv cim html tuaj yeem faib ua khub thiab ib kab cim npe. Tib lub cim npe yog siv thaum kab cim npe tshwj xeeb. Piv txwv li, BR yog ib daim pib nkaus xwb, uas yog ib txoj hlua khoob. Yog tias koj sau cov kab no hauv html-code, koj yuav tuaj yeem pom txoj hlua sib cais hauv qhov browser. Nws feem ntau yog siv los cais ib pawg ntawm cov ntaub ntawv los ntawm lwm qhov.
Cov ntawv cim npe tau siv los npaj cov ntsiab lus. Cov ntaub ntawv cov ntawv, chaw nyob xaib, cov ntawv sib txuas yog tso ntawm cov cim P (pawg lus ntawm cov ntawv nyeem), IMG (duab), A (hyperlink).
Tag cim
Qee cov cim npe muaj cov cim tshwj xeeb uas cuam tshuam rau "kev coj cwj pwm" ntawm ib lub caij. Qee qhov ntawm cov cim npe hauv qhov niaj hnub html5 tshwj xeeb ua rau nws muaj peev xwm txhawm rau nrog cov txheej txheem yav dhau los uas xav tau rau cov haujlwm ib txwm.
Piv txwv li, FORM lossis (daim teb nkag) muaj PLACEHOLDER tus cwj pwm uas hloov cov ntawv sau nrog "cov ntaub ntawv xeem" nrog kev tshaj tawm. Yog tias tus tsim tawm lub vev xaib xav kom daim teb rau kev sau lub npe yuav tsis khoob, tab sis yuav tso tawm lub npe piv txwv, nws tuaj yeem tsim PLACEHOLDER ntaus nqi rau "Ivanov Ivan". Tom qab ntawd "Ivanov Ivan" yuav muab tso tawm rau hauv kab ntawv sau rau nkag mus rau lub npe - kom txog thaum tus neeg siv txav tus cursor rau daim teb no. Pob zeb yuav ploj mus thiab nws yuav nkag mus rau nws lub npe.
Txuas nrog CSS
Ib qhov txuj ci tshiab tshiab (piv rau html) rau kev nthuav qhia cov chaw hauv Is Taws Nem yog CSS. Cov CSS sau huav cov ntawv txheeb ua qauv. Ua ntej lawv cov tsos, webmasters siv los faib cov xaib mus rau lub laj thawj kev teeb tsa cov lus (Rooj rau npe). Tam sim no tus tsim lub tsev kawm ntawv muaj lub sijhawm los tso txhua yam uas muaj feem rau kev nthuav qhia ntawm lub xaib (suav nrog thaj chaw ntawm cov khoom) hauv cov ntawv tshwj xeeb style css. Txhawm rau txuas cov ntawv style rau ib daim ntawv html, koj yuav tsum sau qhia chaw nyob ntawm css ntawv ntawm cov neeg rau zaub mov hauv LINK tus khub.