How to use HTML special characters
Special HTML characters are used to displayelements that are not on the regular keyboard. These can be different signs, for example, copyrights or paragraph designation. Special characters always begin with an element called "ampersand" and end with a semicolon. In this article, we'll look at a few basic groups of special HTML characters.
As mentioned above, the special characters html alwaysbegin with the sign "ampersand". Not everyone knows this element, but do not be scared. For sure, many know the "&" icon - that's what the ampersand looks like. You can apply it using the keyboard shortcut Shift + 7 (with the English layout). Perhaps you know this element under a different name. As the semicolon looks, I hope everyone knows. "" Is one example of writing special characters in HTML.
Common special characters
Under this category fall most oftenused symbols. One of them you already saw earlier - "", which means an indissoluble gap. You must have often met and here is a sign: "©", which will be designated copyright (or authorship). It can be observed at the very bottom of many sites, followed by the name of the author or company. This group also includes such interesting elements as fractional numbers. For example: ¼ - "frac14;" or ½ - "& frac12;" We all saw the dollar sign on the keyboard, and have you ever met the euro? In HTML, special characters allow authors to provide such an element to users, and all thanks to the entry "& euro;". This group includes signs such as degrees (°), plus-minus (±), trade mark (& trade;), function (& fnof;), multiplication (×), division (& divide;), etc., e.
Punctuation special characters
This group contains special characters thatemulate punctuation marks. For example, the dots are "& hellip;" or the long dash is "& mdash;". Let it not be surprising to you that many characters from the group under consideration can be typed on the keyboard. After all, then, in fact, the whole sense of using such elements is lost. Further in the article there will be a logical explanation for this.
Sometimes web developers need toadd very rare HTML special characters. Arrows - these are the elements used for the logical construction of navigation or just for decoration. This group consists of five different symbols. Namely: the arrow to the left - ",", the right - "," up - ",", down "& darr;", simultaneously to the left and to the right - "& harr;".
Of course, there are other special HTML characters. But there is no sense in describing each of them separately, as this has already been done by specialized directories. Let's return to the question of why special characters such as quotes (& lsquo;), dashes (& ndash;), non-breaking spaces (), etc. are needed. They are used to correctly display items by the browser. After all, the interpreter can misunderstand the author. For example, you want to place a description of the <table> tag on your site. If you put just such a record, the browser will think that the table starts here, and that this is not just text. To avoid misunderstandings, you must use special HTML characters. In this case, the record will be as follows: <(denotes less than) table> (denotes "more" sign). The other similar elements are used for the same reasons. For example, "" is used when you need to add extra spaces, as the browser, as a rule, ignores most of them.