htmlThe line break code is "
". If you want to break the line on which line, just add the "
" code at the end of that line of code to achieve the line break operation. The HTML "
" tag is used to insert a simple line break to achieve line breaks.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
HTML Line Break
If you want to break a line in HTML, you can use the "
" tag. If you want to break a line on that line, just click on that line of code. Add "
" code at the end to achieve line break operation.
tag inserts a simple newline character.
tag is an empty tag, meaning it has no closing tag.
Example:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p> 使用 br 元素<br>在文本中<br>换行。 </p> </body> </html>
Effect:
Related tutorial recommendations:html tutorial, more For computer programming related knowledge, please visit: programming video! !
The above is the detailed content of How to write html line break code. For more information, please follow other related articles on the PHP Chinese website!