HTML Element
  • 20 Oct 2023
  • 1 Minute to read
  • Contributors
  • Dark
  • PDF

HTML Element

  • Dark
  • PDF

Article Summary

Define HTML Element

Defining the element is crucial because it establishes the foundation of your web page, ensuring proper structure, compatibility with browsers, adherence to HTML standards, and optimal SEO performance. It's a fundamental requirement for any HTML document.

  • Missing HTML Element (-100 points): If the element is missing, it results in a score deduction of -100 points.

  • HTML Element is Defined(+1 point): Defining the element, even without the lang attribute, is rewarded with a score increase of +1 point.

    Lang attribute

To improve crawlers' language recognition, you should always define the lang attribute on your <html> elements, which allows the crawler to differentiate if your content is available in multiple languages while screen readers assign the correct pronunciation to your page.

  • Define the lang Attribute (-1 point) : If you define the lang attribute in your element, it shows a commitment to language accessibility, and this action is encouraged. A score deduction of -1 point is applied if you specify an incorrect or non-standard language code (e.g., en_us).

  • Lang Attribute is Defined (+1 point) : Defining the lang attribute correctly in your element is important for language recognition and screen reader functionality. This action results in a score increase of +1 point.

Example implementation:

<html lang="en">
<p>English content</p>

Find more detailed information here.

Was this article helpful?

What's Next