Skip to content

Instantly share code, notes, and snippets.

@abalter
Last active May 12, 2023 11:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abalter/46df1b79e9f429342972477d7c20cebc to your computer and use it in GitHub Desktop.
Save abalter/46df1b79e9f429342972477d7c20cebc to your computer and use it in GitHub Desktop.
<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