Principles for writing better HTML code - PowerPoint PPT Presentation

Loading...

PPT – Principles for writing better HTML code PowerPoint presentation | free to view - id: 3acfcf-MjVlY



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

Principles for writing better HTML code

Description:

This pdf is made by generating the ideas for writing clean HTML code – PowerPoint PPT presentation

Number of Views:230
Slides: 13
Provided by: jasonaldein

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: Principles for writing better HTML code


1
12 Principles to keep your code clean
By http//www.psd2htmlwordpress.com
2
Advantages of Clean Coding
  • Less amount of bugs will be there due to clean
    coding which will lead to better website design
  • With less amount of HTML code it will be easier
    for the developer to judge what code is doing
    what.
  • Loading time of the website will be fast
  • Saves time and money

3
Strict DOCTYPE
  • It is an instruction to the web browser about
    what version of HTML the page is written in.
  • DOCTYPE Declaration

4
Character set amp encoding characters
  • Properly encodation of funny characters must be
    done to avoid any misinterpretation

5
Proper indentation
  • Proper indentation must be done as it is easier
    to read and debug
  • Always indent one tab

6
Keep your CSS and JavaScript external
  • Use external CSS and JavaScript
  • Future pages can link to them
  • Changing the design on multiple pages become easy

7
Nest tags properly
  • Nesting of tags must be done properly
  • Opened tags must be closed in the reverse order.
    E.G. ltigtltbgtThis is my sentence of text.lt/bgtlt/igt

8
Eliminate unnecessary divs
  • Minimize the use of div tag
  • Make debugging and editing easier.

9
Use better naming conventions
  • Use meaningful naming conventions

10
Validate
  • Run the code through the ol validator machine to
    pick up small mistakes
  • Validated code is certain to outlive
    non-validated code.

11
Contact Info
  • PSD to HTML Wordpress
  • www.psd2htmlwordpress.com
  • Y8,Block EP,Sec v
  • Salt Lake, Kol 700091,India
  • PH 913340200838
  • Emailinfo_at_psd2htmlwordpress.com

12
  • Thank You
About PowerShow.com