Naming conventions for HTML objects (ID, name, form fields, styles)
Posted: Tue Dec 30, 2014 8:32 am
Here are some guidelines how to name objects, IDs, flexgrid areas names, form fields, styles in Style Manager, etc:
1. Do not use spaces, '&', '+', '-', '!', '?', '#', dots, quotes, brackets or other special (Unicode) 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'
4. The ID may not be empty.
Note that these are standard HTML rules and not specific to WYSIWYG Web Builder.
1. Do not use spaces, '&', '+', '-', '!', '?', '#', dots, quotes, brackets or other special (Unicode) 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'
4. The ID may not be empty.
Note that these are standard HTML rules and not specific to WYSIWYG Web Builder.