Write a HTML program. 1. Write a HTML program to create hyperlink in a webpage. OR 2. Write a HTML program using following specification: Roll No. Subject Marks 1 IT 50 2 Account 7... Write a HTML program. 1. Write a HTML program to create hyperlink in a webpage. OR 2. Write a HTML program using following specification: Roll No. Subject Marks 1 IT 50 2 Account 70 3 English 80. Write a HTML program using following specification.
Understand the Problem
The question is asking for a program in HTML that either creates a hyperlink in a webpage or generates a table containing specified data (Roll No, Subject, Marks). This requires knowledge of HTML syntax and structure.
Answer
Use <a href='URL'>link text</a> for hyperlinks. Use <table> with <tr>, <th>, and <td> for tables.
To create a hyperlink: <a href='https://example.com'>Visit Example</a>
. To create a table: <table border='1'><tr><th>Roll No.</th><th>Subject</th><th>Marks</th></tr><tr><td>1</td><td>IT</td><td>50</td></tr><tr><td>2</td><td>Account</td><td>70</td></tr><tr><td>3</td><td>English</td><td>80</td></tr></table>
Answer for screen readers
To create a hyperlink: <a href='https://example.com'>Visit Example</a>
. To create a table: <table border='1'><tr><th>Roll No.</th><th>Subject</th><th>Marks</th></tr><tr><td>1</td><td>IT</td><td>50</td></tr><tr><td>2</td><td>Account</td><td>70</td></tr><tr><td>3</td><td>English</td><td>80</td></tr></table>
More Information
Hyperlinks are created using anchor tags in HTML, which require an 'href' attribute. Tables in HTML are structured with a series of nested tags to define rows and cells.
Tips
Common mistakes include omitting the closing tag for hyperlinks and incorrect nesting of table tags.
Sources
- HTML Links Hyperlinks - W3Schools - w3schools.com
- HTML Tables – Table Tutorial with Example Code - freeCodeCamp - freecodecamp.org
AI-generated content may contain errors. Please verify critical information