Last active
September 22, 2016 13:05
-
-
Save rightsaidjames/0723df6a5dd77344014abdaa9d578865 to your computer and use it in GitHub Desktop.
Barebones HTML demo - styling the body without a <body> tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>Barebones HTML Test</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<p>If you can see this as white text on a black background, then your browser can successfully parse HTML documents without <em>html</em>, <em>head</em> or <em>body</em> tags, and can apply basic styles to a <em>body</em> tag that doesn't actually exist in the source code.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { background-color: black; } | |
p { color: white; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a very basic demo in response to:
https://twitter.com/seb_ly/status/778565978519138304
(which links to:
https://twitter.com/seb_ly/status/778565978519138304)
(which links to:
https://twitter.com/peterc/status/778561848450904064)