O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
<!DOCTYPE html> <html> <head> <title>Page 1</title> </head> <body> <h2>Welcome to Page 1</h2> <p>Click the link below to go to the Contact section on Page 2.</p> <a href="page2.html#contact">Go to Contact Section</a> </body> </html> <!DOCTYPE html> <html> <head> <title>Page 2</title> </head> <body> <h2>About Page 2</h2> <p>This is some content on page 2.</p> <p style="margin-top: 800px;">Scroll down for more content...</p> <h2 id="contact">Contact Section</h2> <p> You can contact us at: <br>Email: example@email.com <br>Phone: 123-456-7890 </p> </body> </html>
▶ Run Code
🖥 Output: