" tag in an HTML document to define a hyperlink that can jump to another HTML page. The specific syntax format is "Another html page"."/> " tag in an HTML document to define a hyperlink that can jump to another HTML page. The specific syntax format is "Another html page".">
Home >Web Front-end >HTML Tutorial >How to hyperlink another html page in html
How to hyperlink another HTML page: Use the "" tag in an HTML document to define a hyperlink that can jump to another HTML page. The specific syntax format is "< ;a href="Specific URL of the html page">Another html page".
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
htmlHyperlink to another html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <a href="2.html">跳转到另一个html页面</a> </body> </html>
Rendering:
HTML Tag
element is the href attribute, which specifies the target of the link.
Basic syntax:
<a href="URL">文本</a>
Attributes of a tag:
Attributes | Value | Description |
---|---|---|
charset | char_encoding | HTML5 Not supported. Specifies the character encoding of the target URL. |
coords | coordinates | HTML5 Not supported. Specifies the coordinates of the link. |
download | filename | Specify download link |
href | URL | Specifies the target URL of the link. |
hreflang | language_code | Specifies the base language of the target URL. Only used if the href attribute is present. |
media | media_query | Specifies the media type of the target URL. Default value: all. Only used if the href attribute is present. |
name | section_name | HTML5 Not supported. Specifies the name of the anchor. |
rel | alternate author bookmark help license next nofollow noreferrer prefetch prev search tag |
Specifies the relationship between the current document and the target URL. Only used if the href attribute is present. |
rev | text | HTML5 Not supported. Specifies the relationship between the target URL and the current document. |
shape | default rect circle poly |
HTML5 is not supported. Specifies the shape of the link. |
target | _blank _parent _self _top framename |
Specify where to open the target URL. Only used if the href attribute is present.
|
type | MIME_type | Specifies the MIME type of the target URL. Only used if the href attribute is present. Note: MIME = Multipurpose Internet Mail Extensions. |
For more programming related knowledge, please visit: Programming Video! !
The above is the detailed content of How to hyperlink another html page in html. For more information, please follow other related articles on the PHP Chinese website!