Saturday, February 12, 2011

Blogger: How To Make/Break New Line In HTML 怎么在HTML换行/分行

欲看中文翻译,请点更多往下看中文解释。
Blogger贴士HTML的换行/分行符(代码)

Blogger(Blogspot)Tips:
How to break new line in HTML?

The HTML BR element

Uses of <br> tag
BR - Line break. Start a new line. 

It's easy!
Just Paste This Code
<br>
Maybe you are so confused about what I write here.
Nevermind,
let's look at the example.

An example of use of the BR element

Explaination:
The BR element has no ending tag. Here are two lines as they may be written without using a <br> tag.
 
This is line 1.
This is line 2. 


This is what you would see:

This is line 1. This is line 2.


Here are the same two lines as they are written with a <br> tag.

This is line 1. <br>
This is line 2.

This is what you would see:

This is line 1.
This is line 2.


If the above method does not work
let's look at method 2.
You can use &lt;br&gt; code.

An example of use of the &lt;br&gt; element

The &lt;br&gt; element has no ending tag. Here are two lines as they may be written without using a &lt;br&gt; tag. 

This is line 1.
This is line 2. 


This is what you would see:
 
This is line 1. This is line 2. 


Here are the same two lines as they are written with a &lt;br&gt; tag. 

This is line 1. &lt;br&gt;
This is line 2. 

This is what you would see: 
 
This is line 1.
This is line 2. 



If still confused
welcome to ask me^^
By Kings

==============================================================

Chinese Translation 中文翻译:
要换行/分行有两个方法:
只限于HTML
方法1:代码 <br>
方法2:以上代码不可以用, 就用 &lt;br&gt;
  
可能你觉得很模糊
我就举个例子,使用方法1


这儿有2个句子,这是没有复制<br>代码前的效果


君子一言,驷马难追!
关注我的朋友,我必定会关注回滴^^


你会看到这样的效果:
 
君子一言,驷马难追!关注我的朋友,我必定会关注回滴^^


好了,现在我们复制 <br> 代码 
 

君子一言,驷马难追! &lt;br&gt;
关注我的朋友,我必定会关注回滴^^


你会看到这样的效果:
 
君子一言,驷马难追!
关注我的朋友,我必定会关注回滴^^  



如果方法1无法使用
请用方法2,只要更改代码就行了
方法是一样的^^

不明白的朋友欢迎问我o^^ 
By Kings 

No comments:

Post a Comment

Loading