For the example in the previous section, we want the poem to be more aesthetically pleasing, such as showing the following effect:
How can you put a folding line behind every verse? Then you can use the <br /> label, add the <br/>,<br where you need to add a carriage return to the/> tag function is equivalent to a carriage return in a Word document.
The code for the previous section changes to:
Grammar:
xhtml1.0 notation:
<br />
html4.01 notation:
<br>
It is noted that the current version of the general use of xhtml1.0 (other tags are also), this version of the comparison specification.
Unlike the label we learned before, the label <br /> is an empty label, and no HTML content tag is an empty tag, and an empty tag is just a start tag, so the tag has <br /> , and .
In this case, do you have a question, want to fold the line is not good to say, like in Word file or Notepad, you want to break the line in front of the input is not OK? Unfortunately, in the HTML is to ignore the carriage return and space, you enter more return and the space is not displayed. As in the code below.
The above code in the browse shows that there is no carriage return effect. As shown in the following:
Summary: It is not useful to enter a carriage return or a space in the HTML code. If you want to enter a carriage return in HTML text, you must enter it <br /> .
Example:
<! DOCTYPE html>
Display text using the <br> label branch