Cov txheej txheem:

Kuv yuav kho li cas w3c validation yuam kev?
Kuv yuav kho li cas w3c validation yuam kev?

Video: Kuv yuav kho li cas w3c validation yuam kev?

Video: Kuv yuav kho li cas w3c validation yuam kev?
Video: vim hlub koj 2024, Kaum ib hlis
Anonim

Kuv yuav kho W3C validation yuam kev li cas?

  1. Load CSS ntawm txhua nplooj ntawv. Thawj qhov kev xaiv yog suav nrog tag nrho cov ntaub ntawv CSS ntawm tag nrho koj nplooj ntawv.
  2. Conditionally load CSS. Qhov kev xaiv thib ob (ib qho Meta Slider siv) tsuas yog suav nrog CSS thaum qhov shortcode ua tiav.
  3. Nruab ib lub minification plugin.
  4. Manually suav nrog CSS hauv koj lub ntsiab lus.

Nyob rau hauv txoj kev no, dab tsi yog qee hom kev ua yuam kev uas tus validator yuav tsis pab koj nrhiav?

  1. Tsis muaj Doctype kiag li.
  2. Tsis nco qab kaw lub ntsiab.
  3. Tsis nco qab / ntawm tus kheej kaw cov ntsiab lus.
  4. Tsis nco qab hloov cov cim tshwj xeeb.
  5. Unencoded cim hauv URLs.
  6. Thaiv cov ntsiab lus hauv cov ntsiab lus inline.
  7. Tsis muaj ALT tus cwj pwm ntxiv rau cov duab.
  8. Tom qab ntawd, lo lus nug yog, kev siv w3c validator yog dab tsi? Lub Markup Validator yog ib qho kev pab dawb los ntawm W 3C uas pab tshawb xyuas qhov siv tau ntawm Web cov ntaub ntawv. Cov ntaub ntawv Web feem ntau yog sau siv cov lus cim, xws li HTML lub XHTML. Cov lus no tau txhais los ntawm cov kev qhia tshwj xeeb, uas feem ntau suav nrog lub tshuab nyeem tau cov qauv sau ntawv (thiab cov lus).

    Tsis tas li ntawd, validation yuam kev yog dab tsi?

    Validations yuam kev yog yuam kev thaum cov neeg siv tsis teb cov lus nug uas yuav tsum tau ua. A validation yuam kev tshwm sim thaum koj muaj kev lees paub / teb cov lus nug tau qhib rau ib qho ntawm cov lus nug thiab tus neeg teb tsis teb cov lus nug kom raug (rau cov lej formatting, cov lus teb xav tau).

    Dab tsi yog qee qhov zoo rau validation?

    • 7 Cov txiaj ntsig ntawm HTML validation.
    • Tshawb xyuas cov nplooj ntawv phooj ywg - huv thiab yooj yim code.
    • Faster Loading - yog tias koj lub vev xaib muaj html yuam kev.
    • Tsawg load ntawm servers - huv thiab yooj yim code yuav tsis ua se.
    • Yooj yim hloov kho thiab tswj lub vev xaib - tsis muaj.
    • Browser compatibility - validated code kom koj qhov chaw.

Pom zoo: