Basic Coding Standard for HTML and CSS [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-09 04:00:35

问题


I was wondering if their is a Basic Coding Standard for HTML and CSS like PSR-01.

I tried googling and searching but didn't find any.


回答1:


Have a look at these:

  • Code Guide
  • GitHub StyleGuide
  • Google StyleGuide
  • CSS Tricks StyleGuide
  • SMACSS
  • BEM



回答2:


I would suggest looking at something like W3C standards.

They have code checkers on the site that you can run CSS and HTML through.




回答3:


You can also check SMACSS - https://smacss.com/ it's not official or something but it's very useful architecture for building your websites. There is also methodology called BEM - https://en.bem.info/method/



来源:https://stackoverflow.com/questions/31401931/basic-coding-standard-for-html-and-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!