File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,24 +16,25 @@ <h1>AI-Powered Online Toolbox</h1>
1616 </ header >
1717 < main >
1818 < section id ="tools ">
19- < div >
20- < h2 > What's My IP Address</ h2 >
19+ <!-- Add ARIA roles for better accessibility -->
20+ < div role ="region " aria-labelledby ="ip-title ">
21+ < h2 id ="ip-title "> What's My IP Address</ h2 >
2122 < button onclick ="getMyIP() "> Check</ button >
2223 < p id ="my-ip "> Your IP will appear here.</ p >
2324 </ div >
24- < div >
25- < h2 > IP Lookup / Geolocation</ h2 >
25+ < div role =" region " aria-labelledby =" lookup-title " >
26+ < h2 id =" lookup-title " > IP Lookup / Geolocation</ h2 >
2627 < input type ="text " id ="ip-input " placeholder ="Enter an IP address " />
2728 < button onclick ="lookupIP() "> Lookup</ button >
2829 < p id ="ip-info "> Results will appear here.</ p >
2930 </ div >
30- < div >
31- < h2 > Internet Speed Test</ h2 >
31+ < div role =" region " aria-labelledby =" speed-test-title " >
32+ < h2 id =" speed-test-title " > Internet Speed Test</ h2 >
3233 < button onclick ="runSpeedTest() "> Run Test</ button >
3334 < p id ="speed-results "> Speed test results will appear here.</ p >
3435 </ div >
35- < div >
36- < h2 > Ping</ h2 >
36+ < div role =" region " aria-labelledby =" ping-title " >
37+ < h2 id =" ping-title " > Ping</ h2 >
3738 < input type ="text " id ="ping-url " placeholder ="Enter URL " />
3839 < button onclick ="ping() "> Ping</ button >
3940 < p id ="ping-results "> Ping results will appear here.</ p >
You can’t perform that action at this time.
0 commit comments