简体   繁体   中英

The W3C Markup Validation Service says a <body> tag is not allowed

When validating my page (https://www.slamgmt.com), it says:
document type does not allow element "body" here

The body tag is the only tag in the HTML root tag other than the head tag. I have no idea why it's failing.
The change that caused this was switching from XHTML1.0 Strict to XHTML1.0 Frameset. It validates in Strict, but not in the looser Frameset? I'm so confused.

Frameset documents contain a <frameset> not <body> .

It is Transitional that is Strict + things that should generally be avoided.

  • Strict — modern documents
  • Transitional — documents partially converted from 1995 code to modern code
  • Frameset — framesets

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM