Last active
January 6, 2017 04:58
-
-
Save shancarter/46ed173d21861fbecda63e7e2cd643c6 to your computer and use it in GitHub Desktop.
Mini HTML
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
<h1>This is a Head | |
<h2>This is an h2 | |
This is an implied p element. It's just like html with significant whitespace. | |
This is new paragraph. | |
What about <b>{inline} tags? | |
And that's about it, although it would allow you to do more complicated stuff. | |
<h2>More Complicated Stuff | |
<p.foo>You can add classes to elements. | |
<div> | |
You can also nest content.This is a child paragraph. | |
This is another child paragraph. | |
Back to the parent context. | |
What about if you want to <a href=http://google.com>{link} to stuff? | |
Want to do a list? | |
<ul> | |
<li>First item | |
<li>Second item | |
<p#id.class>You can add an id as well as a class. | |
<input type=checkbox checked>Attributes are cool too. | |
<h2>Comments | |
Obviously, comments would be allowed. //This would not be in the output. | |
//Neither would this line. | |
<h2>Scripts | |
What about blocks of code? | |
<script>{{ | |
let x = 25; | |
let y = 15; | |
console.log() | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment