Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:06:14+00:00 2026-06-03T06:06:14+00:00

Good afternoon all, I’ve just realised that this piece of code validates as 100%

  • 0

Good afternoon all,

I’ve just realised that this piece of code validates as 100% valid HTML5:

<!doctype html>
<html>
  <title>asd</title>
  <script src="Js.js"></script>
  <script>alert('1');</script>
</html>

MDN states that the permitted parent elements of the <script> tag is:

Any element that accepts metadata elements, or any element that accepts phrasing content. (source)

I was wondering does anyone know what does a metadata element mean? What does phrasing content mean?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:06:15+00:00Added an answer on June 3, 2026 at 6:06 am

    Elements belonging to the metadata content category modify the presentation or the behavior of the rest of the document, set up links to others documents, or convey other out of band information.

    Elements belonging to this category are <base>, <command>, <link>, <meta>, <noscript>, <script>, <style> and <title>.

    Source: https://developer.mozilla.org/en/HTML/Content_categories#Metadata_content

    The reason why your document validates even without <head> and <body> is that they became optional in HTML5. Actually, even <html> is optional so the following code is valid HTML5, too:

    <!doctype html>
    <title>asd</title>
    <script src="Js.js"></script>
    <script>alert('1');</script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good afternoon all, I have a Java applet that I wish to embed on
Good afternoon all, I am building a function that takes a string as input,
Good afternoon all. I am aware that if we close() an java.io.OutputStream , it
Good afternoon all, I have a class which looks like this: public class Grapheme
Good afternoon all, I was wondering what's the reason that public class test<T> {
Good Afternoon All, I have a wizard control that contains 20 textboxes for part
Good afternoon to all, I have this scenario: I am using SQL Server 'BulkInsert'
Good afternoon all, I was wondering why is it that android.app.Activity.onTrimMemory couldn't be overridden?
Good afternoon all, I was taught that when a function returns, The variables (within
Good Afternoon All, I have written an SSIS 2005 package that contains a conditional

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.