Type multiple space codes in HTML

Source: Internet
Author: User
Tags html page key

De jure space character type

A space in the HTML page, we can type the "space" key to achieve.

Two or more HTML space characters

If you want to implement more than one space gap in HTML, if you type more than one space key, you will end up showing only a space gap. This time we need the real white space character code.

HTML space character code:

 

For HTML space character code, by "&+n+b+s+p+;" Compose, remember the last semicolon don't forget.

If you want to control precisely, you can use the object's margin, padding and other styles, you can also insert a different element to occupy, such as:
If you want to use a space, then use a few more, until close to your request, you can also control the size of the space, word spacing, etc. to achieve fine-tuning, but this method appears very stupid.
The above two lines of code, the font size is different, the width of the account is also different. Try it.



"You may also be interested":

PHP clears the function of HTML code, space, carriage return line feed




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.