Add the syntax (#27013)

pull/29455/head
quang1793 2018-12-12 03:24:05 +07:00 committed by Randell Dawson
parent 11f4dfc466
commit 0663817324
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@ For instance:
```
The `<a href>` attribute is supported by all browsers.
### Syntax
<a href="URL">
URL: The URL of the link.
Possible values:
- An absolute URL - points to another web site (like <a href="https://www.freecodecamp.org">)
- A relative URL - points to a file within a web site (like href="index.html")
- Link to an element with a specified id within the page (like hred="#id-name")
#### More attributes:
`hreflang` : Specifies the language of the linked resource.
`target` : Specifies the context in which the linked resource will open.