Copy link to clipboard
Copied
When I try and validate html pages I get the following
line 15 link element between head and body
Any help would be appreciated
Copy link to clipboard
Copied
The message says it all, in HTML5, there is no need for the type attribute
This means that you can safely remove the attribute
Copy link to clipboard
Copied
Thanks Ben , its line 15 Im having trouble with though.
Copy link to clipboard
Copied
LINE 15: CSS links belong INSIDE the <head> </head> tags, not outside them.
Copy link to clipboard
Copied
Thanks Nancy
It seems to cause more issues
Copy link to clipboard
Copied
Not really. The issues are already there but because you have far too many validation errors, the online validation service is choking on them all & giving up after LINE 48: Cannot recover...
Without seeing a URL, I suggest you spend some time learning proper HTML5 syntax and structure so you can identify your errors and fix them. DW and Bootstrap both require a good understanding of code basics. See links below:
- https://www.w3schools.com/html/
- https://www.w3schools.com/css/
- https://www.w3schools.com/js/
Good luck!
Copy link to clipboard
Copied
Thanks Nancy I understand. Good advice.
Copy link to clipboard
Copied
Those yellow triangles are only warnings NOT errors and as such don't really matter a lot. You can of course oblige the validator by adhering to its recommendations of what to use and what not to use but warnings will not cause you any issues, it's errors (the white triangles, which rather strangely have the lesser visual impact) that need to be taken more seriously.
Validators should be used as a means of help/guidance when coding but you need a good knowledge of coding to understand what you can safely ignore if you choose to do so. Plus validators have the habit of flagging something in the code as a warning or error, when it's not or even not picking up errors at all, so DON'T depend on a validator, use it only as guidance.