<!DOCTYPE html>
...
<style scoped>
/* css */
</style>
Line 883, Column 17: Element style not allowed as child of element body in this context.
(Suppressing further errors from this subtree.)
<style scoped>...
Contexts in which element style may be used:
If the scoped attribute is absent: where metadata content is expected.
If the scoped attribute is absent: in a noscript element that is a child of a head element.
If the scoped attribute is present: where flow content is expected, but before any other flow content other than inter-element whitespace and style elements, and not as the child of an element whose content model is transparent.
Content model for element body:
Flow content.
Anladığım kadarıyla olmasıdır 'scoped' özelliği, stil etiketinin belgenin başı dışında olmasını sağlar. Peki validator neden bu kadar mutsuz?
(Ben Wordpress kullanıyorum ve bu kod sadece kafasına koydu olamaz neden olan bir eklenti, tarafından üretilmektedir.)
DÜZENLEME: Bu doğrulamaz -
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>title</title>
</head>
<body>
<script type="text/javascript"></script>
<style scoped></style>
</body>
</html>
Ancak, komut dosyası etiketi stil etiketinden sonra gider. Bunun nedeni nedir? Bir HTML5 denetleyicisi olarak hareket ettiklerinde
Hey! W3C doğrulama bununla çalışır, ancak div içindeki stiller artık çalışmıyor :( – user2718671