Jump to content

<a class="external"> or <a rel="external">, which should i use ?

Recommended Posts

my present code for all links is <code><a href="x.html" rel="noopener noreferrer nofollow" target="_blank" style="text-decoration:underline"></code>

recently i have come across  <code><a class="external"></code> for external with a favicon beside link.

however i dont want any favicon beside link. at the same time i want to specify as external link.

so which one should i use : <code><a class="external"></code> OR <q><a rel="external"></q>.

can i use for internal links also ?

Edited by leela52452
add code shortcut

Share this post

Link to post
Share on other sites

The rel attribute tells machines what the purpose of your link is, it can only have specific values. The class attribute just assigns an arbitrary name or set of names to the link, it can have any value.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...