Tsim lub vev xaib tsis tas yuav nyuaj. Hauv zaj no peb yuav kawm txog dabtsi hauv zaj no, peb yuav taug kev los ntawm cov hauv paus ntawm HTML nplooj ntawv tsim thiab yuav ua li cas los tsim cov npe mini-suav npe. Next, peb mam li tham txog yuav ua li cas siv HTML>-tag los qhia cov ntawv nyeem. Thaum kawg, peb yuav qhia koj yuav ua li cas tsim lub vev xaib hauv ob peb teev. Peb tseem yuav npog ob peb lwm cov txheej txheem muaj txiaj ntsig.
HTML yog hom lus siv los tsim cov nplooj ntawv web. Nws txhais tau cov qauv ntawm nplooj ntawv web thiab CSS tswj hwm cov ntsiab lus tso tawm li cas. Nws tsis yog qhov nyuaj los tsim ib nplooj ntawv HTML yooj yim. Ntawm no yog ib kauj ruam los ntawm kauj ruam qhia txog kev pib. Thaum koj muaj nplooj ntawv HTML yooj yim, Koj npaj txhij los tsim cov ntawv nyuaj thiab muaj zog dua. Txhawm rau pib, koj yuav xav tau cov ntawv nyeem editor thiab lub web browser.
Koj tseem tuaj yeem siv lo lus processor zoo li MS Word los tsim cov ntsiab lus rau koj lub vev xaib. Koj yuav siv hyperlinks mus txuas cov ntawv nyeem rau txhua lwm yam. Koj kuj yuav txuag tau cov ntaub ntawv raws li ib tug html ntaub ntawv, ib tug web page. Txoj kev no ua hauj lwm zoo, tab sis cov nplooj ntawv koj tsim no yog loj heev thiab tsis saib zoo nyob rau hauv ib tug browser qhov rai. Qhov tsuas downside rau txoj kev no yog hais tias koj yuav tsum kawm siv cov cuab yeej uas muaj.
HTML yog hom lus markup, uas txhais tau tias koj yuav tsum suav nrog cov cim npe nyob rau hauv thiaj li yuav format cov ntsiab lus ntawm nplooj ntawv. Txhua lub cim npe sawv cev rau ib qho ntawm cov ntsiab lus ntawm nplooj ntawv. Ib qho cim npe yog txheeb xyuas los ntawm lub kaum sab xis bracket. Qee cov ntsiab lus xav tau tsuas yog ib qho cim npe, thaum lwm tus xav tau ob. Ib qho kaw cim npe muaj ib qho slash rau pem hauv ntej. Piv txwv, kab lus cim npe tsim ib qho khoom hu ua kab lus. Cov ntawv nyeem nyob nruab nrab ntawm cov cim npe qhib thiab kaw yog cov ntawv nyeem kab lus. Zoo sib xws, Lub ul cim npe tsim ib daim ntawv teev npe tsis muaj kev txiav txim.
Tsim ib qho mini-suav ntu yog ib txoj hauv kev zoo los txuas ntau yam ntawm tib nplooj ntawv web. Ib nplooj ntawv HTML tuaj yeem muab faib ua ob peb sub-seem, Nrog rau txhua ntu uas muaj cov npe ntawm cov ntsiab lus. Cov ntsiab lus no ua haujlwm sib txawv. Koj tuaj yeem siv hom attribute los qhia cov tsiaj ntawv sib txim. Koj tseem tuaj yeem siv cov tsiaj ntawv me los tsim cov npe ntawm cov ntsiab lus nrog cov tsiaj ntawv a, b, lossis c.
Ntxiv ib qho yooj yim. Ib daim ntawv HTML yooj yim muaj cov cim npe uas txhais tau nws cov ntsiab lus. Cov cim npe no feem ntau tuaj ua khub. Lub cim npe qhib yog siv los sau cov ntsiab lus hauv nws, Thaum lub cim npe kaw lub ntsiab lus. Lub cim npe qhib, Los yog lub taub hau, suav nrog cov lus piav qhia txog daim ntawv. Cov ntaub ntawv no yuav muaj lub npe, cov ntaub ntawv style, scripts, lossis cov ntaub ntawv meta. Lub cim npe kaw, on the other hand, kaw lub ntsiab.
Lub html>-cim npe yog siv los txhais cov ntsiab lus tseem ceeb ntawm ib daim ntawv HTML. Cov ntsiab lus tseem ceeb yog cov ntawv nyeem ntsig txog lub ntsiab lus nruab nrab lossis kev ua haujlwm ntawm nplooj ntawv. Nws yuav tsum yog qhov tshwj xeeb los ntawm lwm cov ntsiab lus ntawm lub xaib. Lwm cov ntsiab lus yuav tshwm sim ntawm nplooj ntawv hauv daim ntawv ntawm sidebars, navigation txuas, cov ntaub ntawv copyright, site logos, thiab tshawb nrhiav daim ntawv. Ib nplooj ntawv HTML yuav tsum ua raws li html>-tag yuav tsum suav tias yog nplooj ntawv HTML.
Lub href = attribute qhib qhov txuas ntsiab. Tom qab lub “=” kos npe, koj yuav tsum paste qhov URL ntawm qhov txuas. Koj tseem tuaj yeem siv ntau kab lus hauv ib lub ntsiab lus. Lub bracket kaw yog qhov yuav tsum tau. Qhov no yuav tiv thaiv koj cov kev sib txuas los ntawm kev txhais yuam kev. Txhawm rau ua kom html nplooj ntawv nyeem tau yooj yim, ntxiv qhov txuas rau koj lub vev xaib. Lub html>-tag yuav tso cai rau koj ntxiv cov kev sib txuas uas taw tes rau lwm nplooj ntawv web.
Ib qho HTML cov ntaub ntawv yuav muaj qhov txuas ntxiv .html uas yuav qhia koj lub computer nws yog cov ntaub ntawv HTML. Nws yog qhov zoo tshaj plaws los siv tus hyphen es tsis txhob muaj qhov chaw, raws li qhov chaw yuav tiv thaiv lub web browser los ntawm kev nrhiav cov ntaub ntawv. Thaum koj tau ua tiav tsim ib nplooj ntawv HTML, koj yuav tau txuag nws. Next, Mus rau daim nplaub tshev nrog cov ntaub ntawv HTML thiab right-click nws. Nws yuav tsum tshwm sim zoo ib yam li lub screenshot hauv qab no.
Koj tuaj yeem siv lub cim> cim npe los qhia cov ntawv nyeem hauv cov ntaub ntawv HTML. Nws yog ib qho tshiab HTML 5 feature, thiab nws txhais tau ib feem ntawm ib kab lus. Lub cim> tag ua haujlwm los ntawm kev hloov cov keeb kwm yav dhau-xim ntawm cov ntaub ntawv HTML hauv qab. Lub cim> tag txhawb nqa ob qho tib si Ntiaj Teb thiab Kev Tshwm Sim Attributes. Nws yuav qhia cov ntawv nyeem hauv daj lossis dub. Nws tseem muaj peev xwm hloov cov xim ntawm cov ntawv nyeem hauv CSS cov ntaub ntawv hauv qab.
Feem ntau cov kev tshuaj ntsuam nyeem tsis tshaj tawm lub cim ntsiab, but you can use CSS content property or.before and.after pseudo-elements to make it obvious which text you’d like to highlight. Announcements are verbose and add unnecessary information to the page, so you should use them sparingly. Piv txwv, you can use announcements to highlight a search term or block quotes. Announcements are supported by all major browsers.
In addition to background-color style, you can use the ‘highlightme’ class to highlight the text in your HTML document. Cov keeb kwm yav dhau-xim style yog txhawb los ntawm tag nrho cov browsers. Koj tseem tuaj yeem siv lo lus 'daj'’ es tsis txhob siv cov xim code. Koj tuaj yeem siv tib txoj cai los qhia txog ib kab lus lossis ntu ntawm cov ntawv nyeem. Koj tseem tuaj yeem siv cov chav kawm CSS los qhia cov ntawv nyeem.
Lub html>-cim npe yog siv los tsim cov npe ntawm mini-suav nrog. Nws muaj qhov sib raug kaw cim npe thiab lub npe ntawm lub ntsiab lus yog me me. HTML cov ntaub ntawv yog encoded siv UTF-8 cim encoding, uas txhawb nqa kev suav nrog Unicode cim. Thaum siv html>-tag, nco ntsoov xaiv UTF-8 hauv “txuag-as” dialog box.
Siv html>-tag mus ntxiv ib daim ntawv teev npe mini-suav rau nplooj ntawv HTML yog qhov yooj yim. Koj tuaj yeem siv cov cim npe no rau txhua yam uas txhawb nqa daim ntawv teev npe tsis tau txiav txim. Koj tuaj yeem txawm siv daim ntawv teev npe tsis tau txiav txim rau cov ntawv qhia zaub mov navigation. Lub dl element encloses ib daim ntawv teev cov khub ntawm cov ntsiab lus thiab cov lus piav qhia. Cov khoom nyob rau hauv ib daim ntawv teev kev txiav txim yog tso tawm kom pom nrog ib tug ascending txee nyob rau sab laug. Koj kuj yuav tshem tawm lub dl element yog hais tias daim ntawv teev npe yog tam sim ntawd ua raws li los ntawm lwm yam.
Lwm txoj kev uas yuav ntxig ib tug mini-include daim ntawv yog ntxiv ib tug footer ntsiab nyob rau hauv ib tug HTML ntaub ntawv. Cov ntsiab lus no sawv cev rau cov footer ntawm cov ntsiab lus ze tshaj plaws. Nws feem ntau muaj cov ntaub ntawv hais txog tus sau, cov ntaub ntawv copyright, lossis txuas mus rau cov ntaub ntawv cuam tshuam. Siv html>-tag los tsim ib daim ntawv teev npe mini-suav nrog ntawm nplooj ntawv HTML
HTML5 qhia txog cov ntawv nyeem ib leeg nrog lub cim> ntsiab. Qhov no HTML5 cim npe hloov cov xim ntawm cov ntsiab lus hauv qhov chaw mus rau ib qho ntxoov ntxoo ntawm daj lossis dub, Tso cai rau tus nyeem ntawv kom paub qhov txawv ntawm cov ntawv tseem ceeb. Nws kuj tseem tuaj yeem siv los qhia cov ntu ntawm cov ntsiab lus uas xav tau kev saib xyuas ntau dua li lwm cov ntawv nyeem. Lub cim> Element txhawb nqa Cov Cim Thoob Ntiaj Teb thiab Cov Xwm Txheej Hauv HTML. Thaum siv kom raug, Qhov no HTML5 cim npe tuaj yeem txhim kho kev nyeem ntawv ntawm nplooj ntawv webpage.
Tus qauv HTML4 deprecates lub cev-style cim-qib cim npe. Lawv cuam tshuam nrog kev nthuav qhia, Thiab nws yog qhov zoo dua los siv CSS rau cov hom phiaj no. HTML5 tau rov qhia lawv. Lawv tsis yog deprecated lawm, Tab sis lawv tseem tsis yog tib txoj hauv kev los qhia txog cov ntawv nyeem ib leeg. Siv CSS los qhia txog ib tus neeg thaiv ntawm cov ntawv nyeem nrog HTML5! Txoj kev yooj yim no yuav qhia txog cov ntawv nyeem thaiv ib leeg hauv ib daim ntawm cov ntsiab lus.
Ntab: Koj tuaj yeem siv cov CSS tus kheej no los ntab ib qho khoom mus rau sab laug lossis sab xis ntug ntawm lub ntsiab lus muaj. Nws tuaj yeem siv los tsim daim phiaj lossis kem. You can also use a CSS property called float to float an iframe or an image to the left or right margin of the browser. These attributes make it easier to highlight individual blocks with CSS.