| <!DOCTYPE HTML> |
| <html lang="en-us"> |
| <head> |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| <title>Colors Example</title> |
| <script src="colors.js"></script> |
| <script type="text/javascript"> |
| console.log('Rainbows are fun!'.rainbow); |
| console.log('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); |
| console.log('Chains are also cool.'.bold.italic.underline.red); |
| </script> |
| </head> |
| <body> |
| <script> |
| document.write('Rainbows are fun!'.rainbow + '<br>'); |
| document.write('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse + '<br>'); |
| document.write('Chains are also cool.'.bold.italic.underline.red); |
| </script> |
| </body> |
| </html> |