In HTML, there is a newline or space in the middle of the text in the p tag, and a space will appear on the page. Why?Ask for explanation!The code is below:
In HTML, there is a newline or space in the middle of the text in the p tag, and a space will appear on the page. Why?Ask for explanation!The code is below:
The HTML language is defined in this way P Line breaks in labels should be labeled BR p The number of lines in a paragraph depends on the page.br/ The size of the browser window.If you resize the browser window, the number of lines in the paragraph will change. /p Multiple spaces in P will be reduced to one Code for space: Two spaces: Other analogies To keep the original, use the label pre (special symbols also need codes) pre This paragraph is in In source code Contains many rows But the browser Ignore them. /pre
The p tag means paragraph. You can use css to set paragraph spacing You can also use the text Enter br tag instead Or use the div tag
The middle section of your code can be replaced by p This paragraph is in In source code Contains many rows But the browser Ignore them. br This paragraph In source code Contains many rows But the browser Ignore them. br The number of lines in a paragraph depends on the number of lines The size of the browser window.If you resize the browser window, the number of lines in the paragraph will change. /p
ZOL Q&A>In HTML, there is a newline or space in the middle of the text in the p tag, and a space will appear on the page. Why?Ask for explanation!The code is below: