+ 1

What is the point having HREF?

Whats the point of HREF if this could be just <a="url">Url</a> Would save some typing and size :)

14th Feb 2017, 8:32 PM
Mihhail
Mihhail - avatar
3 Réponses
+ 2
Every HTML tag has its attributes. Attributes hold some value. a = HTML tag href = attribute url = value So, if you remove 'href', your syntax is not correct then :)
14th Feb 2017, 8:38 PM
Dev
Dev - avatar
- 1
What I saying is: if <a href= is always constant. So it never changes right? They could make it shorter. It's like having <b img. Seems pointless really.
15th Feb 2017, 6:33 AM
Mihhail
Mihhail - avatar