Anchor tag (a tag) in HTML | 10

Опубликовано: 11 Июнь 2026
на канале: codewithsahir
555
9

#anchor tag #HTML #CSS
Anchor tag (a tag) in HTML | 10
This is the basic use of the (anchor element) element:
It creates a hyperlink, to the URL http://example.com/ as specified by the href (hypertext reference) attribute, with
the anchor text "Link to example.com". It would look something like the following:
To denote that this link leads to an external website, you can use the external link type:
You can link to a site that uses a protocol other than HTTP. For example, to link to an FTP site, you can do, In this case, the difference is that this anchor tag is requesting that the user's browser connect to example.com
using the File Transfer Protocol (FTP) rather than the Hypertext Transfer Protocol (HTTP).