Skip to content

Instantly share code, notes, and snippets.

@ariellephan
Last active August 16, 2016 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ariellephan/0e869e20279c256928d73181ca5d71a7 to your computer and use it in GitHub Desktop.
Save ariellephan/0e869e20279c256928d73181ca5d71a7 to your computer and use it in GitHub Desktop.
Front End Best Practices
1. Write semantic and accessible HTML5
Goals:
+ Avoid div soup/code bloat
+ Accessibiity
+ Improve SEO
a/ Semantic aka has meaning
http://html5doctor.com/downloads/h5d-sectioning-flowchart.pdf
b/ Content models:
https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#kinds-of-content
c/ Document Outlines and headings
https://gsnedders.html5.org/outliner/
d/ ADA: tradeoffs like no faux elements
2. Workflow
3. Style Guide
a/ Naming Conventions:
b/ Consistent Formatting with EditorConfig
c/ LSG: Fabrikator
d/ Comments and Documentation
4. Modular CSS:
BEM
5. Tools:
a/ Atom:
+ Plugins: Emmet
b/ Sublime
c/ EditorConfig: define and maintain consistent coding styles btw IDEs
6. Testing:
a/ Regression Testing:
+ Tools: PhantomCSS
+ How to: use with style guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment