Тег Center
Тег center
HTML теги
Oписание
Тег <center> выравнивает содержимое контейнера по центру относительно родительского элемента. Синтаксис <center> Текст </center>
Атрибуты
Нет.
Аналог CSS text-align
Валидация
Использование этого тега осуждается спецификацией HTML, валидный код получается только при использовании переходного <!DOCTYPE>.
Закрывающий тег
Обязателен.
Пример: Кода HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="/img/favicon.gif" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<center>Methods of memorizing a lot of foreign words.
Someone writes the new words he encounters in the text, a new book with the translation and
transcription, and then repeats them over and over again to myself.
Someone is trying toremember the meanings of words, using</center>
</body>
</html>
Данный пример показан на рисунке №1
Рисунок №1
Комментарии (0)
Комментариев нет!!!