In our daily web project program development, html code is essential. The display pages in the previous paragraph are all html files. In HTML, many novices don’t care much about spaces, but spaces are in HTML It plays a great role in writing code. When writing code, spaces typed by the space bar, Tab key and Enter key will be automatically ignored by HTML. Therefore, there are also some tools in HTML that allow you to define spaces by yourself. So let’s do it today. An introduction to whitespace in HTML.
Space character entities in html:
1. Summary and sharing of space character entities in html
#Browsers always truncate spaces in HTML pages. If you write 10 spaces in your text, the browser will remove 9 of them before displaying the page. To increase the number of spaces on the page, you need to use the character entity.
2. Introducing the character entities of spaces in HTML
This article only introduces the character entities of spaces. HTML provides 6 types of space entities. ,The advantage of using entity names instead of numbers is that ,the names are easier to remember. The downside is that browsers may not support all entity names (support for entity numbers is good).
3. Brief analysis of html space code_HTML/Xhtml_Web page production
How much do you know about html, if you are learning html now As for the basic code, I believe it will involve how to write the html space code. We use spaces when we usually edit programs, so the editor of Script House will tell you what the html space code is and some basic methods of using html spaces. Space symbols in
html: Space symbols in
## : This is the space we use most, that is, press Spaces generated by the space key. In HTML, if you use the space bar to generate this space, the spaces will not accumulate (only count as 1). It can only be accumulated using html entity representation. The width occupied by this space is significantly and strongly affected by the font. It will cause some small damage in the inline-block layout, but it is an indispensable element in the aligned layout.2. Detailed introduction on how to insert spaces in HTML
Normally, we use Use the space bar to type multiple spaces. When writing code, spaces typed by the space bar, Tab key and Enter key will be automatically ignored by HTML (Hypertext Markup Language). HTML treats such keys as whitespace characters and displays them as a single whitespace interval. Although CSS provides various styles of spacing and indentation, there are also tools in HTML that allow you to define spacing yourself.3. A brief discussion on spaces and blank lines in HTML code
The case in the article proves: Continuous spaces in HTML code are displayed will be displayed as a space, and the remaining extra spaces will be removed or ignored. The paragraph text is actually part of the HTML code, but it is inside the p tag, while the space in Example 2 is between the two span tags.htmlspace related questions and answers:
##1.html5 - HTML document
tag, how to remove a paragraph Spaces within words.
2.html5 - How to remove the default space in front of li?
【Recommended radio related articles】:
1.css medium background (attribute , color, picture) settings summary sharing
2.7 summary of div vertical centering methods
3. CSS centering: The most comprehensive collection of CSS centering methods
The above is the detailed content of Summary of space symbols and space character entities in html. For more information, please follow other related articles on the PHP Chinese website!