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

  • 3 months ago
    [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

    Same with Drush 13 + PHP 8.3

  • 3 months ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    Initializing...

    Error : Failed to install the required package 'RPM' by using APT. Please install it manually. 

    Exit


    Solution:

  • 3 months ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:

  • 3 months ago
    No route found for the specified format html. Supported formats: csv, json. (Drupal Routing)

    I have a view with a path like /my-content-export to export entivies as JSON or CSV.

  • 3 months 1 week ago
    InvalidArgumentException: The controller for URI "/admin/flush" is not callable.

    admin_toolbar 3.5.2 is the reason. Patch coming ...

  • 1 month 3 weeks ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

    Drupal 10.4:

  • 4 months ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr

    Tools & Settings >> Security Policy :

     Allow only secure FTPS connections 

  • 5 months 2 weeks ago
    MariaDB Server Performance Optimieren

     

    /usr/sbin/mariadbd --help --verbose | grep "query.*size"
  • 5 months 2 weeks ago
    MariaDB Server Performance Optimieren

    Commandline:

    systemctl restart mariadb
  • 5 months 2 weeks ago
    MariaDB Server Performance Optimieren

    After my changes in /etc/mysql/db-performance.cnf