Html style tag doesn't work within a label

<head>
<style>
h1 {
color: blue;
font-family: verdana;
font-size: 300%;
}
p {
color: red;
font-family: courier;
font-size: 160%;
}
</style>
</head>
<body>

This code doesn’t work when I put it inside a label (with the html support option enabled)

Kodular identifies these tags as text.

h1 {
color: blue;
font-family: verdana;
font-size: 300%;
}
p {
color: red;
font-family: courier;
font-size: 160%;
}

Could anyone explain ?
Note: I did use the paragraph & heading tags for the text.

Label is not an HTML viewer. It uses a very basic markup language for .

If you want structure… Webviewer is the way to go. You can shrink it and make it look like a label.

I love it when people push the boundaries, and try to make gold from eggs, however a simple search would prevent such a clear waste of effort.

5 Likes

I first started my experiment with the style tag only. But google said that the style tag should be inside a head tag.That’s how it became complicated. Inline CSS works, but when we use it like the method above, it wont.

1 Like