Created
August 16, 2017 06:52
-
-
Save wnas/024111ca95bcec2841f642c1ddbfa36f to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/jufimer
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: helvetica, sans-serif; | |
max-width: 400px; | |
margin: 0 auto; | |
} | |
body,button { | |
font-size: 1em; | |
} | |
button { | |
padding: 1em; | |
display: block; | |
width: 100% | |
} | |
</style> | |
</head> | |
<body> | |
<form action="https://wnas.nl"> | |
<p>this button will take you to wnas.nl as that is the action of the form</p> | |
<button type="submit">wnas.nl</button> | |
<p>the last button however has a formaction attribute which points it to wnas.nl/about.</p> | |
<button formaction="https://wnas.nl/about">wnas.nl/about</button> | |
</form> | |
<script id="jsbin-source-css" type="text/css">body { | |
font-family: helvetica, sans-serif; | |
max-width: 400px; | |
margin: 0 auto; | |
} | |
body,button { | |
font-size: 1em; | |
} | |
button { | |
padding: 1em; | |
display: block; | |
width: 100% | |
} | |
</script> | |
</body> | |
</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
body { | |
font-family: helvetica, sans-serif; | |
max-width: 400px; | |
margin: 0 auto; | |
} | |
body,button { | |
font-size: 1em; | |
} | |
button { | |
padding: 1em; | |
display: block; | |
width: 100% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment