< br>有没有ASCII字符? [英] Is there any ASCII character for <br>?

查看:292
本文介绍了< br>有没有ASCII字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常我们都在网页中使用HTML编号或名称。恩。 &安培;是& & amp; 和$,@,©,...,等等。
像我想知道的那样,有任何HTML编号或名称用于< br> ?。



任何答案都会有帮助吗?

干杯!

解决方案

& 是一个字符; & amp; 是该字符的HTML字符实体。 $ b

< br> ; 是一个元素。元素不会获得字符实体。



与此处的许多答案相反, \\\
&#13; 不等于< br> 。前者表示文本文档中的换行符。后者旨在表示HTML文档中的换行符,并且通过其默认CSS来执行此操作:

  br:之前{content:\A;空行:pre-line} 

文本换行符可以呈现为HTML换行符,或者可以视为空白,具体取决于CSS white-space 属性。


Typically we all using HTML numbers or names in web pages. ex. & is &#38; or &amp; and $, @, ©, ®, ... etc. Like the way I want to know is there any HTML number or name for <br>?.

Any answer would be helpful?

Cheers!

解决方案

& is a character; &amp; is a HTML character entity for that character.

<br> is an element. Elements don't get character entities.

In contrast to many answers here, \n or &#13; are not equivalent to <br>. The former denotes a line break in text documents. The latter is intended to denote a line break in HTML documents, and is doing that by virtue of its default CSS:

br:before { content: "\A"; white-space: pre-line }

A textual line break can be rendered as a HTML line break, or can be treated as whitespace, depending on the CSS white-space property.

这篇关于&lt; br&gt;有没有ASCII字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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