Naming conventions for HTML objects (ID, name, styles)

Frequently Asked Questions about Quick 'n Easy Web Builder
Locked
User avatar
Pablo
Site Admin
Posts: 2628
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Naming conventions for HTML objects (ID, name, styles)

Post by Pablo » Sat Jun 25, 2011 12:00 pm

Here are some guidelines how to name objects, IDs, styles in Style Manager, etc:

1. Do not use spaces, '&', '+', '-', dots, quotes or other special characters in the name, keep them simple like:
"Image001"
or
"index_image001"
or
"This_is_and_image"

2. Use underscores to connect words.

Important: do not use dashes because this will break JavaScript functionality!

3. Do not start names with a number '123name' is not valid. Instead use 'name123'

Locked

Who is online

Users browsing this forum: No registered users and 1 guest