Note, i am not a Markdown purist but the insertion of HTML in Markdown is often considered to be bad form.
- You aren’t using a
type
. It’s aclass
. - Where are you linking the stylesheet in the Markdown document?
I also strongly suggest you do not mess with stylesheets during the learning and development of CSS styling on a document. Just put the styling in the document as shown here so you can edit, save, and immediately see the changes.
<style type="text/css">
.poetry {
padding: 1em;
font-family: Georgia, Garamond, serif;
font-style:italic;
font-size:110%;
line-height: 1.6em;
background-color: rgba(230,210,0,.3);
color: rgba(100, 80,0,1);
}
</style>
When you’re satisfied, copy and paste it into an external stylesheet, if you so desire. But bear in mind, there is no requirement to use an external stylesheet.