Embed code element - Custom HTML not parsing correctly

Hi

I seem to be having an issue with h2 header styles not parsing correctly whilst using the embed code element.

Basically I need an h2 header inline with the continuing paragraph text and have at the moment defined the code below.

The code runs correctly in the w3schools try it function so I'm not sure where I am going wrong as no matter what I try none of the h2 parameters are parsed in the embed code element.

<style>

body {
 background-color: #FFFFFF;
}

h2 {
 font-family: 'Times New Roman', Times, sans-serif;
 font-size: 1.125em;
 color: #FF0000;
 font-weight: bold;
 text-align: left;
  display: inline;
}

p {
    font-family: 'Times New Roman', Times, sans-serif;
  font-size: 1.125em;
 color: #000000;
 font-weight: normal;
 text-align: left;
  display: inline;
}
</style>
<body>

<h2>start of paragraph to be tagged as h2 header</h2>
<p>remainder of text following on inline from h2 header here</p>

</body>

2,042 Views
Message 1 of 3
Report
2 REPLIES 2
Square

We can't troubleshoot custom code, but I would recommend removing the "body" tags since those are already included within any page on your site (they wrap all of the content of a page).

1,918 Views
Message 4 of 3
Report

It's not about troubleshooting custom code - My query is more to do with the fact that if the syntax is in fact correct; which it may well not be as I'm a complete novice at this but as Weebly leaves a great deal to be desired with SEO factors I'm forced to add custom code as a workaround.   If it actually isn't being parsed correctly which means it's a bug which needs a ticket assinged then fixed.

In the meantime I have coded it differently and got it working...

1,638 Views
Message 4 of 3
Report