What is the difference between HTML lang tag and HTML hreflang tag?

by rram   Last Updated May 04, 2017 09:04 AM

Let say example.com has two different country version apart from main English version

  1. Israel(example.il)
  2. New Zealand(example.nz)

What SEO practice should I follow.

Method 1 - HTML lang

<html lang="en">
<html lang="he-IL">
<html lang="en-NZ">

Method 2 - HTML hreflang link inside head tag example.com

<link rel="alternate" href="http://example.com/" 
      hreflang="en" />
<link rel="alternate" href="http://example.il/" 
      hreflang="he-IL" />
<link rel="alternate" href="http://example.nz/" 
      hreflang="en-NZ" />

similarly use the same for other pages(example.il,example.nz).

Google says from 2011 they started treating link with hreflang for mentioning language specific content. Now Which method should I use to make the site language and country specific when it comes to search engines?

What is the difference between <html lang> and <link hreflang> ?

Related Questions

Google My Business Website URL in Multiple Languages

Updated September 07, 2017 10:04 AM