Dab tsi yog preformatted text tag hauv HTML?
Dab tsi yog preformatted text tag hauv HTML?

Video: Dab tsi yog preformatted text tag hauv HTML?

Video: Dab tsi yog preformatted text tag hauv HTML?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Hlis ntuj nqeg
Anonim

Cov

tag txhais cov ntawv nyeem ua ntej . Ntawv nyeem hauv

keeb yog tso tawm nyob rau hauv ib tug ruaj-dav font (feem ntau Courier), thiab nws khaws cia ob qho tib si qhov chaw thiab kab so.

Kuj kom paub yog, koj ua li cas tso cov ntawv hauv HTML?

HTML siv cov ntsiab lus zoo li thiab rau formatting tso zis, zoo li bold lossis italic ntawv.

Formatting ntsiab tau tsim los tso saib tshwj xeeb ntawm cov ntawv nyeem:

  1. - Cov ntawv sau siab .
  2. - Cov ntawv tseem ceeb .
  3. - Cov ntawv Italic.
  4. - Cov ntawv tseem ceeb.
  5. - Cov ntawv cim.
  6. - Cov ntawv me me.
  7. -Deleted ntawv nyeem.
  8. - Cov ntawv sau.

Ib tug kuj yuav nug, ua li cas koj qhwv ntawv nyob rau hauv pre tag? HTML < ua ntej > tag txhais preformatted ntawv nyeem . Nws yog siv los tso saib cov cai thaiv vim nws khaws cov chaw thiab kab tawg. Yog tias kab loj, ces qhov < ua ntej > tag yuav tsis qhwv nws los ntawm lub neej ntawd. Rau qhwv nws, peb yuav tsum siv CSS.

Tsis tas li lo lus nug yog, vim li cas pre tag siv?

Thaum sau hauv HTML, qhov < ua ntej > tag yog ib qho block siv xaiv cov ntawv preformatted. Nws yog qhov tseem ceeb vim tias cov ntawv ntawm < ua ntej > tag muaj ob qho tib si nws qhov chaw thiab kab tawg tau khaws cia ntxiv rau qhov tso tawm kom pom nyob rau hauv qhov dav-dav font.

EM tag hauv HTML yog dab tsi?

Kev piav qhia. Cov HTML < ua em > tag cim cov ntawv uas muaj kev ntxhov siab uas ib txwm txhais tau hais tias cov ntawv nyeem tau tso tawm hauv cov ntawv qaij los ntawm qhov browser. Qhov no tag kuj feem ntau hu ua < ua em > keeb.

Pom zoo: