Cov txheej txheem:

Code tag txhais li cas hauv HTML?
Code tag txhais li cas hauv HTML?

Video: Code tag txhais li cas hauv HTML?

Video: Code tag txhais li cas hauv HTML?
Video: Muaj Yis hauv Xib tes yuav Qhia tau Txoj Hmoo li cas 2024, Kaum ib hlis
Anonim

Qhov < code > tag hauv HTML yog siv los txhais cov khoom ntawm lub computer code . Cov code tag ib hom ntawv tshwj xeeb uas sawv cev rau lub computer tso zis. HTML muab ntau txoj hauv kev rau kev sau ntawv tab sis < code > tag yog tso tawm kom pom nrog daim ntawv loj, font, thiab qhov sib nrug.

Yog li ntawd, code tag hauv HTML yog dab tsi?

HTML < code > Tag Qhov < code > tag yog siv rau insertfragments ntawm qhov kev pab cuam code , variables, etc. rau hauv ib HTML ntaub ntawv. Hauv qhov browser, lub code yog tso tawm nyob rau hauv ib tug monospaced font (ib tug font nyob rau hauv uas tag nrho cov cim yog ntawm tib qhov dav) ntawm qhov me me.

Tsis tas li ntawd, tag lub npe HTML yog dab tsi? Cov npe attribute qhia a npe rau keeb . Qhov no npe attribute yuav siv tau toreference lub keeb hauv JavaScript. Rau cov ntsiab lus itis kuj siv los ua ib qho kev siv thaum cov ntaub ntawv xa tuaj, Rau iframe keeb nws tuaj yeem siv los tsom rau daim ntawv thov.

Ib yam li ntawd, nws tau nug, dab tsi yog cov cim muaj nyob hauv HTML?

Basic HTML

Tag Kev piav qhia
Txhais cov ntaub ntawv hais txog cov ntaub ntawv
Txhais lub npe rau daim ntawv
Txhais cov ntaub ntawv lub cev

rau

Txhais cov ntsiab lus HTML

Dab tsi yog qhov tsis txaus siab tag hauv HTML?

Cov ntawv tsis txaus siab thiab cov cwj pwm yog cov uas tau hloov los ntawm lwm yam, tshiab dua, HTML tsim. Cov ntawv tsis txaus siab tseem suav nrog HTML draftor kev pom zoo tab sis raug cim kom meej tias tsis pom zoo . Ib zaug tsis pom zoo , tag tuaj yeem ua tsis tiav. Tsab ntawv "thov yaum kom" qhov tsis siv ntawm deprecated tag.

Pom zoo: