diff options
Diffstat (limited to 'devdocs/html/element%2Faddress.html')
| -rw-r--r-- | devdocs/html/element%2Faddress.html | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/devdocs/html/element%2Faddress.html b/devdocs/html/element%2Faddress.html deleted file mode 100644 index f9c641b6..00000000 --- a/devdocs/html/element%2Faddress.html +++ /dev/null @@ -1,90 +0,0 @@ -<header><h1><address>: The Contact Address element</h1></header><div class="section-content"><p>The <code><address></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><address></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><address></code> element should include the name of the person, people, or organization to which the contact information refers.</p> <p><code><address></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><address></code> element within the <a href="article"><code><article></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><address></code> element can only be used to represent the contact information for its nearest <a href="article"><code><article></code></a> or <a href="body"><code><body></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><time></code></a> element).</li> <li>Typically an <code><address></code> element can be placed inside the <a href="footer"><code><footer></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><address></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"><</span>address</span><span class="token punctuation">></span></span> - You can contact author at - <span class="token tag"><span class="token tag"><span class="token punctuation"><</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">></span></span>www.somedomain.com<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>a</span><span class="token punctuation">></span></span>.<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span> <span class="token punctuation">/></span></span> - If you see any bugs, please - <span class="token tag"><span class="token tag"><span class="token punctuation"><</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">></span></span>contact webmaster<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>a</span><span class="token punctuation">></span></span>.<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span> <span class="token punctuation">/></span></span> - You may also want to visit us:<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span> <span class="token punctuation">/></span></span> - Mozilla Foundation<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span> <span class="token punctuation">/></span></span> - 331 E Evelyn Ave<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span> <span class="token punctuation">/></span></span> - Mountain View, CA 94041<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>br</span> <span class="token punctuation">/></span></span> - USA -<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>address</span><span class="token punctuation">></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><i></code></a> or <a href="em"><code><em></code></a> elements, it is more appropriate to use <code><address></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><address></code> element, no heading content (<a href="hgroup"><code><hgroup></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><article></code></a>, <a href="aside"><code><aside></code></a>, <a href="section"><code><section></code></a>, <a href="nav"><code><nav></code></a>), and no <a href="header"><code><header></code></a> or <a href="footer"><code><footer></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><address></code> elements (according to the logical principle of symmetry, if <code><address></code> tag, as a parent, can not have nested <code><address></code> element, then the same <code><address></code> content can not have <code><address></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><body></code></a>, <a href="nav"><code><nav></code></a>, <a href="article"><code><article></code></a>, <a href="aside"><code><aside></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><hgroup></code></a>, <a href="footer"><code><footer></code></a>, <a href="section"><code><section></code></a>, <a href="header"><code><header></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"> - © 2005–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> |
