User Tools

Site Tools


en:objects:anchor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:objects:anchor [2020/10/06 20:04]
sales
en:objects:anchor [2026/08/05 22:29] (current)
Line 1: Line 1:
-<html><h2><h2>anchor</h2>Object for working with links (anchors,anchors) on the current page (tag A).<br><br><hr><br><h6>Example :</h6><A id=234234 href="http://www.humanemulator.info" name=qwer>Human Emulator</A>code:<SPAN style="COLOR: #339933">&lt;</SPAN>a id<SPAN style="COLOR: #339933">=</SPAN><SPAN style="COLOR: #0000ff">"a1"</SPAN> name<SPAN style="COLOR: #339933">=</SPAN><SPAN style="color: #0000FF">"q"</Span> href<span style="color: #339933">=</span><span style="color: #0000FF">"http://www.ya.ru"</SPAN><SPAN style="COLOR: #339933">></SPAN>link<SPAN style="COLOR: #339933">&lt;/</SPAN>a<SPAN style="COLOR: #339933">&gt;</SPAN><br><br><h6>Description :</h6><font color=green>tag A</font> it is one of the important elements of HTML and is intended for creating links. Depending on the presence of the name or href attributes, the A tag Sets a link or anchor. An anchor is a bookmark inside a page that can be specified as a link target. When you use a link that points to an anchor, you go to the bookmark inside the web page.<br><br>To create a link, you must tell the browser what the link is, and specify the address of the document to link to. The <font color=green>value of the href</font> attribute is the address of the document (URL, Universal Resource Locator, universal resource pointer) that the user is navigating to. The link address can be absolute or relative. Absolute addresses work everywhere, regardless of the name of the site or web page where the link is registered. Relative links, as their name implies, are built relative to the current document or site root.<br><br><a href="http://htmlbook.ru/html/a">Learn more about tag A (source)</a><br><br><hr><br><font size=3><A href="/objects/DOM/a_common.php">basic functionality</A><br><A href="#get_all">Getting information on all links</A></font><br><br><a name="get_all"></a><hr><br><I>Getting information on all links</I><br><br><A href="/objects/DOM/anchor/get_all/get_all_hrefs.php">get_all_hrefs</A> – get all href<br><A href="/objects/DOM/anchor/get_all/get_all_hrefs_by_inner_text_2.php">get_all_hrefs_by_inner_text</A> – get all hrefs with specified internal texts (new version)<br><A href="/objects/DOM/anchor/get_all/get_all_hrefs_by_attribute.php">get_all_hrefs_by_attribute</A> – get all hrefs with the specified attribute values<br><br><A href= "/objects/DOM/anchor/get_all/get_all_inner_texts_by_href.php">get_all_inner_texts_by_href</A> – get all internal texts by href<br><br><A href="/objects/DOM/anchor/get_all/get_all_external_inner_texts_and_hrefs.php">get_all_external_inner_texts_and_hrefs</A> – get all external links relative to the specified url<br><A href="/objects/DOM/anchor/get_all/get_all_internal_inner_texts_and_hrefs.php">get_all_internal_inner_texts_and_hrefs</A> – get all internal links relative to the specified url<br><br> +<html><h2><h2>anchor</h2>Object for working with links (anchors,anchors) on the current page (tag A).<br><br><hr><br><h6>Example :</h6><A id=234234 href="http://webemulator.com" name=qwer>Human Emulator</A> code:<SPAN style="COLOR: #339933">&lt;</SPAN>a id<SPAN style="COLOR: #339933">=</SPAN><SPAN style="COLOR: #0000ff">"a1"</SPAN> name<SPAN style="COLOR: #339933">=</SPAN><SPAN style="color: #0000FF">"q"</Span> href<span style="color: #339933">=</span><span style="color: #0000FF">"http://www.ya.ru"</SPAN><SPAN style="COLOR: #339933">></SPAN>link<SPAN style="COLOR: #339933">&lt;:</SPAN>a<SPAN style="COLOR: #339933">&gt;</SPAN><br><br><h6>Description :</h6><font color=green>tag A</font> it is one of the important elements of HTML and is intended for creating links. Depending on the presence of the name or href attributes, the A tag Sets a link or anchor. An anchor is a bookmark inside a page that can be specified as a link target. When you use a link that points to an anchor, you go to the bookmark inside the web page.<br><br>To create a link, you must tell the browser what the link is, and specify the address of the document to link to. The <font color=green>value of the href</font> attribute is the address of the document (URL, Universal Resource Locator, universal resource pointer) that the user is navigating to. The link address can be absolute or relative. Absolute addresses work everywhere, regardless of the name of the site or web page where the link is registered. Relative links, as their name implies, are built relative to the current document or site root.<br><br><a href="http://htmlbook.ru/html/a">Learn more about tag A (source)</a><br><br><hr><br><font size=3><A href="/wiki/doku.php?id=en:objects:common">basic functionality</A><br><A href="#get_all">Getting information on all links</A></font><br><br><a name="get_all"></a><hr><br><I>Getting information on all links</I><br><br><A href="/wiki/doku.php?id=en:objects:anchor:get_all:get_all_hrefs">get_all_hrefs</A> – get all href<br><A href="/wiki/doku.php?id=en:objects:anchor:get_all:get_all_hrefs_by_inner_text_2">get_all_hrefs_by_inner_text</A> – get all hrefs with specified internal texts (new version)<br><A href="/wiki/doku.php?id=en:objects:anchor:get_all:get_all_hrefs_by_attribute">get_all_hrefs_by_attribute</A> – get all hrefs with the specified attribute values<br><br><A href= "/wiki/doku.php?id=en:objects:anchor:get_all:get_all_inner_texts_by_href">get_all_inner_texts_by_href</A> – get all internal texts by href<br><br><A href="/wiki/doku.php?id=en:objects:anchor:get_all:get_all_external_inner_texts_and_hrefs">get_all_external_inner_texts_and_hrefs</A> – get all external links relative to the specified url<br><A href="/wiki/doku.php?id=en:objects:anchor:get_all:get_all_internal_inner_texts_and_hrefs">get_all_internal_inner_texts_and_hrefs</A> – get all internal links relative to the specified url<br><br></html>
- +
-</html>+
en/objects/anchor.1602003863.txt.gz · Last modified: 2020/10/06 20:04 by sales