HTML meta tags: πώς λειτουργούν
Υπάρχουν πολλές μετα-ετικέτες HTML. Σε αυτή την πρακτική συμβουλή, θα εξετάσουμε ποια είναι τα πιο σημαντικά, γιατί τα χρειάζεστε και πώς λειτουργούν.
Γιατί χρησιμοποιούνται οι μετα-ετικέτες HMTL;
Οι μετα-ετικέτες - ή οι μετα-λεπτομέρειες - παρέχουν χρήσιμες οδηγίες για τον διακομιστή ιστού, το πρόγραμμα περιήγησης ή διάφορες μηχανές αναζήτησης. Πληροφορίες σχετικά με τον συγγραφέα ή το περιεχόμενο αποθηκεύονται εδώ, το οποίο διαβάζεται και χρησιμοποιείται από διάφορα προγράμματα.
- Υπάρχουν πέντε σημαντικές μετα-λεπτομέρειες που δεν πρέπει να ξεχάσετε. Αυτά αναφέρονται στην επόμενη ενότητα.
- Άλλες χρήσιμες μετα-ετικέτες βοηθούν το πρόγραμμα περιήγησης να επεξεργάζεται πληροφορίες και έτσι να εκτελεί οποιεσδήποτε οδηγίες.
- Ορισμένες ετικέτες είναι σημαντικές για τη βελτιστοποίηση μηχανών αναζήτησης: Οι μηχανές αναζήτησης αναζητούν μέσω αυτών των πληροφοριών και τις χρησιμοποιούν για να εμφανίζουν πληροφορίες στα ερωτήματα αναζήτησης. Για παράδειγμα, ο τίτλος και η περιγραφή διαβάζονται από αυτές τις πληροφορίες και εμφανίζονται.
- Ο τίτλος, η περιγραφή και οι λέξεις-κλειδιά είναι σημαντικές πληροφορίες για τις μηχανές αναζήτησης. Για παράδειγμα, αν κάνετε αναζήτηση στο Google, αυτές οι πληροφορίες θα εμφανιστούν στα αποτελέσματα αναζήτησης. Όσο πιο ακριβείς είναι οι πληροφορίες, τόσο καλύτερες είναι οι πιθανότητες κατάταξης στο Google και σε άλλες μηχανές αναζήτησης.
- Στις ετικέτες μπορείτε επίσης να δώσετε οδηγίες σχετικά με το πόσο συχνά και ποιες σελίδες θα πρέπει να συλλαμβάνουν οι μηχανές αναζήτησης.
- Όλες οι μετα-πληροφορίες δίνονται στην επικεφαλίδα της ιστοσελίδας. Έτσι, αυτά ανήκουν στις ετικέτες HTML και ,
Αυτές είναι οι έξι πιο σημαντικές μετα-ετικέτες HTML
Εδώ αναφέρουμε τις έξι πιο σημαντικές μετα-ετικέτες HTML και το νόημά τους. Αυτά δεν πρέπει να ξεχαστούν καθώς περιέχουν σημαντικές πληροφορίες.
- Η πιο σημαντική είναι η ετικέτα τίτλου, η οποία στην πραγματικότητα δεν είναι μετα-ετικέτα με την πραγματική έννοια. Είναι η επαγγελματική κάρτα του ιστότοπου και αποτελεί τον τίτλο. Αυτή η ετικέτα είναι επίσης σημαντική για τις μηχανές αναζήτησης και εμφανίζεται εκεί. Παράδειγμα: Οι πιο σημαντικές μετα-ετικέτες
- Ποια θα ήταν η ιστοσελίδα χωρίς περιγραφή; Υπάρχει επίσης η μετα-ετικέτα περιγραφής . Όπως και ο τίτλος, η περιγραφή εμφανίζεται στη μηχανή αναζήτησης. Μια καλή περιγραφή πρέπει να είναι μεταξύ 150 και 250 χαρακτήρων, που αντιστοιχεί σε περίπου 30 λέξεις. παράδειγμα:
- Για να βρεθεί καλύτερα με τις μηχανές αναζήτησης, υπάρχουν οι λέξεις-κλειδιά μετα-ετικέτας. Εδώ εισάγετε λέξεις-κλειδιά που σχετίζονται με τη σελίδα. Οι περισσότερες μηχανές αναζήτησης εμφανίζουν μόνο τις πρώτες 20 λέξεις-κλειδιά. Είναι σημαντικό εδώ να αναφέρουμε το πιο σημαντικό στις πρώτες 10 κουκκίδες. Οι λέξεις-κλειδιά χωρίζονται με κόμμα. παράδειγμα:
- Οι μηχανές αναζήτησης αναζητούν τον ιστότοπο και το αναπροσαρμόζουν. Ωστόσο, αν δεν θέλετε ολόκληρος ο ιστότοπος να είναι ευρετηριασμένος, έχετε την επιλογή να το αποτρέψετε αυτό με τα ρομπότ meta tag. Αυτό υποδεικνύει εάν και πώς μπορούν να αναπροσαρμόζονται οι σελίδες. Με την προδιαγραφή χωρίς ευρετήριο, απαγορεύεται η ευρετηρίαση. παράδειγμα:
- Με την επανεξέταση του meta tag - αφού υποδείξετε πότε η "αράχνη" της μηχανής αναζήτησης μπορεί να δείξει ξανά τη σελίδα. Πρέπει να ορίσετε μια περίοδο - για παράδειγμα "7 ημέρες" για 7 ημέρες. Είναι σημαντικό να σημειωθεί ότι η Google δεν χρησιμοποιεί αυτήν την ημέρα, αλλά χρησιμοποιεί εσωτερική ημερομηνία. παράδειγμα:
- Στον σημερινό κόσμο, είστε παντού παντού - ειδικά με τα smartphones. Μπορείτε να χρησιμοποιήσετε τη μετα-ετικέτα Viewport, ώστε αυτές οι συσκευές να μην προσελκύουν άμεσα τη σελίδα που βλέπετε . Αυτή η ετικέτα εξασφαλίζει ότι η σελίδα έχει κλιμακωθεί έτσι ώστε να εμφανίζεται τελείως στην οθόνη. Έτσι μπορείτε να πάρετε μια επισκόπηση του περιεχομένου και να μεγεθύνετε εάν είναι απαραίτητο. παράδειγμα:
Περισσότερες μετα-ετικέτες HTML
Υπάρχουν και άλλες ετικέτες που δεν είναι τόσο σημαντικές και παίζουν δευτερεύοντα ρόλο. Παραθέτουμε κάποιες από αυτές παρακάτω και δείξτε τι είναι πίσω από αυτές. Ωστόσο, αυτό είναι μόνο ένα μικρό δείγμα από τις πολλές ετικέτες που εξακολουθούν να υπάρχουν.
- Για να μπορούν οι μηχανές αναζήτησης να αντιστοιχίσουν τον ιστότοπο στη σωστή χώρα, υπάρχει η γλώσσα ετικετών. Το πλεονέκτημα πρέπει να είναι προφανές - γιατί ποια είναι η χρήση μιας ιστοσελίδας με γερμανικό περιεχόμενο που εμφανίζεται στη μηχανή αναζήτησης των ΗΠΑ; παράδειγμα: ή
- Όταν δημιουργείτε έναν ιστότοπο, συνήθως θέλετε να ορίσετε ποιος είναι ο δημιουργός. Υπάρχει επίσης ο συντάκτης ετικέτας. Αυτό διευκολύνει την προβολή στον κατάλογο προέλευσης, ο οποίος δημιούργησε και διαχειρίστηκε τη σελίδα. παράδειγμα:
- Αλλά τι γίνεται αν θέλετε να κάνετε ανακατεύθυνση σε άλλη σελίδα; Φυσικά, μπορείτε επίσης απλά να εργαστείτε με συνδέσμους. Ωστόσο, η ετικέτα ανανέωσης είναι αυτόματη . Εάν μια διεύθυνση URL έχει αλλάξει, μπορείτε να κάνετε ανακατεύθυνση από την παλιά διεύθυνση URL στη νέα διεύθυνση URL. παράδειγμα: , Αυτή είναι μια προώθηση μετά από 10 δευτερόλεπτα
- Για ιστότοπους με γλώσσα διαφορετική από την αγγλική, πρέπει να καθορίσετε μια κωδικοποίηση χαρακτήρων. Αυτό εμποδίζει την εμφάνιση σωστών παραμορφώσεων. παράδειγμα: , Δυστυχώς, αυτές οι πληροφορίες υποστηρίζονται μόνο από τα νεότερα προγράμματα περιήγησης. Για τα παλαιότερα προγράμματα περιήγησης χρησιμοποιήστε: