+ 1
What is href and rel?
3 Respuestas
+ 7
well......
href is created with the tag <a>
(you do know it)
links(not clickable) are placed inside the head tag (always)
and usually describes the relationship eg( <link rel="yourDoc.css"/> to fetches css mostly) between current document and another document
while...
anchors (clickable)eg (<a href="https://www.google.com"> google</a>) are placed inbetween the <body> tag to access resources from same/or another webpage...
+ 2
href is a hyperlink reference -> a reference to a file. This can be a link or an absolute or relative path.
rel further classifies the use of the file, e.g. as stylesheet.
+ 2
ehm @Roy
in xhtml standard you link to a Css file using
<link rel="stylesheet" href="<path or link>/style.css" />
So your first assumption using ahref only in the <a> tag is wrong.