Home/HTML/HTML Templates Submission on DevItems

HTML Templates Submission on DevItems

[devshare]

HTML code guideline.

# Each Section should be properly commented. Such as Header Section, Slider section, Footer Section etc. You can use Start and end.
# Dont Use any inline css in your HTML files.
# Call JS files at footer
# Use “nav” tags for all navigation in the template.
# Remove blank space between your code blocks.
# There should be no console error.
# Your files should be WC validor passed. Link

CSS Style Gudelines
Follow this link to make easy readable css file. Follow – http://www.smashingmagazine.com/2008/05/improving-code-readability-with-css-styleguides/

jQuery Performance Link
# Always Use the Latest Version
# Combine and Minify Your Scripts
# Use IDs Instead of Classes
# Dont create multiple $(document).ready() events or multiple $(window).load() events. Please consolidate all code that should occur within a single event.
# Consider using the preferred .on() rather than .click(), .bind(), .hover(), etc. Sample: Instead of using this,

$('.elementClass').click(function() { // code 
You should use this
});
$('.elementClass').on('click', function() { // code
});

[devshare]

By | 2016-05-05T11:05:39+00:00 August 31st, 2015|HTML|Comments Off on HTML Templates Submission on DevItems

About the Author: