Iwe unogona kuvaka peji yeHTML nekushandisa mashoma akasiyana maitiro. The first technique that you can use is to use a template. A template inzira yekuchengetedza uye kuronga zvirimo zvewebhusaiti. Unogona kuwana mienzaniso yematemplate paInternet. Izvo zvinobatsirawo kugadzira yako yega template template.
!DOCTYPE html>
beginkw!DOCTYPE html> endkw I para:!DOCTYPE html> murairo wekubatanidza gwaro nerudzi rwegwaro chairo, zvakadai se XML. Ichi chiziviso chinozviratidza sechipfupi tambo yemarkup inoenderana neimwe syntax. Chinangwa chechiziviso ichi ndechekubvumira mabhurawuza kuti aone marudzi akasiyana ezvinyorwa uye kuapa nemazvo.
Chiziviso cheDOCTYPE chinofanira kunge chiripo pakutanga kweHTML source code. Zvikasadaro, webhusaiti yako inogona kuratidza zvisizvo kana kusaratidzwa zvachose. Kana DOCTYPE isipo, browser ichachinja kuenda “Quirks mode” uye kuratidza saiti neimwe nzira.
Iyo doctype declaration inobata ese mapeji eHTML neXHTML. Iyo iri nyore vhezheni yeiyo XHTML spec uye ine tambo mbiri dzakapatsanurwa nemakotesheni. Tambo yekutanga ndeye “-//W3C/DTD HTML 4.01/EN” – izvi zvinotsanangura kuti gwaro rakatsikiswa neW3C uye iHTML vhezheni 4.01. Tambo yechipiri inotsanangura mutauro weDTD.
Iyo doctype declaration inowanzowanikwa pamberi pema tag eHTML. Izvi zvinoita kuti mabhurawuza aone iyo chaiyo HTML gwaro uye kudzivirira quirks mode. DOCTYPE html ndechimwe chezvinhu zvakakosha mugwaro reHTML, asi kazhinji inofuratirwa. Kuita kuti chiziviso chako chedoctype chakarurama, shandisa HTML editor ine kukanganisa-kutarisa maitiro.
!DOCTYPE css>
Paunenge uchigadzira HTML peji, zvakakosha kuziva kuti ndezvipi HTML-zviyero zvekushandisa. Pane 3 nzvimbo huru dzekutarisa: doctype, XHTML, uye XSLT. DOCTYPE inobvumira mamwe maHTML-TAGS, nepo DOCTYPE Strict yakanyanya kuomarara neiyo XHTML-zvinodiwa. Nenzira iyi, bhurawuza rinoziva kuti harisi faira reHTML risina kunaka.
CSS Style Sheets inogona kuiswa mukati meHTML peji kana kuchengetwa mune yakaparadzana.css faira. Kushandisa mafaera eCSS akasiyana kunokuchengetedza kubva pakunyora CSS kodhi zvakare. Inoderedzawo kudiwa kwekunyora maitiro mapepa. Iwo masitayera achaiswa mukati mechimwe chinhu chinonzi maitiro.
Kuti webhusaiti ishande, inofanira kusanganisira zita. Ichi ndicho chinhu chekutanga icho mushandisi webrowser achaona, saka ita chokwadi kuti zvine musoro. Kushandisa zita rimwechete pamapeji akawanda hazvikurudzirwe – munofanira kupa mumwe nemumwe zita rakasiyana. Iwe zvakare unofanirwa kuve nechokwadi chekuti hunhu huri mumusoro unosiyaniswa kubva kune chero mamwe mavara ari mugwaro.
Kana iwe uchitsvaga dzidziso yekukubatsira iwe kudzidza HTML neCSS, edza HTML & CSS fur vanotanga tutorial series. Ichi chidzidzo chinokudzidzisa manyorero ewebhu peji uchishandisa CSS uye HTML. Mushure mekunge matevera dzidziso, unogona kugadzira peji rako rekutanga uchishandisa notepad++. Muchidzidzo ichi, iwe uchadzidza kuronga zvese zviri mukati mewebhu peji uchishandisa ma tag.
!DOCTYPE a
HTML doctype is a specification for a document’s standards and format. Izvo zvinodikanwa kuve neDOCTYPE kana iwe uchida kuona kuti peji rako rewebhu rinoshanda pamabhurawuza ese. Inoshandiswawo nemabhurawuza ewebhu kusimbisa mapeji ako eHTML, iyo inokubatsira kuti udzivise zvikanganiso uye uvandudze webhusaiti yako. Paunenge uchigadzira peji rewebhu, iyo DOCTYPE inofanirwa kukopwa chaizvo, kuve nechokwadi kuti yakamurwa nemazvo uye nekududzirwa nebrowser.
Paunenge uchigadzira peji reHTML, unogona kushandisa mashoma HTML-TAGS. Aya ma tag anoshandiswa kugadzira misoro netsoka pane peji rewebhu. Anogona zvakare kuve neruzivo rwekuwedzera. Iyo HTML-TAGS yakakamurwa kuita zvikamu zvitatu. Izvi zvinosanganisira:
HTML inopawo maitiro ekutsanangura mavara anogona kukonzera matambudziko mukodhi. Zviumbwa izvi zvinosanganisira & uye ; uye mavara mashoma anotsanangura. Semuyenzaniso, muchiGerman, unogona kushandisa ß kukodha ese umlauts uye inopinza S mune peji.
Pamusoro pekuve chinodiwa kune inoshanda HTML kodhi, peji isina DOCTYPE declaration icharatidza zvisizvo. Izvi zvinoitika nekuti mabhurawuza anochinja kupinda “Quirks mode” kana gwaro racho risina DOCTYPE yakakodzera.
!DOCTYPE b
HTML5 is a markup language. Kuwedzera chiziviso ichi kune yako HTML faira kunoudza browser yako kuti ndeapi zviyero zvekushandisa uye maitiro ekupa iyo markup.. Izvi zvakakosha nekuti iwe unoda kuti peji rako reHTML ripe nemazvo. Pamusoro pe, zvichabatsira webhusaiti yako kutarisa yakachena uye nyanzvi.
HTML mutauro wekumaka, zvinoreva kuti ine mipimo. Iyo World Wide Web Consortium (W3C) inovandudza uye inochengetedza zviyero zveHTML. Mutauro uyu ndiwo chiyero chekugadzira mapeji ewebhu uye unoshandiswa zvakanyanya. HTML inoshandiswa pamapeji ewebhu, zvinoreva kuti unogona kuwedzera chero chinyorwa kana graphic kwairi, uye iwe unogona kusanganisira multimedia mumapeji ako ewebhu.
Kune akati wandei marudzi eHTML-mapeji, uye iwe unogona kusarudza DOCTYPE-Bereich inonyatsokodzera zvaunoda. Semuyenzaniso, DOCTYPE Strict yakanyanya kuomarara nezve XHTML zvinodiwa pane DOCTYPE B, asi inobvumira mamwe maHTML-TAGS.
Iwe unogona zvakare kuzvironga yako HTML-Webhusaiti. Zvisinei, izvi zvine zvazvakaipira. Zvinoda hunyanzvi hwekugadzirisa zvirongwa, pamwe nekunyatsonzwisisa kweHTML. Pamusoro pe, zvinogona kutora nguva zvakanyanya. Zvisinei, kana wakazvipira, unogona kugadzira webhusaiti inoshanda.
Chimwe chinhu chakakosha cheHTML ndechekuti inokutendera kuti usateerere mavara. Iwe unogona zvakare kuwedzera makomendi uye woashandisa kutsanangura zvivakwa zvakaomarara kana kubvisa zvinyorwa zvisingadiwe.
!DOCTYPE css
While coding an HTML page, unofanira kugara uchiwedzera!DOCTYPE css yeHTML tag panotangira peji. Izvi zvinoudza bhurawuza kuti rudzii rwegwaro riri kubata naro uye kudzivirira zvikanganiso kubva mukugadzirwa. Kana iyo doctype isipo, iyo HTML kodhi ichave isiri iyo uye webhusaiti haizoonekwe nemazvo.
Iwe unogona zvakare kuwedzera yenguva pfupi erklartext kune yako HTML peji. Chinyorwa ichi chinodaidzwa kuti chombo chekushandisa, uye inowanzonyorwa semonospace coding. Kana iwe uchida kugadzira HTML peji iyo yakanyanya kuoma, unofanira kushandisa CSS.
Kushandisa DOCTYPE css faira kune yako HTML peji zvinokutendera iwe kugadzira webhusaiti yakaomesesa pasina kushanda nesimba.. Iri faira rine tsananguro yekuti peji rako reHTML rinofanira kunge riri rei uye zvarisingafanire kuve nazvo. Zvinokubatsirawo kudzidza kubva pane zvawakakanganisa.
Kuwedzera DOCTYPE css yeHTML peji ndiyo imwe yedzakanakisa nzira dzekuita kuti webhusaiti yako iwanikwe kune vakasiyana vateereri.. Unogona kuishandisa kuudza mabhurawuza kuti peji rako igwaro reHTML uye kuti ndeupi mutauro wekuripa. Iyo yakanaka HTML mupepeti ichave yakavakirwa-mukati chimiro chekutarisa doctype.
!DOCTYPE css >
Mutauro wekukodha weHTML wakashanduka nekufamba kwemakore kuti ubatanidze kuchena, kupfupika chimiro. Izvi zvinobvumira vagadziri vewebhu kugadzira anoyevedza uye anoshanda mawebhusaiti. Iyo DOCTYPE inozivisa kodhi inoshandiswa kugadzira peji rewebhu, uye inoudza web browser zvaanogona uye zvaasingakwanise kuita nazvo. Icho chikamu chakakosha chekusimbisa yako HTML peji, saka zvakakosha kuikopa chaizvo.
Iyo DOCTYPE html tag inobatsira bhurawuza kuona webhusaiti yako uye inobatsira vanogadzira mapurogiramu kuziva kuidudzira. Iwo ma tag edoctype anofanirwa kuoneka pakutanga kwepeji rega rewebhusaiti. Zvisinei, hazvisi zvekumanikidzirwa. Zvakanakisa kushandisa iyo DOCTYPE yakakodzera peji rega rega.
HTML mapeji ane nzvimbo nhatu huru. Chekutanga, pane DOCTYPE-Bereich. Izvi zvinotsanangura izvo zviyero zvinoshandisa webhusaiti yako. Iyo DOCTYPE-Bereich inoita kuti ushandise mamwe maHTML-TAGS. DOCTYPE Strict, pane rimwe divi, inoisa zvinodiwa zvakasimba zveXHTML.
HTML mutauro unoenderana nekodhi yehunhu. Inogona kushandiswa kugadzira zvinyorwa. Makodhi ehunhu anogona kushandiswa kududzira mavara nemafonti. Iwe unogona zvakare kuwedzera zvinongedzo kumapeji ako ewebhu. Kuwedzera zvinongedzo kwavari chikamu chakakosha chewebhu. Semuyenzaniso, unogona kuwedzera chinongedzo kune chigadzirwa paAmazon.
DOCTYPE chinhu chakakosha chemagwaro eHTML. Kana iwe ukaita chikanganiso mune iyi kodhi, webhusaiti yako haizoratidzi nenzira kwayo. Kana usina chokwadi nezve DOCTYPE chaiyo, yakanaka HTML mupepeti ichava yakavakirwa-mukati kukanganisa-kutarisa chimiro.