User Tools

Site Tools


Sidebar

en:objects:anchor

anchor

Object for working with links (anchors,anchors) on the current page (tag A).



Example :
Human Emulator code:<a id="a1" name="q" href="http://www.ya.ru">link<:a>

Description :
tag A 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.

To create a link, you must tell the browser what the link is, and specify the address of the document to link to. The value of the href 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.

Learn more about tag A (source)



basic functionality
Getting information on all links




Getting information on all links

get_all_hrefs – get all href
get_all_hrefs_by_inner_text – get all hrefs with specified internal texts (new version)
get_all_hrefs_by_attribute – get all hrefs with the specified attribute values

get_all_inner_texts_by_href – get all internal texts by href

get_all_external_inner_texts_and_hrefs – get all external links relative to the specified url
get_all_internal_inner_texts_and_hrefs – get all internal links relative to the specified url

en/objects/anchor.txt · Last modified: 2021/11/25 21:08 (external edit)