Add documentation for the optional title attribute to the code examples