Title: Syntax error in HTML code
Last modified: September 29, 2019

---

# Syntax error in HTML code

 *  Resolved [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/)
 * (@cbdfactum)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/)
 * Hi,
 * you have an error in the HTML code generation. [https://validator.w3.org/nu/?doc=https%3A%2F%2Fcbdfactum.com%2F#l1314c13](https://validator.w3.org/nu/?doc=https%3A%2F%2Fcbdfactum.com%2F#l1314c13)
 * Check the error:
 *     ```
       Error: Element style not allowed as child of element body in this context.
       (Suppressing further errors from this subtree.)
   
       From line 1315, column 7; to line 1315, column 13
   
       pt>↩</div><style>.maxbu
       ```
   
 * And this is the line:
 *     ```
       <style>.maxbutton-1.maxbutton.maxbutton-cbd-categories{position:relative;
       text-decoration:none;display:inline-block;vertical-align:middle;
       border-color:#a9bf16;width:180px;height:30px;border-top-left-radius:22px;
       border-top-right-radius:22px;border-bottom-left-radius:22px;
       border-bottom-right-radius:22px;border-style:solid;border-width:2px;
       background-color:rgba(169, 191, 22, 1);-webkit-box-shadow:0px 0px 2px 0px #333;
       -moz-box-shadow:0px 0px 2px 0px #333;
       box-shadow:0px 0px 2px 0px #333}.maxbutton-1.maxbutton.maxbutton-cbd-categories:hover{border-color:#475a23;
       background-color:rgba(71, 90, 35, 1);-webkit-box-shadow:0px 0px 2px 0px #475a23;
       -moz-box-shadow:0px 0px 2px 0px #475a23;
       box-shadow:0px 0px 2px 0px #475a23}.maxbutton-1.maxbutton.maxbutton-cbd-categories .mb-text{color:#fff;font-size:13px;
       text-align:center;font-style:normal;font-weight:normal;padding-top:7px;
       padding-right:0px;padding-bottom:0px;padding-left:0px;
       line-height:1em;box-sizing:border-box;display:block;background-color:unset}.maxbutton-1.maxbutton.maxbutton-cbd-categories:hover .mb-text{color:#fff}↩
       </style>↩
       ```
   
 * Is there a way you can fix this in one of the next updates? May be it impacts
   the behavior in a negative way.
 * Thank you
    -  This topic was modified 6 years, 8 months ago by [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/).
    -  This topic was modified 6 years, 8 months ago by [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntay-error-in-html-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-11981462)
 * Hi,
 * The location of the style tag is very intentional, near the bottom of the page.
   Would we put it in the top of the document (head section), SEO-tools would start
   to complain about unneeded output so early.
 * The options for the free version are in the bottom ( recommended, fastest ) or
   just next to the button – which would give the same error.
 * That said, the PRO version has an option to load the styling output as if it 
   was a CSS file, which would solve this problem.
 *  Thread Starter [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/)
 * (@cbdfactum)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-11981577)
 * Hi, sorry, but I do not agree that the free version doesn’t match an international
   standard as W3C is:
    [https://en.wikipedia.org/wiki/World_Wide_Web_Consortium](https://en.wikipedia.org/wiki/World_Wide_Web_Consortium)
 * I think, I can even expect in the free version you put the code in that way that
   W3C validator doesn’t complain.
 * When each plugin developer would do it your way then it would be really a mess.
   The other errors are from the Theme developer and they reacted already. Please
   no offence!
 * So, is there a way you can generate in the **free version** a code which is validated
   by W3C?
 * Thank you
 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-11982655)
 * It’s a bit more complicated than that.
 * Mozilla (MDN) considers style in body correct – [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style)
 * From HTML 5.2 and onwards, style is allowed in body – [https://www.w3.org/TR/html52/document-metadata.html#the-style-element](https://www.w3.org/TR/html52/document-metadata.html#the-style-element)
 * Also check this discussion for more details – [https://github.com/whatwg/html/issues/1605](https://github.com/whatwg/html/issues/1605)
 * If there would be an easy work-around I would put it on my list, but in this 
   case I see it as according to the international standards, but not the exact 
   way What-WG decided to do it (to controversy).
 *  Thread Starter [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/)
 * (@cbdfactum)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-11983271)
 * OK, I understand.
 * What about this:
    Would it be possible to change the features-policy and move
   it from the PRO version to the free version so it would be solved?
 *  Thread Starter [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/)
 * (@cbdfactum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-12315671)
 * Any progress?
 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-12318610)
 * No, we are not working on this currently.
 *  Thread Starter [Peter-VARGA](https://wordpress.org/support/users/cbdfactum/)
 * (@cbdfactum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-12339922)
 * Hi,
 * I quote:
    “_That said, the PRO version has an option to load the styling output
   as if it was a CSS file, which would solve this problem._”
 * **Can we agree to this procedure:**
    When I purchase your PRO version and your
   plugin doesn’t get validated by W3C validator [https://validator.w3.org/](https://validator.w3.org/)
   you refund me the money? I would check it out immediately when I get the license
   so I need only 1 day. When your plugin gets validated then all is OK and I am
   another happy client.
 * Looking forward.
 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-12340967)
 * No problem. If you’re not happy with something and we can’t work out a solution,
   that not an issue.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Syntax error in HTML code’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/syntay-error-in-html-code/#post-12340967)
 * Status: resolved