Skip to content

Instantly share code, notes, and snippets.

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

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>

hello

<img src="https://fleep.io/blog/wp-content/uploads/2014/07/github_icon.png" 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>

hello

<img src="https://fleep.io/blog/wp-content/uploads/2014/07/github_icon.png" width=400px border=10 />

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