Kana iwe uchida kugadzira yako webhusaiti peji, iwe unofanirwa kuve nekunzwisisa kweHTML. This article explains how to create an HTML page. Zvakare, iwe unozodzidza kugadzira xml sitemap uye maitiro ekuwedzera mufananidzo uye chinongedzo. Izvo zvakakoshawo kugadzira xml sitemap, iyo inogona kukubatsira kuronga yako saiti uye kuwedzera traffic yako. Nhanho inotevera ndeyekusarudza template.
Creating a html page
HTML mutauro wekumaka. Chinhu chese chepeji rewebhu chinomiririrwa ne tag. Tag inoziviswa nemakona mabhuraketi, uye chinhu chimwe nechimwe chine tag imwe kana anopfuura. Zvimwe zvinhu zvinoda tag imwe chete; vamwe vangada maviri. Iwo ma tag ekuvhura nekuvhara ane kumberi slash (/). Semuyenzaniso, chikamu chendima chinomiririrwa ne p tag. Chinyorwa chiri pakati pematagi ekuvhura nekuvhara ndiwo ndima yendima.
Kugadzira gwaro reHTML, unozofanirwa kushandisa text editor. Mazhinji makomputa ane mavara edhita nekusarudzika. Vashandisi veWindows vachashandisa Internet Explorer, nepo vashandisi veMac vachigona kushandisa TextEdit. Iwe unogona kuisa inoyevedza mavara edhita kugadzira peji rewebhu rinotaridzika, asi kune yako yekutanga HTML peji, hazvidiwi. Iwe unogona zvakare kushandisa yakapusa mameseji edhita uye chero web browser. Kana iwe usina chokwadi chei chirongwa chekushandisa, edza kudhawunirodha yemahara HTML mupepeti.
Peji yehtml ine zvikamu zviviri zvikuru: muviri nomusoro. Chikamu chemuviri chine izvo chaizvo zvewebhusaiti, nepo chikamu chemusoro chinoshandiswa kune zita uye meta ruzivo. Muviri une zvimwe zvinhu zvese, kusanganisira mifananidzo uye mamwe magirafu. Chikamu chemusoro ndiyo nzvimbo yekuisa ako ekufambisa zvinongedzo. Mushure mekunge mapedza kunyora muviri, wagadzirira kuisa zviri mugwaro. Ita shuwa kushandisa muviri uye musoro zvinhu kuti uve nechokwadi chekuti webhusaiti yako inowanikwa kune wese munhu.
Creating a xml sitemap
If you have an HTML page, ungangoda kugadzira XML sitemap kubatsira injini dzekutsvaga kukambaira webhusaiti yako. Kunyangwe izvi zvisingakanganise masengiro ako ekutsvaga, zvichabatsira injini dzekutsvaga kunzwisisa zvirimo uye kugadzirisa kukambaira kwavo. Nenzira iyi, webhusaiti yako ichanyanya kuoneka mune yekutsvaga injini mhinduro. Heano mamwe matanho ari nyore ekutanga:
Kugadzira HTML sitemap iri nyore kuita. Zvese zvaunofanirwa kuita kugadzira tafura iri nyore yemapeji esaiti yako, ine zvinongedzo kupeji rega rega. Wobva wabatanidza kune iyo sitemap peji mumusoro kana tsoka. Nenzira iyi, zvisinei kuti saiti yako ine mapeji mangani, vanhu vanogona kufamba mazviri nyore. Uyezve, haufanirwe kuendesa SEO kugadzira saitimepu.
Kana peji rako reHTML rave live, itumire kuGoogle Search Console. Iwe unogona kushandisa chero faira rekuwedzera uye kutumidza yako XML sitemap. Unogona kuendesa iyo XML sitemapu kuGoogle, asi hazvidiwi. Vanokambaira veGoogle kazhinji vakanaka pakutsvaga zvitsva, uye haufanire kuendesa saitimepu kwavari. Iwe unogona zvakare kuendesa kune dzimwe injini dzekutsvaga, asi izvi hazvivimbise kuti uchawanikidzwa neGoogle.
Izvo hazvifanirwe kuwedzera XML sitemap kune yako webhusaiti peji, asi ichawedzera SEO webhusaiti yako. Saitimepu dzinoshandiswa neinjini dzekutsvaga kuvabatsira index mapeji asina kubatanidzwa zvakananga newebhu peji. Sitemaps zvakare inobatsira kuvandudza kuwanikwa kwezvakapfuma midhiya zvemukati. Kuwedzera saitimepu kune webhusaiti yako kunogona kubatsira kuita kuti saiti yako iwanikwe kune yekutsvaga injini bots.
Adding a picture
In HTML, unogona kuwedzera mufananidzo kune peji uchishandisa iyo img tag. Iyi tegi ine chete mufananidzo nehunhu hwayo; haidi chivharo chekuvhara. Iyi tag yemufananidzo inofanira kuiswa mukati mechikamu chemuviri chegwaro reHTML. Mukuwedzera kune upamhi uye urefu hwemufananidzo, unofanira kusanganisira alt hunhu hunotsanangura mufananidzo. Iyo alt tag inofanirwa kunyorwa sekunge uri kunyora tsananguro yemunhu asingaione.
Kuwedzera mufananidzo kugwaro reHTML kunoda zvishoma zveCSS uye HTML ruzivo. Saizi yemufananidzo uye kugadzirisa zvinhu zviviri zvakakosha zvekufunga nezvazvo. Saizi yemufananidzo ndiyo icharatidza kuti ichakwana sei mune zviri mugwaro. Kana iwe uchida kushandisa imwe sarudzo kana chimiro chiyero, iwe unogona zvakare kuedza kuyera saizi yemufananidzo. Zvisinei, yeuka kuti kuyera hakushande sezvaunotarisira.
Mutemo wakanaka wekugadzirisa ukuru hwemufananidzo ndeyekuwedzera hupamhi hwayo. Hupamhi hunofanira kunge hudiki pixel imwe pane kureba. Kana mufananidzo uri mudiki kuti uratidze, unogona kuwedzera muganhu, wozoigadzirisa kuti ikwane saizi yemufananidzo. Iwe unogona zvakare kugadzirisa muganhu wemufananidzo nekuwedzera kune iyo muganhu hunhu. Ukobvu hwebhodha ndiyo yakasarudzika kukosha, asi iwe unogona kuzviisa kune chero kukosha. Ita shuwa kuti mufananidzo wacho une src hunhu.
Adding a link
You can add a link in HTML to your document using an a> tag ine href hunhu. Izvi zvinogadzira bookmark regwaro uye rivhure mune itsva tab. Iwe unogona zvakare kushandisa href hunhu kuisa mufananidzo mugwaro. Iwe unogona zvakare kushandisa chinongedzo chine JavaScript kodhi kushandura bhatani reHTML kuita chinongedzo. Kana waita izvi, unogona kutayera chinongedzo chako neCSS kana JavaScript kodhi.
Chinongedzo chinongedzo kubva kune imwe webhu sosi kuenda kune imwe. Inoumbwa nemagumo maviri, chitubu anchor uye anchor yekuenda. Chibatanidza chinogona kuva chero chinhu kubva pamufananidzo kusvika kune chinyorwa faira. Mazhinji masocial network uye mawebhusaiti anoshandisa zvinongedzo kutungamira vashandisi kune imwe URL. HTML inogona zvakare kushandiswa kutsanangura nzvimbo yekubatanidza. Iye 'a’ hunhu hunobvumidza iwe kubatanidza kodhi zvinhu kune URL.
Paunenge uchigadzira chinongedzo, ita chokwadi chekufunga kuti vashanyi vako vachashandisa sei zvirimo. Mavara ekubatanidza anofanira kunge achitsanangura, kuitira kuti vagoziva chaizvo zvavanofanira kutarisira. Kudzokororwa kweiyo URL imwe chete kwakashata kune vanoverenga skrini, uye hazvivapi chero ruzivo runobatsira. Vaverengi veScreen zvakare vanoudza vashandisi kana ma link aripo nekuvaita akasiyana masitaera kana kudhindwa. Nenzira iyi, vanogona kuwana nyore ruzivo rwavanoda.
Adding a table
Adding a table to an HTML page is simple, asi pane zvinhu zvishoma zvaunofanira kufunga usati wazviita. Ruvara rwekumashure rwetafura yako rwakakosha pakubata ziso remuenzi wako uye kukwevera pfungwa kune yakakosha ruzivo. Iwe unogona kuseta rumwe ruvara rwemusoro wetafura chinhu uye data data uchishandisa hex mavara makodhi kana mazita emavara. Chero nzira, tafura yako ichaonekwa nyore.
Iwe unogona kuwedzera musoro wetafura uye data yetafura ine td element, iyo inotsanangura munhu “mabhokisi” zvemukati. Kuwedzera musoro wetafura ndiyo nhanho yekutanga kuratidza data pane peji rewebhu, uye unofanira kuwedzera yekutanga kana uchida. Tafura inofanirawo kuva nemitsara mitatu yemisoro. Mumwe musoro unofanira kunge usina chinhu. Kana tafura yako ine makoramu, iwe unofanirwawo kugadzira mitsara misoro yekoramu yega yega.
Iwe unogona zvakare kuwedzera zvinyorwa patafura yako. Chinyorwa chinhu chinosarudzika chinotsanangura chinangwa chetafura. Zvinyorwa zvinobatsirawo pakusvikika. Tafura yacho inogona zvakare kuve nemasero anotsanangura mapoka e data. Pakupedzisira, unogona kuwedzera thead element kutsanangura seti yemitsara nemakoramu. Iwe unogona kushandisa zvese zviri zviviri zvinhu pamwe chete kana zvakasiyana. Unogona kuzvishandisa pamwe chete, asi chinyorwa ndicho chinonyanya kukosha.
Adding a div
Adding a div to an HTML file allows you to add a section of your webpage without re-writing the whole page. Div element igaba rakakosha remavara, mifananidzo, nezvimwe zvinhu. Unogona kuzvitumidza chero chaunoda uye shandura hunhu hwayo kuti huenderane nezvaunoda. Iwe unogona zvakare kuwedzera kirasi kana margin kuti ugadzire nzvimbo pakati pe div nezvimwe zvinhu pane peji rako.
Iwe unogona zvakare kushandisa iyo yemukatiHTML hunhu kuisa kodhi mukati me div. Iyi nzira inogamuchira kodhi yakavharirwa mutambo, uye kana isiri mukati me div, zvirimo zvichabviswa. Iwe unofanirwa kudzivirira kuisa kodhi mu div nenzira iyi, sezvo inogona kufumura webhusaiti yako kuyambuka-saiti scripting kusagadzikana. Kana uri kushandisa mutauro wekunyora wakaita seJavaScript, unogona kushandisa iyo yemukatiHTML hunhu.
Div ndiyo yekutanga HTML tag inoshandiswa kuunganidza kodhi mukati megwaro. Inogona kuva nendima, block quote, mufananidzo, audio, kana kunyange musoro. Nzvimbo yaro inokubvumira kushandisa chimiro chakafanana uye mutauro kune zvikamu zvakasiyana zvepeji. Divs anoshandiswa zvakanakisa kumaka semantics akajairika kumapoka ezvinhu zvakatevedzana. Div inofanira kushandiswa kana iwe uchida kuwedzera chimiro kune chikamu pasina kunyorazve peji rese.