<code class="hljs xml"><span class="hljs-doctype"> <span class="hljs-tag">html <span class="hljs-attribute">lang=<span class="hljs-value">"zh-CN"> <span class="hljs-tag">head> <span class="hljs-tag">meta <span class="hljs-attribute">charset=<span class="hljs-value">"UTF-8"> <span class="hljs-tag">meta <span class="hljs-attribute">http-equiv=<span class="hljs-value">"X-UA-Compatible" <span class="hljs-attribute">content=<span class="hljs-value">"IE=Edge"> <span class="hljs-tag"><span class="hljs-title">head> .... <span class="hljs-tag"><span class="hljs-title">html> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code>登录后复制
<code class="hljs xml"><span class="hljs-comment"><!-- Use link elements --> <span class="hljs-tag"><<span class="hljs-title">link <span class="hljs-attribute">rel=<span class="hljs-value">"stylesheet" <span class="hljs-attribute">href=<span class="hljs-value">"core.css"> <span class="hljs-comment"><!-- Avoid @imports --> <span class="hljs-tag"><<span class="hljs-title">style><span class="css"> <span class="hljs-at_rule">@<span class="hljs-keyword">import <span class="hljs-function">url(<span class="hljs-string">"more.css"); <span class="hljs-tag"></<span class="hljs-title">style> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code>
<code class="hljs xml"><span class="hljs-comment"><!-- External CSS --> <span class="hljs-tag"><<span class="hljs-title">link <span class="hljs-attribute">rel=<span class="hljs-value">"stylesheet" <span class="hljs-attribute">href=<span class="hljs-value">"code-guide.css"> <span class="hljs-comment"><!-- In-document CSS --> <span class="hljs-tag"><<span class="hljs-title">style><span class="css"> <span class="hljs-comment">/* ... */ <span class="hljs-tag"></<span class="hljs-title">style> <span class="hljs-comment"><!-- JavaScript --> <span class="hljs-tag"><<span class="hljs-title">script <span class="hljs-attribute">src=<span class="hljs-value">"code-guide.js"><span class="undefined"><span class="hljs-tag"></<span class="hljs-title">script> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></code>登录后复制
eg:
为书写规范,最好每一个需要注释都需要开头和结尾,减少后续麻烦和错误。不要换行。CSS、JS注释亦然。
为书写规范,最好每一个需要注释都需要开头和结尾,减少后续麻烦和错误。不要换行。CSS、JS注释亦然。