I am validating my web page code in the W3Schools and it keeps giving me this error message:
Error: Start tag
head
seen but an element of the
In your third line you have a <meta charset="utf-8">
before your <head>
start tag. Having a meta element after the <html>
start tag automatically opens the head element before the meta element, which causes your explicit <head>
tag to be detected as a duplicate.
Simply move your <meta charset="utf-8">
underneath the <head>
tag to resolve this error:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>table,th, td{border:1.5px solid red;} td{ padding: 15px;}</style>
<title> Index </title>
</head>
(You can also remove the <head>
tag entirely and it would validate, too, but having a </head>
end tag without its start tag looks funny, even if the start tag isn't strictly necessary.)