190 likes | 275 Views
Creating your Webpage with tables. This is a 2 column by 1 row table!. This is the code for the table!. <table width="400" border="1" align=" center " bgcolor ="white"> < tr > <td>< img src =" alfie.jpg“ width =200 height=400 ></ td>
E N D
This is the code for the table! <table width="400" border="1" align="center" bgcolor="white"> <tr> <td><imgsrc ="alfie.jpg“ width =200 height=400 ></td> <td><h1><center>Here is Alfie</h1><p>lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing lots of writing</p></td> </tr> </table>
Table Making • Click on the table layout you would like to do! Menu
1 Row and 2 Columns • Go to your web page and copy the code below • Replace the Section# with your HTML • Save your page • View your page <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> </tr> </table> Menu
1 Row and 3 Columns • Go to your web page and copy the code below • Save your page • View your page <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> <td>Section3</td> </tr> </table> Menu
1 Row and 4 Columns • Go to your web page • Copy the code • Replace the Section# with your HTML • Save your page • View your page <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> <td>Section3</td> <td>Section4</td> </tr> </table> Menu
2 Rows and 2 Columns • Go to your web page and copy the code below • Save your page • Replace the Section# with your HTML • View your page <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> </tr> <tr> <td>Section3</td> <td>Section4</td> </tr> </table> Menu
2 Rows and 3 Columns <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> <td>Section3</td> </tr> <tr> <td>Section4</td> <td>Section5</td> <td>Section6</td> </tr> </table> • Go to your web page • Copy the code • Save your page • Replace the Section# with your HTML • View your page Menu
3 Rows and 2 Columns <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> </tr> <tr> <td>Section3</td> <td>Section4</td> </tr> <tr> <td>Section5</td> <td>Section6</td> </tr> </table> • Go to your web page • Copy the code • Save your page • Replace the Section# with your HTML • View your page Menu
<br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> <td>Section3</td> <td>Section4</td> </tr> <tr> <td>Section5</td> <td>Section6</td> <td>Section7</td> <td>Section8/td> </tr> <tr> <td>Section9</td> <td>Section10</td> <td>Section11</td> <td>Section12</td> </tr> </table> 3 Rows & 4 Columns • Go to your web page • Copy the code • Save your page • Replace the Section# with your HTML • View your page Menu
3 Rows & 3 Columns <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> <td>Section3</td> </tr> <tr> <td>Section4</td> <td>Section5</td> <td>Section6</td> </tr> <tr> <td>Section7</td> <td>Section8</td> <td>Section9</td> </tr> </table> • Go to your web page • Copy the code • Save your page • Replace the Section# with your HTML • View your page Menu
2 Rows & 4 Columns <br> <table width="400" border="1"> <tr> <td>Section1</td> <td>Section2</td> <td>Section3</td> <td>Section4</td> </tr> <tr> <td>Section5</td> <td>Section6</td> <td>Section7</td> <td>Section8</td> </tr> </table> • Go to your web page • Copy the code • Save your page • Replace the Section# with your HTML • View your page Menu
Adding Text in a Table • All features go inside the <td> tags • Adding normal text would look like this: <td>This is my website about Cocker Spaniels and our own dog called Alfie</td> • Adding paragraph text would look like this: <td><p>This is my website about Cocker Spaniels and our own dog called Alfie</p></td> Menu
Adding a Title in a Table • All features go inside the <td> tags • Adding a title would look like this: <td><h1>Welcome to my Website</h1></td> Menu
Adding Hyperlinks in a Table • All features go inside the <td> tags • Adding a hyperlink would look like this: <td><a href=http://www.bbc.co.uk>Link to BBC </a></td> Menu
Adding an Image in a Table • All features go inside the <td> tags • Adding an image would look like this: <td><imgsrc ="alfie.jpg"width =200 height=400 ></td> I have added in width and height to resize the image! Menu
Adding a YouTube video in a Table • All features go inside the <td> tags • You need to copy the embed code from YouTube into your tag • You then need to add in http at the front • Adding a YouTube video would look like this: <td><iframe width=“560” height=“315” src=http://www.youtube.com/embed/thry4562dd2frameborder=“0” allowfullscreen<iframe></td> Menu