Skip to content

Instantly share code, notes, and snippets.

@rsp

rsp/script.html Secret

Last active July 12, 2020 12:00
Show Gist options
  • Save rsp/977d142fd21bfd0f070a3e6b9758ac99 to your computer and use it in GitHub Desktop.
Save rsp/977d142fd21bfd0f070a3e6b9758ac99 to your computer and use it in GitHub Desktop.
Script tag in HTML5 vs XHTML
<!-- find incorrect html below -->
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>Script tag in HTML5</title>
<script>
alert(1 < 2, '<\/script>');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment