34

看图学习:编写简洁并符合语义的HTML代码

Posted April 27th, 2010. Filed under html

1、删除不必要的<div>标签

例1:

删除不必要的<div>标签

例2:

2、使用具有语义的标签

3、尽量减少使用的<div>标签

例1:

例2:

4、使用缩进格式化代码

5、对代码注释使用结束标记

结论:养成好的编码习惯,尽量编写简洁的符合语义的代码,会无形中提高搜索引擎对你网页的可访问性!当然对SEO会起到事半功倍的效果!

If you have enjoyed this entry. Please feel free to bookmark it using your favorite social bookmarking site

34 Responses so far

  1. tc says:

    @例2
    如果是box是模块化的结构,还是保留好

    @3、尽量减少使用的<div>标签
    该使用何种标签就使用何种标签

  2. RYAN says:


    CheapTabletsOnline.Com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription drugs. Buy drugs online

    Buy:Accutane.Actos.Prevacid.Petcam (Metacam) Oral Suspension.Nexium.Zovirax.Retin-A.Lumigan.Prednisolone.Synthroid.Mega Hoodia.Valtrex.Human Growth Hormone.100% Pure Okinawan Coral Calcium.Arimidex.Zyban….

  3. DWIGHT says:


    NEW FASHION store. Original designers collection at low prices!!! 20 % TO 70 % OFF. END OF SEASON SALE!!!

    BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…

  4. CARLOS says:

    ████████►BUY CIALIS◀████████…

    ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…

  5. KARL says:

    Abilify

    Buygeneric pills…

  6. WALTER says:

    Abilify@official.site” rel=”nofollow”>…

    Buyno prescription…

  7. CLAUDE says:

    Allegra@official.site” rel=”nofollow”>…

    Buygeneric pills…

  8. LEE says:

    cephalexin@use.now” rel=”nofollow”>…

    Buygeneric drugs…

  9. GABRIEL says:

    Benuryl

    Buywithout prescription…

  10. DONALD says:

    Zyrtec

    Buygeneric drugs…

  11. GLENN says:

    Zyrtec

    Buygeneric pills…

  12. DAN says:

    zovirax acyclovir

    Buydrugs without prescription…

  13. JAMIE says:

    Zyrtec

    Buygeneric drugs…

  14. RANDY says:

    Vitamin B

    Buygeneric drugs…

  15. WARREN says:

    Rogaine

    Buydrugs without prescription…

  16. NORMAN says:

    Rocaltrol

    Buygeneric drugs…

  17. ANDY says:

    Pulmicort

    Buywithout prescription…

  18. WARREN says:

    Risperdal

    Buydrugs without prescription…

  19. JOSE says:

    Purim@Purim.Purim” rel=”nofollow”>..

    Buygeneric pills…

  20. CORY says:

    Rogaine@Rogaine.Rogaine” rel=”nofollow”>..

    Buynow it…

  21. BRENT says:

    Buygeneric pills…

  22. KEVIN says:

    .

    Buyit now…

  23. HOWARD says:

    can@you.take.aleve.and.darvocet.together” rel=”nofollow”>..

    Buygeneric drugs…

  24. DARREN says:

    how@to.get.quinine” rel=”nofollow”>.

    Buywithout prescription…

  25. DARRYL says:

    losee@weight.on.coumadin” rel=”nofollow”>..

    Buygeneric meds…

  26. CODY says:

    prevacid@childrens.chewable” rel=”nofollow”>.

    Buygeneric drugs…

  27. RAMON says:

    lidocaine@generic.name” rel=”nofollow”>…

    Buygeneric pills…

  28. JOSE says:

    abilify@urges.results” rel=”nofollow”>..

    Buygeneric drugs…

  29. KARL says:

    Buygeneric drugs…

  30. CLIFTON says:

    fml@internet.lingo” rel=”nofollow”>..

    Buyit now…

  31. ANDY says:

    folic@acid.hpv” rel=”nofollow”>..

    Buyno prescription…

  32. SCOTT says:

    oral@gentamicin.supllements.and.horses” rel=”nofollow”>…

    Buygeneric drugs…

  33. BRETT says:

    somnolence@and.geodon” rel=”nofollow”>..

    Buywithout prescription…

Leave a Comment