Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.19 KB

conventions.md

File metadata and controls

19 lines (14 loc) · 1.19 KB

<<<Back | Next>>>

Conventions

As we’ve gone through the different components of creating a webpage, you have likely picked up on some conventions or industry standards for creating a webpage using HTML. However, before proceeding, let's outline them.

  • Some tags are self-closing, while others require a closing tag. Self-closing tags are called void tags, and are generally self-closing because you wouldn't need or want to add another element within a tag.
  • Use lower case. There is no techical reason to do this, but it is good practice because it makes it easier to scan code.
  • Your code should be nested. There is no technical reason for this either - blank space has no meaning in html; however, this also makes it easier to scan the code quickly - which is particularly helpful when you run into errors!

With respect to points 2 and 3, it is good to develop habits that keep with these conventions now, in case you find yourself in a professional codeing environment in the future.

<<<Back | Next>>>