Computers, Programming
Non-breaking space and some other symbols
Quite often, by posting text on the site, the author is faced with certain problems. This is the overall design of the text, its form - paragraphs, font, color, formatting and special signs, such as non-breaking space, number, trademark and many others.
So, how to insert special characters in the html document. A non-breaking gap can be put in two ways - using a mnemonic notation or using a special code. The same applies to other special signs, such as ampersand, quotes, paragraph, number, signs more and less and many others.
Mnemonic designations, as well as a numeric code, must begin with an ampersand (&) character and end with a semicolon. For example: non-breaking space - & nbsp ;.
What is better to use, inserting an indissoluble blank in the document? There is no universal solution. On the one hand, not all special characters are code-named, on the other - not always the browsers display the mnemonic code correctly.
It should also be noted that the digital code can not always be displayed correctly in the document. The reason is that it only determines the place of the character in the symbol table. Do not forget that in the table there may be new signs, the numbering can change. Therefore, it is preferable to use mnemonic notation, inserting special symbols into the document.
But in which cases is it preferable to use an indissoluble gap? The HTML document does not always display the same - the width of the line may vary depending on the browser and computer screen. Therefore, an indissoluble space should be placed between the initials and surnames used in the text, the number and the next digit, before the dash, and generally in cases where a line break is undesirable. The use of an indissoluble gap is also governed by typographical rules.
If the characters are incorrectly displayed, you should check the spelling. Quite often such problems arise if the markup was written in a hurry and errors and misprints were made in the notation.
Remember, mindfulness is the key to the successful completion of your text, especially in the html format.
Similar articles
Trending Now