Special characters line feed. Using whitespace to format HTML code, non-breaking space, and other special characters (mnemonics)

Hello, dear readers of the blog site! Those who have at least superficially managed to get acquainted with, probably already took note, albeit in general terms. This means that they have an idea of \u200b\u200bwhat kind of HTML symbols are used in the document code.

In today's article we will try to figure out what a space is in HTML, in which cases it is possible to use whitespace characters when formatting the code itself for easy reading. We will find out when it is necessary to use a non-breaking space, and also get acquainted with other special characters (or, as they are also called, mnemonics).

In fact, I would advise you not to ignore the topic of using various special characters, since this is an important component that allows you to complete the study of the hypertext markup language. In general, the information provided in this publication will definitely not be superfluous. Well, now to the point.

Spaces and whitespace characters in HTML

An important point needs to be made first. The computer keyboard has special keysthat allow you to implement text splitting (more on this below). However, only a wide spacebar provides a section between words not only in the editor, but also in the browser window. There are nuances with line breaks and margins.

As you know, the display of certain elements in a web browser is determined by tags. For text formatting, a well-known one is used, which is block. That is, its content spans across the entire available width.

To wrap lines within paragraph P, you need to use a single BR tag with which you can do this. Let's say we need to insert into the text some lines from a poem that we write in text editor:

Despite the fact that the lines of the verse are located correctly and the hyphenation is carried out in the right places, everything will look different in the browser:


To achieve the same display in a web browser window, you need to write BR at each line break:

Now we have reached the completion of the task, and in the browser the verse lines will be displayed absolutely correctly:

Thus, the required line breaks are completed. Here it is also necessary to note such a feature that multiple spaces, following one after another, are displayed by the web browser as one. You can be convinced of this if in the same editor you try to put not one, but several spaces between two words and, by clicking on the "Save" button, look at the result in the browser.

Space, tab and line break

Basically, with these whitespace characters we get acquainted immediately, as we start working with the text in the editor and format it in the desired form... To implement such a task, there are special keys, each of which corresponds to its own space character:

  • Space is the widest key on a computer keyboard (no label);
  • Tabulation - a key on the left with the inscription "Tab" and two arrows pointing in different directions;
  • Line break - "Enter" key.

However, as I said above, the final desired result not only in a text editor, but also in a browser, we get only when we use the first key. All three keys (including tabulation and line break are useful when formatting HTML code. For example, this is how a piece of code looks in NotePad ++ (there is a good deal of information about this editor) when displaying all whitespace characters:


We get code that is easy to read and understand thanks to the spaces. The orange arrows mark the indentation created with the Tab key, and the CR and LF characters mark line breaks with the Enter kavisha.

Containers nested within one another are viewed, opening and closing tags are well distinguished. In this form given code you can safely edit. Now compare it with the same code, which does not have such text splitting:

In the same way, using whitespace characters, you can write CSS rules that will visually look understandable and digestible:


After you bring all the styles to a common denominator and completely finish editing the style file, you can expose by removing all spaces from the code. This is necessary for promotion, which is very important when promoting a resource.

Special characters (or mnemonics) in HTML code

Now we will analyze in what cases it is necessary to use special characters, which I mentioned at the beginning of the article. HTML special characters, sometimes called mnemonics, were introduced to solve a long-standing problem with encodings in hypertext markup language.

When you type on the keyboard, the characters of the language you are using are encoded. In the web browser, the typed text will be displayed in the fonts of your choice as a result of the reverse decoding operation.

The fact is that there are many such encodings, now we have no goal to parse them in detail. It's just that each of them may lack certain symbols, which, however, need to be displayed. For example, you have an urge to write single quotes or an accent mark, and these icons are trite to be absent from the set.

In order to eliminate this problem, a system of special characters was introduced, which includes a huge number of various mnemonics. They all begin with an ampersand "&" and usually end with a semicolon ";". At first, each special character had its own digital code. For example, for a non-breaking space, which we will consider in more detail below, the following record will be valid:

But after a while, the most common symbols were assigned alphabetic counterparts (mnemonics) to make them easier to remember. Let's say for the same non-breaking space, it looks like this:

As a result, the browser displays the corresponding symbol. The list of mnemonics is very voluminous, the most commonly used HTML special characters you can find from the following table below:

symbol the code mnemonics description
non-breaking space
narrow space (en-letter-wide)
wide space (em-wide in the letter m)
- narrow dash (en-dash)
- wide dash (em -dash)
­ - ­ soft transfer
a ́ stress, placed after the "stressed" letter
© © copyright
® ® ® registered trade mark
trademark mark
º º º spear of mars
ª ª ª mirror of venus
ppm
π π π pi (use Times New Roman)
¦ ¦ ¦ vertical dotted line
§ § § paragraph
° ° ° degree
µ µ µ micro sign
paragraph mark
ellipsis
overline
´ ´ ´ accent mark
number sign
🔍 🔍 Magnifier (tilted left)
🔎 🔎 Magnifier (tilted to the right)
signs of arithmetic and mathematical operations
× × × multiply
÷ ÷ ÷ to split
< < less
> > > more
± ± ± plus / minus
¹ ¹ ¹ degree 1
² ² ² degree 2
³ ³ ³ degree 3
¬ ¬ ¬ negation
¼ ¼ ¼ one quarter
½ ½ ½ a half
¾ ¾ ¾ three quarters
fractional bar
minus
less or equal
more or equal
approximately (almost) equal
not equal
identically
square root (radical)
infinity
summation sign
work mark
partial differential
integral
for everyone (visible only if in bold)
exists
empty set
Ø Ø Ø diameter
belongs
not belong
contains
is a subset
is a superset
is not a subset of
is a subset of or equal to
is a superset or equal to
plus in a circle
multiplication sign in a circle
perpendicular
angle
logical AND
logical OR
crossing
union
currency signs
Euro
¢ ¢ ¢ Cent
£ £ £ Lb
¤ ¤t; ¤ Currency sign
¥ ¥ ¥ Yen and yuan sign
ƒ ƒ ƒ Florin sign
markers
. simple marker
a circle
· · · midpoint
cross
double cross
peaks
clubs
hearts
diamonds
rhombus
pencil
pencil
pencil
arm
quotes
" " " double quote
& & & ampersand
« « « left typographic quotation mark (herringbone quotation mark)
» » » right typographic quotation mark (herringbone quotation mark)
single angle quotation mark opening
closing single angle quotation mark
stroke (minutes, feet)
double prime (seconds, inches)
upper left single quotation mark
upper right single quotation mark
bottom right single quote
quotation mark-foot left
quotation mark-foot upper right
quotation mark-foot right bottom
single English opening quotation mark
single English closing quotation mark
double english quotation mark opening
english double quotation mark closing
arrows
left arrow
up arrow
right arrow
arrow to down
left and right arrow
up and down arrow
carriage return
double left arrow
double up arrow
double right arrow
double down arrow
double arrow left and right
double up and down arrow
triangular up arrow
triangular down arrow
triangular right arrow
triangular left arrow
stars, snowflakes
Snowman
Snowflake
Snowflake trapped by shamrocks
Bold pointed snowflake
Shaded star
Unpainted star
Unfilled star in filled circle
A filled star with an open circle inside
Spinning star
Traced white star
Middle open circle
Medium filled circle
Sextile (like a snowflake)
Eight-pointed rotating star
Spherical star
Bold eight-pointed teardrop-shaped propeller star
Sixteen-pointed asterisk
Twelve-pointed filled star
Bold eight-pointed rectilinear filled star
Six-pointed filled star
Eight-pointed rectilinear filled star
Eight-pointed filled star
Eight-pointed star
An asterisk with an open center
Bold star
Pointed four-pointed unpainted star
Pointed four-pointed shaded star
Star in a circle
Snowflake in a circle
clock, time
Clock
Clock
Hourglass
Hourglass

Use cases for some special characters, including non-breaking space and soft hyphenation

If you have already studied the table a little, then you received confirmation of the words I said above that a digital code () or its alphabetic analogue (symbolic mnemonics) is used to display all special characters, where letters () are written instead of a combination of a lattice and numbers.

Now let's see when you need to apply these codes. Let's say in an article you need to specify some HTML tag for informational purposes, for example,

... If you type angle brackets from the keyboard (and there is such a possibility), then the browser will perceive such a construction as an opening tag, and not as a simple piece of text.

Therefore, from the same table of HTML special characters, we take the corresponding codes and the entire record will look like this:

In addition, to display in the browser not the ampersand sign itself, but its designation in form

, you need to add its code from the table:

footer

Then the browser will display exactly the record of mnemonics that need to be used to display the FOOTER tag. A bit confusing, but on this page you can practice this aspectby entering mnemonics for the corresponding symbols in the "HTML" field and using the "Run" button, and in the "Result" area getting the result of their display in the browser:


Please note that I have provided text wrapping using the already mentioned BR tag so that the characters themselves are displayed not in one line, but in a column for convenience.

Go ahead. Sometimes in the text there are combinations that are undesirable to separate along different lines. Let's say, "1000 rubles." would be logical or leave on top line, or if there is not enough space, move the entire construction to the line below.

This is especially true if users use devices with different screen widths, including mobile ones. Indeed, in this case, the web browser formats the text, adjusting to the new conditions. And if the text looks correct at standard monitor sizes, then when they change everything can change.

For these cases, inseparable hTML space which I already mentioned. Let me remind you that in this case the space code is as follows:

And it needs to be inserted between the two sets of characters that you want to connect:

RUB 1000

Now the browser will never separate them, even if the text needs to be formatted to display it correctly.

It also happens that a very long word does not fit into the free space and you need to transfer part of it. How to, if necessary, predefine the transfer to new line in this case? For this there is soft carry special character - to be placed in the place where the word needs to be broken:

Long long long long long long word

If a situation arises when a word needs to be transferred, then a gap is formed at the location of the soft transfer mnemonic, where a hyphen will appear, and the rest of this word will be on the next line below.

However, again, it will be useful to see this whole thing, including examples of indissoluble and soft transfer, to personally track in practice:


In the window of this editor, you can change the size of the "Result" viewport by grabbing the edge of this area with the left mouse button and, without releasing it, drag it to the left to decrease the width. Then a real situation arises when the browser begins to reformat the content to display it correctly.

And the transfer is carried out, which was provided in the examples I described. However, you yourself can move the viewport, expanding-narrowing it, and visually verify this.

Lesson 5.

In this tutorial, we:
1. Let's learn how to make the html code more convenient and easy to read for us.
2. Let us examine how to correctly carry out the wrapping of a text line.

We make the html code handy.

Now our code is clear and easy to read, since it contains little text and almost no tags. When we create a more complex page, there will be many tags, so it will be difficult to find the right one.

To avoid the mess of tags, you need to initially arrange the tags and lines so that they are visually perceived easier. When the browser reads information from the html page, it doesn't care how many spaces or how many empty lines there are in the code.

I've changed the text in the page code relative to the one we created, but it doesn't matter. The left and right pictures show the same code. Both options will be displayed by the browser on the monitor screen in exactly the same way. Agree, working with the code shown on the right will be much easier than with the one on the left.

The code we are reviewing is very simple, but even now there is a noticeable difference in visual perception. There are no specific rules for "putting things in order", each master decides for himself how it is more convenient for him to work.

Html line break. The & ltbr & gt tag.

Pay attention to the picture. In the first version, the text is written in one line, in the second version in two lines.


The browser will display both options the same way. The text will be written on one line:


Why is this so, you ask? Indeed, in one of the codes, part of the text has been transferred to another line. It would be logical if in the browser some of the text would also be transferred to another line, but html has its own logic in this regard. If we make a line break in the html code, then for the browser it is equivalent to one space (like a normal space between words in the text). If we move part of the text not one line down, but 2 or 3 (any number), then the browser will still count this distance as one ordinary space between words and when displayed on the screen, the text will be written in one line.

& Ltbr & gt tag

When we got acquainted with tags in the third lesson, I mentioned that there are tags that do not require closing. Tag & ltbr & gt one of them, it serves for line breaks.
Let's apply it in code:

We have inserted a tag & ltbr & gt into our html code and now when the file is run through the browser, part of the text will be transferred to the next line.
* Do not forget to save changes in Notepad (Ctrl + S) and refresh the page in the browser (F5).

Hello dear readers of the blog site. A little earlier, we already managed to talk about that, we also learned about the design in it. Today we have next in turn the concept of a space in HTML, and also the associated formatting of the code when writing it (for the convenience of its subsequent reading and perception).

Well, due to the fact that we will touch on the topic of non-breaking space and soft hyphenation, we will have to focus our attention on the so-called special characters or mnemonics used in the Html language, which will allow you to add web document a bunch of additional characters, like the one already mentioned above. But first things first.

Spaces and whitespace characters in Html language

Before moving on to the issue of text formatting using specially designed tags (paragraph, headings, etc.), I want to dwell on the point how spaces, line breaks (Enter) and tabs are interpreted in the CTML language, how the breakdown is done text in the browser window when it is resized.

True, for this kind of visual formatting (which will not be visible on the web page), most often it is not the spaces themselves that are used, but the tabulation and line break characters. There is such a rule - when you start writing nested Html tagthen indent with tabs (the Tab key on the keyboard), and when you close this tag, remove the indentation (the Shift + Tab key combination on the keyboard).

This should be done so that the opening and closing tags would be on the same vertical level (at the same number of tabs from the right edge of the page of your Html editor, for example, Notepad ++, which I wrote about). In addition, I advise you to make several line breaks immediately after writing the opening element and immediately write the closing one at the same level (number of tabs), so that you don't forget to do it later.

Those. the opening and closing elements should be at the same level vertically, and the inner tags should be shifted by one tab stop and the closing and opening elements should be positioned again at the same level.

For simple web documents this may seem overkill, but when creating more or less complex documents, they the code will become much more descriptive and readable due to the abundance of spaces, and it will be much easier to spot errors due to the symmetrical arrangement of tags.

Special characters or mnemonics in Html code

So, now let's talk about the so-called special characters, the usability of which I announced at the beginning of this article. Special characters are also sometimes called mnemonics or substitutions. They are designed to solve a problem that has arisen for a long time in the hypertext markup language, related to the encodings used.

When you type text from the keyboard, the characters of your language are encoded according to a predetermined algorithm, and then they are displayed on the site using the fonts you use (where to find and how to install for the site) by decoding.

There are a lot of encodings, but for the Html language, the extended version of encodings was adopted by default.

In this encoding of the text, it was possible to record only 256 characters - 128 from ASCII and 128 more for the letters of the Russian language. As a result, there was a problem with the use of characters on sites that are not in ASCII and are not Russian letters included in the Windows 1251 (CP1251) encoding. Well, you took it into your head to use a tilde or apostrophe, and such possibilities are originally in the used html language coding is not included.

It was for such cases that substitutions were invented, or, in other words, mnemonics. Initially special characters were digital, but then for the most common of them their letter counterparts were added for ease of memorization.

In general terms, a mnemonic is a character that begins with an ampersand "&" and ends with a semicolon ";". It is on these grounds that the browser, when parsing the Html code, extracts special characters from it. The ampersand in the numeric substitution code must be immediately followed by a pound sign "#", sometimes referred to as a hash. And only then follows the digital code the desired character in unicode encoding.

More than 60,000 characters can be written in Unicode - the main thing is that the mnemonic symbol you need is supported by the font used on your site. There are fonts with support for almost all Unicode characters, and there are options with only a certain set of characters.

The complete list of special characters will be huge, but most commonly used mnemonics you can borrow, for example, from this table:

SymbolHtml codeDecimal
the code
Description
non-breaking space
narrow space (en-letter-wide)
wide space (em-wide in the letter m)
- narrow dash (en-dash)
- wide dash (em -dash)
­ - ­ soft transfer
a ́ stress, placed after the "stressed" letter
© © copyright
® ® ® registered trade mark
trademark mark
º º º spear of mars
ª ª ª mirror of venus
ppm
π π π pi (use Times New Roman)
¦ ¦ ¦ vertical dotted line
§ § § paragraph
° ° ° degree
µ µ µ micro sign
paragraph mark
ellipsis
overline
´ ´ ´ accent mark
number sign
🔍 🔍 Magnifier (tilted left)
🔎 🔎 Magnifier (tilted to the right)
signs of arithmetic and mathematical operations
× × × multiply
÷ ÷ ÷ to split
< < less
> > > more
± ± ± plus / minus
¹ ¹ ¹ degree 1
² ² ² degree 2
³ ³ ³ degree 3
¬ ¬ ¬ negation
¼ ¼ ¼ one quarter
½ ½ ½ a half
¾ ¾ ¾ three quarters
fractional bar
minus
less or equal
more or equal
approximately (almost) equal
not equal
identically
square root (radical)
infinity
summation sign
work mark
partial differential
integral
for everyone (visible only if in bold)
exists
empty set
Ø Ø Ø diameter
belongs
not belong
contains
is a subset
is a superset
is not a subset of
is a subset of or equal to
is a superset or equal to
plus in a circle
multiplication sign in a circle
perpendicular
angle
logical AND
logical OR
crossing
union
currency signs
Ruble. The ruble sign must be used with a skip from the number. Unicode Standard 7.0. If you don't see the image, update your Unicode fonts.
Euro
¢ ¢ ¢ Cent
£ £ £ Lb
¤ ¤ ¤ Currency sign
¥ ¥ ¥ Yen and yuan sign
ƒ ƒ ƒ Florin sign
markers
. simple marker
a circle
· · · midpoint
cross
double cross
peaks
clubs
hearts
diamonds
rhombus
pencil
pencil
pencil
arm
quotes
" " " double quote
& & & ampersand
« « « left typographic quotation mark (herringbone quotation mark)
» » » right typographic quotation mark (herringbone quotation mark)
single opening angle quotation mark
closing single angle quotation mark
stroke (minutes, feet)
double prime (seconds, inches)
upper left single quotation mark
upper right single quotation mark
bottom right single quote
quotation mark-foot left
quotation mark-foot upper right
quotation mark-foot right bottom
single English opening quotation mark
single English closing quotation mark
double english quotation mark opening
english double quotation mark closing
arrows
left arrow
up arrow
right arrow
arrow to down
left and right arrow
up and down arrow
carriage return
double left arrow
double up arrow
double right arrow
double down arrow
double arrow left and right
double up and down arrow
triangular up arrow
triangular down arrow
triangular right arrow
triangular left arrow
stars, snowflakes
Snowman
Snowflake
Snowflake trapped by shamrocks
Bold pointed snowflake
Shaded star
Unpainted star
Unfilled star in filled circle
A filled star with an open circle inside
Spinning star
Traced white star
Middle open circle
Medium filled circle
Sextile (like a snowflake)
Eight-pointed rotating star
Spherical star
Bold eight-pointed teardrop-shaped propeller star
Sixteen-pointed asterisk
Twelve-pointed filled star
Bold eight-pointed rectilinear filled star
Six-pointed filled star
Eight-pointed rectilinear filled star
Eight-pointed filled star
Eight-pointed star
An asterisk with an open center
Bold star
Pointed four-pointed unpainted star
Pointed four-pointed shaded star
Star in a circle
Snowflake in a circle
clock, time
Clock
Clock
Hourglass
Hourglass

There is a rather interesting method of obtaining html code mnemonic for the sign you need. To do this, it will be enough to open the editor Microsoft Word, create a new document and select from top menu "Insert" - "Symbol" (I am using the 2003 version, so I do not know how to do the same operation in later versions).

In the window that opens, you need to select a font, for example, Times New Roman (or any other that will certainly be present on most computers of your site visitors - Courier or Arial, for example).

Add from the list that opens to your word document all the special characters you need and save this Word document as a web page (selected from the ".html" drop-down list when saving). Well, then you just have to open this web page in any Html editor (the same Notepad ++ will do) and you will see all the digital codes of the mnemonics you need:

The method is a bit complicated, but if you feel like using some rare special character on your website page, it will be easier than looking for tables like the one above on the Internet. You will need to paste the resulting special character code in the right place and instead of it on the web page the browser will display the character you need (for example, a non-breaking space).

Non-breaking space and soft hyphenation in examples

As I mentioned above and as you can see from the table of special characters given just above, some mnemonics in Html received, in addition to digital, a symbolic designation for easier memorization. Those. instead of the pound sign "#" (hash), words are used in character variants. For example, the same non-breaking space can be written either as (numeric mnemonic) or as (symbolic).

When writing articles, if you need to insert an ampersand (&) or an open angle bracket (<), то для этого обязательно нужно использовать спецсимволы. Дело в том, что эти знаки в Html означают начало тега и браузер будет рассматривать их именно с этой точки зрения и отображать в тексте не будет.

That is, if you are writing an article in which you will need to insert into the text, for example, display the tag< body> or you just need to insert a less than sign (<), то сделав это без использования подстановок на веб странице вы ничего не увидите, т.к. браузер, обнаружив «<» , поймет, что это Html тег, а не текст статьи.

Therefore, you will need to insert the following construction to solve a similar problem:

The same applies to the display of the code of the mnemonics themselves, because they begin with an ampersand. You will need to insert the code with the replacement of the ampersand sign by its substitution (special character) into the text:

This will need to be done to get on the page<, а не отображение левой угловой скобки (<), в которую преобразует браузер мнемонику <, обнаружив при разборе знак амперсанда. Хитро, но вы все поймете попробовав это на практике.

Also, you will most likely use a non-breaking space, which on a web page will look like a regular space, but the browser will not perceive it as a space character at all and will not carry out a transfer on it (for example, this will be appropriate for such phrases as 1400 GB, etc., which would not be desirable to be carried by hyphenation on different lines):

1400 GB.

Sometimes the opposite situation may arise, when there are very long words in the text and you want to make sure that, if necessary, the browser could break these words with hyphenation... For such purposes, a special symbol "soft transfer" is provided -

Long pre-length & shy word;

If there is a need to jump to another line, the browser will hyphen and send the rest of the word to the next line instead of the soft hyphen mnemonic. If there is enough space to place all this word on one line, the browser will not draw any line feed. It's as simple as that.

Good luck to you! See you soon on the blog site pages

you can watch more videos by going to
");">

You might be interested

MailTo - what is it and how to create a link in Html for sending an Email
Tags and attributes of H1-H6 headings, horizontal line Hr, line break Br and paragraph P according to the Html 4.01 standard
How to insert link and picture (photo) into HTML - IMG and A tags

Typewritten text consists of printed characters - graphic symbols.
Graphic symbols are symbols that have a visible display in the text.
All graphic symbols are collected in a set of a single universal Unicode system.
Insert a Unicode graphic character into an html document
is the main and only purpose for this table.

You can insert a symbol into an html document in one of the following ways:

  1. copy the symbol image from the browser window to your visual html editor window
  2. copy the html code of the character directly into the code of the html document
Let's take it that these are two different ways:
  1. embed visual into visual
  2. embed code in code.

The font for the symbol, its size and color in HTML can be set with a code, like:
SYMBOL_CODE
Where,
Arial - font,
10px - font size in pixels,
# ff0000 - font color code (red)

For example:
☎ - the font size of the symbol is 30px,
☎ - symbol font size 30px, color - red
☎ - the font size of the symbol is 20px,
☎ - the font size of the symbol is 10px.
Approx. Recommended fonts for inserting special characters are Arial, Verdana and Tahoma. These fonts display Unicode characters correctly and are themselves, in turn, correctly supported by web applications.

  1. "Symbol"
    (visible symbol display)
    From this column, you can copy the symbol image and paste it into the html text editor window. The character will be copied with a font size of 20px. After copying is complete, you may need to customize the font size directly for the copied character.
  2. "Name"
    (only for important or incomprehensible characters)
    Explanation of the purpose of the symbol, its scope, examples ...
  3. "Mnemonics"
    A mnemonic is a literal construction of the form ", which denotes a letter code of a character in HTML. It is inserted directly into the html code of an html document. Mnemonics are very popular among professional layout designers. They are perfectly remembered by humans and are supported by all html applications. Each mnemonic contains an alphabetic name (designation ) of its symbol and a service sign (&), which serves as a signal to read the code for the browser and is not displayed on the monitor screen.The name of each mnemonic is unique and easy to read, because it is derived from the English word characterizing the symbol.

    Mnemonics (Greek) - the art of remembering something. Mnemonics are used to facilitate the perception of hard-to-remember information when the storage object is brought into an associative state with something.

  4. "The code"
    Code is the numeric decimal code of the character in HTML, like &. Inserted directly into the html code of the html document. The numerical decimal code consists of a number indicating the ordinal number of a character in the Unicode system and several service characters (& and #), which serve as a signal to read the code for the browser and are not displayed on the monitor screen. The numeric decimal code is widespread and used due to its versatility and ease of perception.

Control Characters in HTML (XHTML)

HTML control characters (XHTML) are HTML-language service characters that are used in HTML-layout of a web page. These characters must be supported by any browser, since without them, the correct display of HTML text is impossible. Control characters are not displayed in the text and, when entered directly from the keyboard, are interpreted by the browser as punctuation marks that call for performing some action when the page is drawn on the screen.

It is allowed to use control symbols in ordinary texts, where they symbolize general human concepts and are interpreted by the browser as ordinary typographic characters. With this use of service symbols in HTML-texts, it is required to enter not the value of the symbol itself, but its HTML-code. For, I repeat, otherwise the browser will perceive the service symbol as a call to action and will not correctly display HTML text on the monitor screen.

Control symbols and their HTML code are known and understood by all browsers without exception, which cannot be said, alas, about the rest of the signs that may be displayed incorrectly in different browsers or, even worse, may not be displayed at all.

Syntax and punctuation

space of length N (normal space)
space of length M (long space)
- soft carry (unprintable character) - ­
hyphen –
- dash length N (regular dash) -
dash length M (em dash)
. dot .
, comma ,
ellipsis …
: colon :
; semicolon ;
! exclamation mark !
ǃ
? question mark ?
@ "dog" @
* "star" *
# "lattice" #
single top left quotation mark ‘
single upper right quotation mark ’
single bottom right quotation mark ‚
double upper left quotation mark “
double upper right quotation mark ”
double bottom right quote & bdquo „
« double left angle quotation mark (rus) « «
» double right angle quotation mark (rus) » »
́ accent mark, example: Vasya ́
" apostrophe, example: you "I "
´ acute, example: Vas'ya ´ ´
paragraph (unprintable mark)
§ paragraph § §
ˆ accent (inverted bird) ˆ ˆ
ˆ
˜ small tilde ˜ ˜
˜
¦ vertical dotted line ¦ ¦
( parenthesis left (
) right parenthesis )
left angle bracket
right angle bracket
angle bracket left, option
angle bracket right, option
[ square bracket left [
] square bracket to the right ]
/ slash - slash character /
\ backslash \
slash (division sign)
ǀ vertical bar ǀ
ǁ double vertical bar ǁ
overline, example: Vasya‾vasya
¯ macron, example: Vasya¯vasya ¯ ¯

Trademarks and currencies

+ a plus + +
minus -
= equally =
± plus or minus ± ±
× multiplication sign × ×
÷ division sign ÷ ÷
dot operator (mid-line) ·
asterisk operator (middle of line)
tilde operator
. list marker (middle of line) . •
¹ superscript "1" ¹ ¹
² superscript "2" ² ²
³ superscript "3" ³ ³
Superscript and Subscript in HTML (XHTML)
can be inserted using tags and , respectively:
NUMBER Superscript → NUMBER Superscript
NUMBER Subscript → NUMBER Subscript
½ fraction "one second" ½ ½
fraction "one third"
¼ fraction "one fourth" ¼ ¼
¾ fraction "three quarters" ¾ ¾
number sign
% percent %
ppm ‰
° degrees ° °
stroke (minutes, feet)
double prime (seconds, inches)
Example 1: 30 ° 25 ′ 12 ″
Example 2: 25 ′ 12
µ micro µ µ
π Pi π π
ƒ function sign
(not to be confused with "integral")
ƒ ƒ
ƒ
integral
crossed out zero, empty set
(not to be confused with "diameter")
diameter (not to be confused with the Latin "o" strikethrough)
ø latin "o" diagonally strikethrough ø ø
Ø latin capital "O" diagonally strikethrough Ø Ø
work mark
summation sign
radical
(square root or root of power x)
proportionately
infinity
angle
orthogonal (perpendicular)
consequently sign
approximately equal
almost equal
not equal
identically
less or equal
more or equal
logical AND
logical OR
plus sign in a circle
(direct amount)
multiplication in a circle
(cross product, arrow from the observer)
ʘ dot in a circle
(arrow at the observer)
ʘ

✵ ✵

Did you like the article? To share with friends: