GithubHelp home page GithubHelp logo

w3c validation error about inspire HOT 4 CLOSED

inspirehep avatar inspirehep commented on May 23, 2024
w3c validation error

from inspire.

Comments (4)

jmartinm avatar jmartinm commented on May 23, 2024

I personally have never seen a type attribute in a style tag. If it is mandatory, W3 does not do a very good job in their documentation http://www.w3schools.com/tags/tag_style.asp

from inspire.

jmartinm avatar jmartinm commented on May 23, 2024

Also http://www.w3schools.com/tags/att_style_type.asp

In HTML5, the type attribute is no longer required for CSS. The default value is "text/css".

It's the same for <script> tag. In HTML5 type is not required.

from inspire.

tsgit avatar tsgit commented on May 23, 2024

Hi Javier,

thanks for responding.

Sure, it's a harmless omission and doesn't apply for HTML5 any longer.

However I happened to alter HTML yesterday and wanted to verify my changes and this harmless problem might obscure actual problems and we should strive to validate. This is more about procedure and attention to detail than a missing style attribute. I agree that many of the example snippets on the web are sloppy about this, though the normative spec is unambiguous

prod pages declare to be XHTML-1.0-Transitional

http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Transitional

from inspire.

tsgit avatar tsgit commented on May 23, 2024

#243

from inspire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.