Чаще всего специальные символы в html используют для вставки в текст таких символов, как © (копирайт), ® (зарегистрированный товарный знак), § (параграф), математических знаков, знаков валют и стрелок. Но спецсимволы html могут быть так же полезны:
При форматировании текста. Множественные пробелы в языке html игнорируются. То есть если вы введете несколько пробелов подряд, они все равно отобразятся как один. Чтобы в браузере отобразились несколько пробелов подряд, вместо обычного знака пробела можно использовать код неразрывного пробела ( или ).
Для отображения на странице кода html, php и так далее. Для того, чтобы html тэги были видны пользователям необходимо заменить в них знаки < (меньше) и > (больше) на соответствующие им спецсимволы html.
Для безопасности.Если у пользователей есть возможность добавлять на сайт информацию (писать комментарии или посты на форуме), то желательно заранее лишить их возможности вставить какой-либо код на сайт и заменить в обработчике такие символы, как больше (>), меньше (<), амперсанд (&) и т.д. на соответствующие им спецсимволы html.
Как использовать спецсимволы html?
У каждого специального символа html есть индивидуальный номер и название. Для использования спецсимвола необходимо вставить в текст его код, который может выглядеть так: &#номер_спецсимвола; или так: &название_спецсимвола;. Если Вы используете в коде название, то имейте ввиду, что спецсимволы HTML чувтсвительны к регистру. Например, Œ и œ - это два разных спецсимвола.
Ниже приведены таблицы с кодами наиболее распространенных спецсимволов:
Таблица спецсимволов html
Описание |
Спецсимвол |
Название |
Числовой код |
Неразрывный пробел |
|
|
  |
Копирайт |
© |
© |
© |
Зарегистрированный товарный знак |
® |
® |
® |
Параграф |
§ |
§ |
§ |
Меньше |
< |
< |
< |
Больше |
> |
> |
> |
Амперсант |
& |
& |
& |
Длинное тире |
– |
– |
– |
Стрелки
Описание |
Спецсимвол |
Название |
Числовой код |
Влево |
← |
← |
← |
Вверх |
↑ |
↑ |
↑ |
Вправо |
→ |
→ |
→ |
Вниз |
↓ |
↓ |
↓ |
Вправо-влево |
↔ |
↔ |
↔ |
Стрелка вниз и влево |
↵ |
↵ |
↵ |
Двойная стрелка влево |
⇐ |
⇐; |
⇐ |
Двойная стрелка вверх |
⇑ |
⇑ |
⇑ |
Двойная стрелка вправо |
⇒ |
⇒ |
– |
Двойная стрелка вниз |
⇓ |
⇓; |
⇓ |
Знаки валют
Описание |
Спецсимвол |
Название |
Числовой код |
Евро |
€ |
€ |
€ |
Цент |
¢ |
¢ |
¢ |
Йена |
¥ |
¥ |
¥ |
Фунт стерлингов |
£ |
£ |
£ |
Другие работы по теме:
Сочинения на свободную тему - Зачем нужно учиться 1
Учиться необходимо! Каждому человеку нужны знания в повседневной жизни. Надо уметь читать, писать, считать. Современного человека окружает много техники не только на производстве, но и в быту. Нужны знания, чтобы разобраться во всем многообразии окружающего мира.
Для чего нужно изучать сочинения устного народного творчества
На уроках украинской литературы мы изучаем сочинения устного народного творчества. Сказки и легенды, поговорки и пословицы, загадки и песни. Но нужны они современному школьнику? Думаю, нужны. Потому что фольклор отображает взгляды народа, его мораль и этику, показывает взаимоотношения с людьми и природой, знакомит с обычаями, традициями, обрядами народа.
Человек и деньги
Сочинение-рассуждение Для чего нужны человеку деньги? Вопрос это простой, но ответ на него сложный. Деньги во все времена играли большую роль в социальной жизни. Но люди относятся к ним по-разному. Для кого-то деньги - это счастье, а для кое-кого - средство существования.
Петровский-Штерн, Йоханан
Йоханан Петровски-Штерн (англ. Yohanan Petrovsky-Shtern; род. 1962, Киев) — историк, филолог, эссеист, переводчик. Профессор по еврейской истории Северо-западного университета (Иллинойс, США).
Отчет по созданию HTML страниц
МОСКОВСКИЙ ГОСУДАРСТВЕННЫЙ УНИВЕРСИТЕТ ЭКОНОМИКИ, СТАТИСТИКИ И ИНФОРМАТИКИ ОТЧЕТ «Создание документов в формате HTML» Выполнил студент группы ДЭ-203
Базові конструкції мови HTML
Тема. Мета . Вивчити основні компоненти мови HTML Базові конструкції мови HTML Гіпертекст - це текст, у який вбудовані спеціальні коди, що задають форматування тексту, наявність у ньому ілюстрацій, мультимедійних вставок та гіперпосилань (Hyper Text Markup Language).
Should This Business Update To Windows 2000
From Windows 98 For Its Office Pcs? Essay, Research Paper Should this business update to Windows 2000 from Windows 98 for its office PCs? In the business world today, computers and the software applications that run on them basically control an well-organized business. Every major company is equipped with a computer, or network that connects through different branches throughout the firm.
Mushrooms Essay Research Paper fungus characterized by
Mushrooms Essay, Research Paper fungus characterized by spore-bearing gills on the underside of an umbrella- or cone-shaped cap. The term mushroom is properly restricted to the plant’s above-ground portion, which is the reproductive organ. Once a delicacy for the elite, edible mushrooms are now grown commercially, especially strains of the meadow mushroom (Agaricus campestris).
Gentic Engineering Essay Research Paper 1 httpwwwdenisonedugriffirppaperhtm
Gentic Engineering Essay, Research Paper 1 denison.edu/~griffi_rp/paper.htm Genetic diversity is precious and should not be touched, even with the overwhelming temptation to do so. The gathering of genetic knowledge does not guarantee wisdom in deciding about human diversity. (Suzuki, Genethics, 345-346) A generalization must, then, occur.
Conformity Essay Research Paper The more people
Conformity Essay, Research Paper The more people already agree upon or share a particular idea, the more easily a newcomer will in turn be be converted to that idea, and the more difficult it will be for one already converted to reject that idea
Robert Creeley
–Online Poems Essay, Research Paper Still Life Or mobiles: that the wind can catch at, against itself, leaf or a contrivance of wires, in the stairwell, to be looked at from below.
Don Bosco Essay Research Paper Don Bosco
Don Bosco Essay, Research Paper Don Bosco Term Paper John was born in 1815 in Recchi, Italy. When John was two, his father died prematurely. As a boy, John lived on a farm with his family doing the only thing
Yesterday
’s Mistakes; Today’s Lessons Essay, Research Paper Yesterday’s mistakes; today’s lessonsThe Scarlet Letter is certainly relevant to today’s teenage parents. The novel shows the hardships of being scorned by the public. In addition, it shows how one can succeed despite public attitudes and opinions.
Tidy Html Editor Essay Research Paper When
Tidy: Html Editor Essay, Research Paper When editing HTML it’s easy to make mistakes. Wouldn’t it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggett’s HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
Digital Divide Essay Research Paper The
Digital Divide Essay, Research Paper The “Digital Define” is the distance between the people who have adequate access to technology and those who do not. As teachers, we have numerous avenues through which we can assist in narrowing the gap of the Digital Divide. Some suggestions are the following:
Basic Html Essay Research Paper There are
Basic Html Essay, Research Paper There are six basic steps you must follow in order to create a web page in HTML. For those who don t know what it HTML is, it is the coding language that is used to create, develop, and maintain these WebPages such as Yahoo, MSN, Altavista, etc. Although there are other complex languages such as XML and DHTML, they are derived from the basics of HTML.
Stress On Honor Students Essay Research Paper
Introduction: Stress affects many students. Pressures from school work such as projects, home work tests class work and so on is how I define stress for this project. My project is, Do honor students
Making A Web Page Essay Research Paper
Making a Web Page For my science project I chose to create a web (internet) page, dealing with science. This project consists of using a computer and a html editor to create a page that can be found on the internet. The next paragraph will explain how to make an internet page. The steps to making a web page to post on the internet, is very easy.
Cold Fusion Essay Research Paper Allaire
Cold Fusion Essay, Research Paper Allaire’s ColdFusion studio and server package allows web developers to create database driven applications. ColdFusion is server side scripting that utilizes Microsoft ODBC drivers to access system databases. This allows ColdFusion to produce dynamic pages generated real time by the server.
How To Make A Web Page Essay
, Research Paper Have you ever sat down at your computer and wondered how web pages are made? Web pages appear as though they would be hard to make, but they are actually quick and simple to build. There are two basic ways to build a web page.
Process Of Web Page Development Essay Research
Paper Motivator sentence: The development and design of a basic web page can be a fun yet tricky task. Thesis sentence: Whether it’s a large commercial web-site for business purposes, or a small personal web page about your hobby or family; the process of development is the same. Blueprint sentence: The three major steps leading to the development and design of a basic web page include: information gathering, site layout and design and HTML (hyper text markup language) conversion.
How To Do Frames On Web Sites
Essay, Research Paper How To Do Frames On Web Sites Dividing a web page into frames is quite simple. Frames organize web pages by dividing them into rows or columns. The
Cell Out Essay Research Paper cell out
Cell Out Essay, Research Paper cell out. Sadly, I realized that because of my new “dnalounge/”, I was finally going to need to get a cell “phones.html”. I had resisted this for a very long time, because I absolutely hate the things: I think they’re the rudest invention of modern times. A cell phone says that no matter where you are or what you are doing, you’re at the beck and call of anyone anywhere.