| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| html, body { | |
| margin: 0; | |
| } | |
| .box { | |
| width: 200px; | |
| height: 100px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <script> | |
| console.log("(1) Inline script tag to test nth-child indexing."); | |
| </script> | |
| <div class="box" style="background-color: red;"></div> | |
| <div class="box" style="background-color: green;"></div> | |
| <div class="box" style="background-color: blue;"> | |
| <section class="box" style="display: none;"></section> | |
| </div> | |
| <section class="box" style="background-color: cyan;"></section> | |
| <script> | |
| console.log("(2) Inline script tag to test nth-child indexing."); | |
| </script> | |
| </body> | |
| </html> |