Skip to content
Browse files

added info on self-closing tags

  • Loading branch information...
1 parent a7568b6 commit 00c3168371147145dad51783f6c020d7309575e7 @Zyten Zyten committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 html-elements.md
View
8 html-elements.md
@@ -1,7 +1,11 @@
-Most HTML elements have an opening tag and a closing tag. Opening tags look like this: `<h1>`.
+Most HTML elements have an opening tag and a closing tag.
-Closing tags look like this: `</h1>`.
+Opening tags look like this: `<h1>` and Closing tags look like this: `</h1>`.
Note that the only difference between opening and closing tags is that closing tags have a slash after their opening angle bracket.
+There are also some HTML elements that are self-closing.
+
+For example, the image tag `<img />` and the input tag `<input />`.
+
Try it here! http://www.freecodecamp.com/challenges/say-hello-to-html-elements

0 comments on commit 00c3168

Please sign in to comment.
Something went wrong with that request. Please try again.