Development:XHTML
From MoodleDocs
XHTML Strict 1.0
Moodle output must be compliant with XHTML Strict 1.0. This means:
- No tables for pure layout.
- No frames
- etc
Styling
- Make sure you provide enough CSS ids and classes to enable a designer to modify everything with CSS.
- Never use inline styles
- If you need to make basic style definitions for a module, put them in a file called styles.php in that module. This will be included into every theme.
Moodle API
- Use the functions in lib/weblib to do as much as possible (print_header(), print_box() etc)
- This API will change a lot in Moodle 2.0. See: Development:Navigation_2.0