Is it valid HTML to have two <style> elements inside your HTML <head> tag?

Viewed 10585

Is it valid to have two <style> tags inside of an HTML head tag?

For example I am trying to write an HTML page for email clients with no external stylesheets added. Due to the way our template system works it is much easier for us to have

<head>
 <style>
  .someStyle{}
 </style>
 <style>
  .someOtherStyle{}
 </style>
</head>

instead of this...

<head>
 <style>
  .someStyle{}
  .someOtherStyle{}
 </style>
</head>

If option 2 is the only way of doing this I will do that but option 1 for various reasons works better for our framework code.

3 Answers
Related