Skip to main content
edited tags; edited title
Link
unor
  • 21.9k
  • 3
  • 47
  • 118

How are the <!DOCTYPE> and <html> tags important for SEO Rankingranking?

Source Link
AGamePlayer
  • 773
  • 3
  • 16

How are the <!DOCTYPE> and <html> tags important for SEO Ranking?

I'd like to compare the two sites:

Site A:

<!DOCTYPE html>
<html lang=en_US>
<head>

Site B:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>

The differences are:

  1. Site A doesn't have " for tag attributes.
  2. Site A has a very simple !DOCTYPE tag
  3. Site A has a very simple html tag

I'm wondering, are the three factors important for SEO rankings?