HTML 的缩进标准是什么(Tab/两个空格/等)? [英] What is the Indentation standard for HTML (Tab / Two spaces / etc)?

查看:62
本文介绍了HTML 的缩进标准是什么(Tab/两个空格/等)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多具有预先生成的符合 HTML5 标准的样板文件的网站使用两个空格.Visual Studio 项目,例如 ASP.NET MVC 3,默认使用选项卡.

Many websites, with pre-generated HTML5-compliant boilerplate files, use two spaces. Visual Studio projects, such as ASP.NET MVC 3, default to using a tab.

这会成为缩进 HTML 的标准方式吗?

Will one become the standard way of indenting HTML?

推荐答案

我认为没有 W3C 指定的标准.由于 HTML 无论如何都会去除多余的空白,因此您应该使用最适合您的方式.

I don't think there's a W3C specified standard. Since HTML strips out excess whitespace anyway, you should go with whatever you're most comfortable with.

这篇关于HTML 的缩进标准是什么(Tab/两个空格/等)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆