Update the example for modifying element attributes to use the correct method `element.setAttribute(attribute, value)`.
This change ensures the documentation is accurate and consistent with standard practices.
Add detailed documentation on DOM manipulation using JavaScript, including examples for modifying attributes, classes, styles, and creating elements. This documentation aims to provide a comprehensive guide for developers to understand and implement DOM manipulations effectively.