The necessary tags in an HTML5 document

0

I usually use a series of labels that I think are the most used and the most efficient within the tag .

I would like to know if I am missing any important tags, or if I am using others that are no longer necessary for a good html file.

<html lang = "idioma">
<title>El título de la página</title>
<meta name="description" content="Descripción de la página" />
<meta name="keywords" content="Palabras clave" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta name=”author” content=”El creador”>
<meta name="owner" content="El propietario" />
<meta name="copyright" content="El propietario" />
<meta name="revisit-after" content="period">
<meta name="robots" content="index, follow">
<link rel="alternate" hreflang="es/en..." href="Web en idioma correspondiente">
<link rel="canonical" href="">
<link rel="icon" href="icono" />
<meta name="google" content="nositelinkssearchbox" />
<meta name="google-site-verification" content="..." />

and then I would put all the tags that link with the styles and scripts.

    
asked by Pelayo 20.09.2018 в 09:34
source

1 answer

4

Meta tag Keywords: Google does not use the meta tag Keywords, since 2009 Google's official version of the meta tag keywords is that it does not look at it, does not use it and has no effect on positioning. It has been used so much to make spam that they have decided to ignore it. How do I tell Google what my keywords are? Well, putting keywords where Google thinks the keywords of an article should go. You can see this article with many useful tips: here .

How to know if any of the meta tags are obsolete ?: You can download an add-on for your browser called Html Validator , which can help you see which one is obsolete or not, for example if you are using a meta to define a default language, you could get an error like this:

error: Using the “meta” element to specify the document-wide default
language is obsolete. Consider specifying the language on the root
element instead.

At line 6, column 9: <meta http-equiv="Content-Language" content="en-us" />

In HTML5, you can define lang for each element. That means that if you have a div that contains Mandarin Chinese, simply define a lang="zh-CN" attribute for that div , as <div lang = "zh-CN"> .

The plugin is for Firefox and Chrome .

    
answered by 20.09.2018 / 10:49
source