Warning :: <html> element must have a lang attribute: The <html> element does not have a lang attribute


Warning :: <html> element must have a lang attribute: The <html> element does not have a lang attribute

경고 element must have a lang attribute: The element does not have a lang attribute 웹 개발을 할 때 개발자도구를 열었더니 위와 같은 경고가 발생했습니다. 원인 html-lang-valid 규칙을 지키지 않았기 때문에 발생하는 경고입니다. 웹 페이지의 언어를 지정해야 한다는 규칙입니다. 웹 페이지의 언어를 지정하지 않으면 screen reader는 사용자가 설정한 기본 언어로 가정합니다. screen reader는 언어의 특성에 따라 서로 다른 사운드 라이브러리를 사용합니다. 만약 문서에서 읽을 언어가 올바르게 지정되어 있지 않다면 screen reader가 다른 언어로 문서를 읽으므로 혼란스러운 부분이 생길 수 있습니다. 이러한 부분으로 인..


원문링크 : Warning :: <html> element must have a lang attribute: The <html> element does not have a lang attribute