reading-notes


Project maintained by Razan-am Hosted on GitHub Pages — Theme by mattgraham

HTML & CSS

Chapter 6: “Tables”

Basic Table Structure

Example:

<table>

<tr>

<td>15</td>

<td>15</td>

<td>30</td>

` </tr>`

</table>

Table Headings

<table>

<tr>

<th></th>

<th scope="col">Saturday</th>

<th scope="col">Sunday</th>

</tr>

<tr>

<th scope="row">Tickets sold:</th>

<td>120</td>

<td>135</td>

</tr>

</table>

Spanning Columns

<table>

<tr>

<th>Monday</th>

<td colspan="2">Geography</td>

<td>Math</td>

<td>Art</td>

</tr>

</table>

Spanning Rows

<table>

<th>6pm - 7pm</th>

<td rowspan="2">Movie</td>

<td>Comedy</td>

<td>News</td>

</tr>

</table>

Long Tables

<An over all about tabels>

=======================================================

JAVASCRIPT

Chapter 3 (first part): “Functions, Methods, and Objects”

- Function and method :

1. Functions :consist of a series of statements that have been grouped together because they perform a specific task.

If different parts of a script repeat the same task, you can reuse the function.

Example:

//variable

var msg = 'Sign up to receive our newsletter for 10% off!';

//function

function updateMessage() {

var el = document.getElementByld('message'};

el .textContent = msg;}

//calling the function

updateMessage(};

<img src=imag/7.PNG width=150 hight=250> <img src=imag/8.PNG width=200 hight=350> <img src=imag/9.PNG width=150 hight=250> <img src=imag/10.PNG width=200 hight=350>


References:

@Jon Duckett/HTML & CSS

@Jon Duckett/JAVASCRIPT