русс | укр

Языки программирования

ПаскальСиАссемблерJavaMatlabPhpHtmlJavaScriptCSSC#DelphiТурбо Пролог

Компьютерные сетиСистемное программное обеспечениеИнформационные технологииПрограммирование

Все о программировании


Linux Unix Алгоритмические языки Аналоговые и гибридные вычислительные устройства Архитектура микроконтроллеров Введение в разработку распределенных информационных систем Введение в численные методы Дискретная математика Информационное обслуживание пользователей Информация и моделирование в управлении производством Компьютерная графика Математическое и компьютерное моделирование Моделирование Нейрокомпьютеры Проектирование программ диагностики компьютерных систем и сетей Проектирование системных программ Системы счисления Теория статистики Теория оптимизации Уроки AutoCAD 3D Уроки базы данных Access Уроки Orcad Цифровые автоматы Шпаргалки по компьютеру Шпаргалки по программированию Экспертные системы Элементы теории информации

The Font Size Command


Дата добавления: 2015-07-09; просмотров: 505; Нарушение авторских прав


Another text manipulation command is the command that can be used to change the size of the the font on your web page. This is useful if you want to put a word on you page that is bigger then the other words but you do not want to make it a heading because you want it to appear in the body of a paragraph. This command is also useful if you want to put credits or a copyright at the bottom of your page that is very small. This technique has even been used to create a word that looks like a mountain, it starts small and gets bigger, or a sort of inverse mountain, it starts big and ends up smaller. Using the font size command you could make the first letter of every paragraph on your page be really big and all the rest of the letters normal size. This would make your page look kind of like a children’s or old fashion book.

In order to incorporate the font size command into your web page you need to decide what size you want the font to be. The font can be in a size from 1 through 7 but unlike the heading 1 is the smallest and 7 is the biggest. If you are going to use normal text on your web page you do not need to have a font size command because the web browser automatically assigns all text without the font size modifier a specific size. The font size modifier would be inserted to a web page by starting the font modification with a command. The command to start the modification would be an angle bracket “<“ followed by the words FONT SIZE followed by a 1-7 (if you want it just slightly larger then the normal font on a web page you would have to guess and insert different numbers into that size until you get your page how you want it to look) then an angle bracket “>”. For now, we will say that we want a small copyright on the bottom of the web page so we will use the smallest font size which is 1. We would then insert the text that we want to have the font manipulation active on. Then when our text is done we will need to insert the command that tells the browser that we no longer want to have our text modified. This command is an angle bracket “<“ followed by a slash “/” followed by the word FONT followed by an angle bracket “>”. The final source code for this page will look like this:



 

<FONT SIZE=1>This page and it’s contents are copyrighted by the owner</FONT>

 

Now we can do some fun stuff! If I wanted to make a document with many paragraphs and at the beginning of each paragraph I wanted a really big letter of the first word I could do this:

 

<FONT SIZE=7>O</FONT>nce upon a time there was a woman that lived in a shoe.

 

If I wanted to make a the text make the words look like a mountain, or a bell curve, I could change the font size of each letter:

 

<FONT SIZE=3>J</FONT><FONT SIZE=4>U</FONT><FONT SIZE=5>S</FONT><FONT SIZE=5>T</FONT><FONT SIZE=4>I</FONT><FONT SIZE=3>N</FONT>

 

Or if I wanted the text to appear as a inverse mountain I could do this:

 

<FONT SIZE=5>J</FONT><FONT SIZE=4>U</FONT><FONT SIZE=3>S</FONT><FONT SIZE=3>T</FONT><FONT SIZE=4>I</FONT><FONT SIZE=5>N</FONT>



<== предыдущая лекция | следующая лекция ==>
The Bold and Italic Commands | The Font Face Command


Карта сайта Карта сайта укр


Уроки php mysql Программирование

Онлайн система счисления Калькулятор онлайн обычный Инженерный калькулятор онлайн Замена русских букв на английские для вебмастеров Замена русских букв на английские

Аппаратное и программное обеспечение Графика и компьютерная сфера Интегрированная геоинформационная система Интернет Компьютер Комплектующие компьютера Лекции Методы и средства измерений неэлектрических величин Обслуживание компьютерных и периферийных устройств Операционные системы Параллельное программирование Проектирование электронных средств Периферийные устройства Полезные ресурсы для программистов Программы для программистов Статьи для программистов Cтруктура и организация данных


 


Не нашли то, что искали? Google вам в помощь!

 
 

© life-prog.ru При использовании материалов прямая ссылка на сайт обязательна.

Генерация страницы за: 3.104 сек.