{"id":9269,"date":"2022-10-06T03:59:39","date_gmt":"2022-10-06T03:59:39","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9269"},"modified":"2022-10-06T03:59:39","modified_gmt":"2022-10-06T03:59:39","slug":"html-tag-5","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/html-tag-5\/","title":{"rendered":"HTML <address> Tag"},"content":{"rendered":"\n<p>The&nbsp;&lt;address&gt;&nbsp;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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"syntax-2\">Syntax<\/h2>\n\n\n\n<p>The&nbsp;&lt;address&gt;&nbsp;tag comes in pairs. The content is written between the opening (&lt;address&gt;) and closing (&lt;\/address&gt;) tags.<\/p>\n\n\n\n<p>Most browsers add a line break before the element and after it, and the information in the tag is displayed in italic.<\/p>\n\n\n\n<p>If the\u00a0&lt;address>\u00a0tag 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\u00a0&lt;address>\u00a0tag inside the\u00a0&lt;article>\u00a0element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-lt-address-gt-span-tag-4\">Example of the HTML&nbsp;&lt;address&gt;&nbsp;tag:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;address&gt;\n      Author: W3docs team&lt;br \/&gt;\n      &lt;a href=\"mailto:info@w3docs.com\"&gt;Contact Author&lt;\/a&gt;\n    &lt;\/address&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"result-6\">Result<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/mdr.foobrdigital.com\/wp-content\/uploads\/2022\/10\/image-32.png\" alt=\"\" class=\"wp-image-9270\"\/><\/figure>\n\n\n\n<p>Do not use the&nbsp;&lt;address&gt;&nbsp;tag to provide an email address unless it is part of the author&#8217;s information.<\/p>\n\n\n\n<p>The\u00a0&lt;address>\u00a0tag is included together with other information in the\u00a0&lt;footer>\u00a0element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-lt-address-gt-span-tag-with-the-html-lt-footer-gt-tag-10\">Example of the HTML&nbsp;&lt;address&gt;&nbsp;tag with the HTML &lt;footer&gt; tag:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;style&gt;\n      .header{\n        height: 40px;\n        padding: 20px 20px 0;\n        background: #e1e1e1;\n      }\n      .main-content{\n        height: 60vh;\n        padding: 20px;\n      }\n      footer{\n        padding: 10px 20px;\n        background: #666666;\n        color: white;\n      }\n      a{\n        color: #00aaff;\n      }\n    &lt;\/style&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;div class=\"header\"&gt;Header \/ Menu&lt;\/div&gt;\n    &lt;div class=\"main-content\"&gt;\n      &lt;h1&gt;Main content&lt;\/h1&gt;\n      &lt;p&gt;This is some paragraph. &lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;footer style=\"display:flex; justify-content:space-between; align-items:flex-end;\"&gt;\n      &lt;p style=\"margin:0;\"&gt;Company \u00a9 W3docs. All rights reserved.&lt;\/p&gt;\n      &lt;address&gt;\n        3rd street, app 43&lt;br \/&gt;\n        New York, USA        \n      &lt;\/address&gt;\n    &lt;\/footer&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"attributes-12\">Attributes<\/h2>\n\n\n\n<p>The\u00a0&lt;address>\u00a0tag supports the\u00a0Global Attributes\u00a0and the\u00a0Event Attributes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to style &lt;address&gt; tag?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Common properties to alter the visual weight\/emphasis\/size of text in &lt;address&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS font-style\u00a0property sets the style of the font. normal | italic | oblique | initial | inherit.<\/li><li>CSS font-family\u00a0property specifies a prioritized list of one or more font family names and\/or generic family names for the selected element.<\/li><li>CSS font-size\u00a0property sets the size of the font.<\/li><li>CSS font-weight\u00a0property defines whether the font should be bold or thick.<\/li><li>CSS text-transform\u00a0property controls text case and capitalization.<\/li><li>CSS text-decoration\u00a0property specifies the decoration added to text, and is a shorthand property for text-decoration-line, text-decoration-color, text-decoration-style.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Coloring text in &lt;address&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS color\u00a0property describes the color of the text content and text decorations.<\/li><li>CSS background-color\u00a0property sets the background color of an element.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Text layout styles for &lt;address&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS text-indent\u00a0property specifies the indentation of the first line in a text block.<\/li><li>CSS text-overflow\u00a0property specifies how overflowed content that is not displayed should be signalled to the user.<\/li><li>CSS white-space\u00a0property specifies how white-space inside an element is handled.<\/li><li>CSS word-break\u00a0property specifies where the lines should be broken.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Other properties worth looking at for &lt;address&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS text-shadow\u00a0property adds shadow to text.<\/li><li>CSS text-align-last\u00a0property sets the alignment of the last line of the text.<\/li><li>CSS line-height\u00a0property specifies the height of a line.<\/li><li>CSS letter-spacing\u00a0property defines the spaces between letters\/characters in a text.<\/li><li>CSS word-spacing\u00a0property sets the spacing between words.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Browser support<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_chrome.svg\" alt=\"chrome\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_edge.svg\" alt=\"edge\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_firefox.svg\" alt=\"firefox\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_safari.svg\" alt=\"safari\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_opera.svg\" alt=\"opera\" width=\"24\" height=\"24\"><\/th><\/tr><\/thead><tbody><tr><td>\u2713<\/td><td>\u2713<\/td><td>\u2713<\/td><td>\u2713<\/td><td>\u2713<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;&lt;address&gt;&nbsp;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&nbsp;&lt;address&gt;&nbsp;tag comes in pairs. The content is written between the opening (&lt;address&gt;) and closing (&lt;\/address&gt;) tags. Most browsers add a line break before [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[529],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9269"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9269"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9269\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}