Welcome to Talking HTML, an audio/video internet thing for web developers who are just starting out.
Indentationmake sure it’s consistentensures readability of the code, maps out what you are doing and what element is nested whereMake sure you’re naming your id’s and classes consistentlythey need to make sense and not just be garbled dumpster firesMake sure your code writing program uses colors for different styles of codeelements, attributes, php vs html vs javascriptwill help to identify individual aspects of code fasterDon’t be afraid to use the enter buttonspace between content sections can help keep your code sortedUse multiple CSS documents when creating responsive designsex – 1 style sheet for cell phones, 1 style sheet for tablets, 1 style sheet for large screens and then 1 style sheet for regular sized screensmake sure all of your files are sorted and named properlyno empty foldersfolders need to have an index.html pagefiles need to be named appropriatelyyour portfolio page shouldn’t be called “job stuff”leads to messy url’s and takes longer to find if you forget what you named thingsUse comments to specify code snippets and entire sections of your codecommenting on your code can help you remember what your code does when looking at it. More importantly it helps others figure out what you’re doing if you pass a project onex – comment what is navigation, sidebar, body, footer, special contentcomment on what code actually doesYou can always use programs after the fact to take the spacing out of the CSS style sheets
Please go to iTunes and Stitcher and rate the show! Ratings get listeners!!
http://www.Webdevpod.com for all the content and links
DreamHost promo code – tnpw
The post Eps 8: Clean Up Your Code – Talking HTML appeared first on Schaffen Creative.