HTML Webseiten Optimierung

Hey IT Community

Ich habe vor kurzem eine Webseite entwickelt und es mal durch verschiedene Validatoren laufen lassen, bis auf wenige Anmerkungen ist meine Webseite optimal (Yuhuu erstmal). Könnt ihr mal sagen, wie ich diese Meldungen los werde:

1. Using the meta element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead

2. The Content-Type was text/html. Using the HTML parser.

3.The language attribute on the script element is obsolete. You can safely omit it.

Vielen Dank

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Also erst einmal, wenn das die einzigen Meldungen sind die du hast, Hut ab. Das heißt, dass dein Code beinahe fehlerfrei ist.
Um deine Fragen zu beantworten.

1. Wenn du in deinem Code, an der Wurzel (html) das "lang" Attribut benutzt hast, ist es nicht notwendig, dass du deinen Meta Tags eine Default Sprache zuweist. Diese Vorgehensweise ist veraltet. Mit anderen Worten, entferne language Tag aus dem Code (Die Stelle auf die der Validator verwiesen hat)

2. Das ist kein Fehler, sondern nur eine Information. Daher musst du dich nicht damit beschäftigen.

3. Dasselbe Problem wie beim ersten Fall. Da du anscheinend doch "lang" Attribut benutzt hast, kannst du an dieser Stelle ebenfalls language Tag entfernen.

Sprache

Hallo

Das hier ist ein Beispiel, für dein lang Attribut. Setz es einmal oben ein und dann brauchst du an keiner weiteren Stelle Sprachangaben zu erstellen.

Suche

Neueste Kommentare

  • 1 week 4 days ago
    How to Renew Let’s Encrypt SSL Certificate on Plesk via Ubuntu Shell

    Let’s Encrypt will only accept a wildcard via DNS challenge. 

    If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success. 

  • 2 weeks 4 days ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 2 weeks 6 days ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 3 weeks 6 days ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 1 month 1 week ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 1 month 1 week ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 1 month 1 week ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 1 month 1 week ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 1 month 1 week ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 2 months 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem: