Use <br> branch label to display text

For example in the previous section, we want to show more beautiful poem that some, such as the following results show:

How you can get behind each one adding a poem wrap it? It can be used in <br />labels, and added <br /> where needed carriage return line feed, <br /> tag acts as a word document of carriage.

The code section to read:

grammar:

xhtml1.0 writing:

<br />

html4.01 writing:

<br>

Attention is now generally used xhtml1.0 version of the wording (other label is), this version fairly standard.

      And before we learned is not the same label, <br />the label is an empty tag, no HTML tags is empty of content labels, blank labels just need to write a start tag, such labels <br />, <hr />and <img />.

      In talking about this, do you have a question, want to break the line is not good brains, as in the word document file or Notepad, you want to break a line in front of the press enter not on line yet? Unfortunately, it is ignored in html carriage returns and spaces you enter more carriage returns and spaces also did not show up. As follows edge code.

 The above code is not displayed in the browser Enter effect. As shown below:

 Summary: Enter enter, space in html code is not acting. In html text you want to enter a carriage return line feed, you must enter <br />.

 

Guess you like

Origin www.cnblogs.com/iBoundary/p/11414159.html