Jump to content

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


leela52452

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
Link to comment
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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...