Home / Programs / Write HTML code for this table
🚀 Programming Example

Write HTML code for this table

👁 634 Views
💻 Practical Program
📘 Step Learning
Write HTML code for this table
Write HTML code for this table
Visual explanation related to the programming example.

💻 Program Code

<!DOCTYPE html>
<html>
    <head>
        <title>Practice</title>
    </head>
    <body>
        <table border="1" cellpadding="10" cellspacing="0">
            <tr>
                <td rowspan="2">Student Name</td>
                <td rowspan="2">Course</td>
                <td colspan="2" align="center">Hours</td>
            </tr>
            <tr>
                <td>Credit</td>
                <td>Contact</td>
            </tr>
            <tr>
                <td>Adam</td>
                <td>Programming</td>
                <td>4</td>
                <td>5</td>
            </tr>
            <tr>
                <td>Harry</td>
                <td>ITC</td>
                <td>4</td>
                <td>5</td>
            </tr>
            <tr>
                <td>Jill</td>
                <td>English</td>
                <td>3</td>
                <td>3</td>
            </tr>
            <tr>
                <td>Tom</td>
                <td>Math</td>
                <td>3</td>
                <td>3</td>
            </tr>
        </table>
    </body>
</html>
                        

🖥 Program Output

no
                            

📘 Explanation

no
📚 Learning Subject

Master Programming Through Practical Examples

Improve your coding logic, problem-solving skills and programming confidence by practicing real-world examples with explanations.

🎯 How to learn from this example

First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.

🔥 Practice suggestion

Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.