Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<div color="blue" border="10" font-size="48px">hello</div>
<div style="color:red; border:10px; font-size:48px">hello</div>

Which Styles Work?

Inline CSS Style Attribute

<div style="color: red; font-size: 48; font-family: 'Verdana'; float: right; border: 1px dotted green">hello</div>


<img src="" style="width: 400px; border: 2px dotted green" />

Inline Style Attributes (old way)

<div color=red font="Verdana" border=10 fontsize=48px size=48px>hello</div>


<img src="" width=400px border=10 />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment