I use this common modern doctype to signify HTML 5 and so does the new site I'm working on.
<!DOCTYPE html>
I don't do anything to the HTML tag ( it's just <html>
so I found it strange when I started working on a new site and found they used:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
What exactly is this line doing. The type of HTML being used has already been specified.
Can the xmlns
and lang
attributes be removed or are they performing some function?
Research