Re: Consulta

 Francisco Sánchez (francisco@neurinomavestibular.es) wrote:

> Estimados señores: no se si podrían ayudarme a solucionar el error en la
> validación HTML, en mi página: https://neurinomavestibular.es/
>
>
>
>    1. *Error**: Element *script* must not have attribute *defer* unless
>    attribute *src* is also specified.*
>
> From line 12, column 377; to line 12, column 411
>
> endif]--> <script data-no-optimize="1" defer>!funct
>
>
> The validator simply describes a restriction imposed by HTML
specifications:
 https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer

Consider putting the script code into a separate file and using <script
src=...>. Alternatively, put the <script> element at the end of the HTML
document. (The effect is not exactly the same as using defer, but probably
sufficiently similar.)

Jukka

Received on Wednesday, 16 March 2022 09:11:53 UTC