Breaking

Latihan6.html

Materi : Latihan6.html


Silakan copy paste ke notepad dan simpan dengan nama latihan6.html. 
Kemudian jalankan menggunakan browser.



<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Page Description">
        <title>Table with Border</title>
    </head>
    <body>
        <h1>Table with Border Example</h1>
        <table border="1">
            <tr>
                <th>Heading 1</th>
                <th>Heading 2</th>
            </tr>
            <tr>
                <td>Col 1</td>
                <td>Col 2</td>
            </tr>
        </table>
        
        <hr>
        <table border="1">
            <tr>
                <th>ID</th>
                <th>Name</th>
            </tr>
            <tr>
                <td>1</td>
                <td>John Smith</td>
            </tr>
            <tr>
                <td>2</td>
                <td>Walter Junior</td>
            </tr>
        </table>
<h1>Table with Border Example</h1>
        <table border="1">
            <tr>
                <th>Heading 1</th>
                <th>Heading 2</th>
            </tr>
            <tr>
                <td>Col 1</td>
                <td>
                    <table border="1">
                        <tr>
                            <th>Heading 1</th>
                            <th>Heading 2</th>
                        </tr>
                        <tr>
                            <td>Col 1</td>
                            <td>Col 2</td>                
                        </tr>
                    </table>
                </td>                
            </tr>
        </table>
    </body>
</html>



Output