summaryrefslogtreecommitdiff
path: root/devdocs/html/element%2Faddress.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/html/element%2Faddress.html')
-rw-r--r--devdocs/html/element%2Faddress.html90
1 files changed, 90 insertions, 0 deletions
diff --git a/devdocs/html/element%2Faddress.html b/devdocs/html/element%2Faddress.html
new file mode 100644
index 00000000..f9c641b6
--- /dev/null
+++ b/devdocs/html/element%2Faddress.html
@@ -0,0 +1,90 @@
+<header><h1>&lt;address&gt;: The Contact Address element</h1></header><div class="section-content"><p>The <code>&lt;address&gt;</code> <a href="../index">HTML</a> element indicates that the enclosed HTML provides contact information for a person or people, or for an organization.</p></div>
+<h2 id="try_it">Try it</h2>
+<div class="section-content">
+<iframe class="interactive is-tabbed-standard-height" height="200" src="https://interactive-examples.mdn.mozilla.net/pages/tabbed/address.html" title="MDN Web Docs Interactive Example" loading="lazy"></iframe> <p>The contact information provided by an <code>&lt;address&gt;</code> element's contents can take whatever form is appropriate for the context, and may include any type of contact information that is needed, such as a physical address, URL, email address, phone number, social media handle, geographic coordinates, and so forth. The <code>&lt;address&gt;</code> element should include the name of the person, people, or organization to which the contact information refers.</p> <p><code>&lt;address&gt;</code> can be used in a variety of contexts, such as providing a business's contact information in the page header, or indicating the author of an article by including an <code>&lt;address&gt;</code> element within the <a href="article"><code>&lt;article&gt;</code></a>.</p>
+</div>
+<h2 id="attributes">Attributes</h2>
+<div class="section-content"><p>This element only includes the <a href="../global_attributes">global attributes</a>.</p></div>
+<h2 id="usage_notes">Usage notes</h2>
+<div class="section-content"><ul> <li>The <code>&lt;address&gt;</code> element can only be used to represent the contact information for its nearest <a href="article"><code>&lt;article&gt;</code></a> or <a href="body"><code>&lt;body&gt;</code></a> element ancestor.</li> <li>This element should not contain more information than the contact information, like a publication date (which belongs in a <a href="time"><code>&lt;time&gt;</code></a> element).</li> <li>Typically an <code>&lt;address&gt;</code> element can be placed inside the <a href="footer"><code>&lt;footer&gt;</code></a> element of the current section, if any.</li> </ul></div>
+<h2 id="examples">Examples</h2>
+<div class="section-content">
+<p>This example demonstrates the use of <code>&lt;address&gt;</code> to demarcate the contact information for an article's author.</p> <div class="code-example">
+<p class="example-header"><span class="language-name">html</span></p>
+<pre data-signature="HSgCVynSQQpCbBCnvdL264YbPY4qB5vhI7Yiu8NtBSw=" data-language="html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>address</span><span class="token punctuation">&gt;</span></span>
+ You can contact author at
+ <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>http://www.somedomain.com/contact<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>www.somedomain.com<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">&gt;</span></span>.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+ If you see any bugs, please
+ <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>mailto:webmaster@somedomain.com<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>contact webmaster<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">&gt;</span></span>.<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+ You may also want to visit us:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+ Mozilla Foundation<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+ 331 E Evelyn Ave<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+ Mountain View, CA 94041<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>br</span> <span class="token punctuation">/&gt;</span></span>
+ USA
+<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>address</span><span class="token punctuation">&gt;</span></span>
+</pre>
+</div>
+</div>
+<h3 id="result">Result</h3>
+<div class="section-content">
+<div class="code-example" id="sect1">
+
+<iframe class="sample-code-frame" title="Examples sample" id="frame_examples" width="300" height="200" src="https://live.mdnplay.dev/en-US/docs/Web/HTML/Element/address/runner.html?id=examples" loading="lazy"></iframe>
+</div> <p>Although it renders text with the same default styling as the <a href="i"><code>&lt;i&gt;</code></a> or <a href="em"><code>&lt;em&gt;</code></a> elements, it is more appropriate to use <code>&lt;address&gt;</code> when dealing with contact information, as it conveys additional semantic information.</p>
+</div>
+<h2 id="technical_summary">Technical summary</h2>
+<div class="section-content"><figure class="table-container"><div class="_table"><table class="properties"> <tbody> <tr> <th scope="row"><a href="../content_categories">Content categories</a></th> <td>
+<a href="../content_categories#flow_content">Flow content</a>, palpable content.</td> </tr> <tr> <th scope="row">Permitted content</th> <td> <a href="../content_categories#flow_content">Flow content</a>, but with no nested <code>&lt;address&gt;</code> element, no heading content (<a href="hgroup"><code>&lt;hgroup&gt;</code></a>, <a href="heading_elements">h1</a>, <a href="heading_elements">h2</a>, <a href="heading_elements">h3</a>, <a href="heading_elements">h4</a>, <a href="heading_elements">h5</a>, <a href="heading_elements">h6</a>), no sectioning content (<a href="article"><code>&lt;article&gt;</code></a>, <a href="aside"><code>&lt;aside&gt;</code></a>, <a href="section"><code>&lt;section&gt;</code></a>, <a href="nav"><code>&lt;nav&gt;</code></a>), and no <a href="header"><code>&lt;header&gt;</code></a> or <a href="footer"><code>&lt;footer&gt;</code></a> element. </td> </tr> <tr> <th scope="row">Tag omission</th> <td>None, both the starting and ending tag are mandatory.</td> </tr> <tr> <th scope="row">Permitted parents</th> <td> Any element that accepts <a href="../content_categories#flow_content">flow content</a>, but always excluding <code>&lt;address&gt;</code> elements (according to the logical principle of symmetry, if <code>&lt;address&gt;</code> tag, as a parent, can not have nested <code>&lt;address&gt;</code> element, then the same <code>&lt;address&gt;</code> content can not have <code>&lt;address&gt;</code> tag as its parent). </td> </tr> <tr> <th scope="row">Implicit ARIA role</th> <td><code><a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/group_role">group</a></code></td> </tr> <tr> <th scope="row">Permitted ARIA roles</th> <td>Any</td> </tr> <tr> <th scope="row">DOM interface</th> <td> <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"><code>HTMLElement</code></a> Prior to Gecko 2.0 (Firefox 4), Gecko implemented this element using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLSpanElement"><code>HTMLSpanElement</code></a> interface </td> </tr> </tbody> </table></div></figure></div>
+<h2 id="specifications">Specifications</h2>
+<div class="_table"><table class="standard-table">
+<thead><tr><th scope="col">Specification</th></tr></thead>
+<tbody><tr><td><a href="https://html.spec.whatwg.org/multipage/sections.html#the-address-element">HTML Standard <br><small># the-address-element</small></a></td></tr></tbody>
+</table></div>
+<h2 id="browser_compatibility">Browser compatibility</h2>
+<div class="_table"><table>
+<thead>
+<tr id="bct-browser-type">
+<th></th>
+<th colspan="6">Desktop</th>
+<th colspan="6">Mobile</th>
+</tr>
+<tr id="bct-browsers">
+<th></th>
+<th>Chrome</th>
+<th>Edge</th>
+<th>Firefox</th>
+<th>Internet Explorer</th>
+<th>Opera</th>
+<th>Safari</th>
+<th>WebView Android</th>
+<th>Chrome Android</th>
+<th>Firefox for Android</th>
+<th>Opera Android</th>
+<th>Safari on IOS</th>
+<th>Samsung Internet</th>
+</tr>
+</thead>
+<tbody><tr>
+<th><code>address</code></th>
+<td class="bc-supports-yes">1</td>
+<td class="bc-supports-yes">12</td>
+<td class="bc-supports-yes">1</td>
+<td class="bc-supports-yes">Yes</td>
+<td class="bc-supports-yes">15</td>
+<td class="bc-supports-yes">1</td>
+<td class="bc-supports-yes">4.4</td>
+<td class="bc-supports-yes">18</td>
+<td class="bc-supports-yes">4</td>
+<td class="bc-supports-yes">14</td>
+<td class="bc-supports-yes">1</td>
+<td class="bc-supports-yes">1.0</td>
+</tr></tbody>
+</table></div>
+<h2 id="see_also">See also</h2>
+<div class="section-content"><ul> <li>Others section-related elements: <a href="body"><code>&lt;body&gt;</code></a>, <a href="nav"><code>&lt;nav&gt;</code></a>, <a href="article"><code>&lt;article&gt;</code></a>, <a href="aside"><code>&lt;aside&gt;</code></a>, <a href="heading_elements">h1</a>, <a href="heading_elements">h2</a>, <a href="heading_elements">h3</a>, <a href="heading_elements">h4</a>, <a href="heading_elements">h5</a>, <a href="heading_elements">h6</a>, <a href="hgroup"><code>&lt;hgroup&gt;</code></a>, <a href="footer"><code>&lt;footer&gt;</code></a>, <a href="section"><code>&lt;section&gt;</code></a>, <a href="header"><code>&lt;header&gt;</code></a>;</li> <li>
+<a href="heading_elements">Sections and outlines of an HTML document</a>.</li> </ul></div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2005&ndash;2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br>
+ <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address</a>
+ </p>
+</div>