directory
- A label
- Global properties
- Link type
A label:
- The A tag is used to add hyperlinks to web pages
- The A label has to contain the content or it won’t show up.
Properties:
Herf (specifies the path of the page)
- The address of the page to jump to
- It can jump to other files.
- Can jump to absolute page address. < /a> < /a>
- It could be an Email address. Example: < a herf=”email> Please send me an email < /a> to:”[email protected]”
- < a herf=”tel:18337921839″> contact us < /a>
For files such as zip, downloads are performed. For TXT, PDF, preview is performed.
Target :(specifies where to open the connection)
- _blank (Open the page in a new window)
- _self this is the default (opens the page in the current window)
- _parent(opens hyperlinks in parent frame)
- _top(opens the page in the entire window)
Title Indicates the text that is prompted when the mouse hovers over an element
The default font is blue when the A TAB is not activated, purple when activated, and red when pressed.
Global attributes (attributes that any tag can use) :
Title Indicates the text displayed when the mouse is hovering.
Style defines CSS styles.
Class defines a class in which attribute values can be repeated within a page.
Id defines that the value of the ID attribute on the page is unique.
The difference between class and ID: Both class and ID have a name function, except that class can be regarded as our first name and ID can be regarded as our id number.
Link type of link:
- Text link, for example: Baidu
- Image link, for example: Click to enter Baidu
- Empty link (no jump), for example:
Put an ID in the target tag, and #+ the ID of the target tag in the A tag.