From 334fa6ba0b6b3d4ced4b963980febde56547bd12 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 16 Feb 2021 23:32:48 -0500 Subject: Add HTML reminders --- html.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 html.md diff --git a/html.md b/html.md new file mode 100644 index 0000000..b8b7d43 --- /dev/null +++ b/html.md @@ -0,0 +1,24 @@ +# HTML stuff + +## DOM manipulation + + // create new element + document.createElement('button') + + // append child + element1.appendChild(element2) + +## Elements + +### Button + +By default, a button has type `reset` or `submit`, both of which reload the +page. To avoid reloading: + + + +### Checkbox + +To check by default: + + -- cgit v1.2.3