Тег address в html для чего нужен

от admin

<address> — элемент для контактных адресов

HTML- тег <address> задаёт контактные данные для ближайшего родительского <article> или <body> ; В последнем случае применяется ко всему документу, визуально выделяется курсивом.

Примечание:

  • Для представления адреса, который не является контактной информацией, воспользуйтесь <p> элементом.
  • Данный тег не должен содержать любой другой информации, кроме контактной. (пример: дата публикации — относится к <time> тегу ).
  • Обычно тег <address> размещается внутри тега <footer> текущего блока, если есть хотя бы один.
Категории контента (en-US) Основной поток, palpable content.
Разрешённый контент Основной поток, но без вложенного элемента <address>, без элементов заголовка ( <hgroup> , <h1> (en-US), <h2> (en-US), <h3> (en-US), <h4> (en-US), <h5> (en-US), <h6> (en-US)), без секционного контента ( <article> , <aside> , <section> , <nav> ) и без <header> или <footer> элементов.
Опускание тегов Нет, открывающий и закрывающий теги обязательны.
Разрешённые родительские элементы Любой элемент, который принимает flow content (en-US) .
DOM интерфейс HTMLElement Prior to Gecko 2.0 (Firefox 4), Gecko implemented this element using the HTMLSpanElement (en-US) interface

Атрибуты

Этот элемент включает в себя глобальные атрибуты.

Пример

Помимо элемента <address> , с такими же стандартными стилями как и он текст отображают <i> (en-US) или <em> элементы, более правильно использовать его, когда имеете дело с контактной информацией, так как он передаёт дополнительную семантическую информацию.

HTML <address> Tag

The <address> tag is used to provide contact information about the owner of sites or the author of the article. It can contain email, phone, address, link to the site, and so on.

Syntax

The <address> tag comes in pairs. The content is written between the opening (<address>) and closing (</address>) tags.

Most browsers add a line break before the element and after it, and the information in the tag is displayed in italic.

If the <address> tag is placed inside the element, the contact information it contains refers to the entire document as a whole. To specify the contact information of the author of the article, you must place the <address> tag inside the <article> element.

Example of the HTML <address> tag:

Result

address exemple

The <address> tag is included together with other information in the <footer> element.

HTML <address> Tag

The <address> tag defines the contact information for the author/owner of a document or an article.

The contact information can be an email address, URL, physical address, phone number, social media handle, etc.

The text in the <address> element usually renders in italic, and browsers will always add a line break before and after the <address> element.

Browser Support

Element
<address> Yes Yes Yes Yes Yes

Global Attributes

The <address> tag also supports the Global Attributes in HTML.

Event Attributes

The <address> tag also supports the Event Attributes in HTML.

Related Pages

Default CSS Settings

Most browsers will display the <address> element with the following default values:

Example

COLOR PICKER
SUBSCRIBE!

Contacts

If you want to report a bug, as well as make an offer for the site, add an ad or advertisement on the site, do not hesitate to send an email to the admin:

Top Tutorial
Top References
Top Examples
Web Certificates

This site is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.
You can also use the Ukrainian version of the site W3Schools українською.
Copyright 1999-2024 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by W3.CSS.

HTML <address> Tag

The <address> tag defines the contact information for the author/owner of a document or an article.

The contact information can be an email address, URL, physical address, phone number, social media handle, etc.

The text in the <address> element usually renders in italic, and browsers will always add a line break before and after the <address> element.

Browser Support

Element
<address> Yes Yes Yes Yes Yes

Global Attributes

The <address> tag also supports the Global Attributes in HTML.

Event Attributes

The <address> tag also supports the Event Attributes in HTML.

Related Pages

Default CSS Settings

Most browsers will display the <address> element with the following default values:

Читать:
Как импортировать картинки в react

Похожие статьи