EDUCATION
   
 
EDUCATION :- Computer :- HTML TUTORIAL :- Lession 7
 

Q: How do I embed MIDI or .wav files?

Because different browsers handle background sounds in different ways, embedding a MIDI or .wav file so it automatically plays as your background sound must use two different HTML tags: EMBED and BGSOUND.

If you want the music to repeat over and over again forever, insert this code in you file:

<EMBED SRC="sourceURL" HIDDEN="true" LOOP="true" AUTOSTART="true">
<NOEMBED>
<BGSOUND SRC="sourceURL" LOOP="-1">
</noembed>

If you want the music to play once and then stop, insert this code in your file

<EMBED SRC="sourceURL" HIDDEN="true" AUTOSTART="true">
<NOEMBED>
<BGSOUND SRC="sourceURL">
</noembed>

Replace sourceURL with the URL of the MIDI or .wav file you want to play. You may want to place the code toward the end of your HTML file so that the rest of the page loads first.

Q: How can I get MIDI music on my homepage?

To allow others to play MIDI files from your page, just upload the MIDI files to your site and create a link from one of your pages to each file. Anyone who clicks on the link will hear the music (assuming they have the proper player.)

Q: How can I put .wav sound files on my page?

To allow others to play .wav files from your page, just upload the .wav files to your site and create a link from one of your pages to each file. Anyone who clicks on the link will be able to download and listen to the sound file (assuming they have the proper player.)

Q: How do I play movies on my page?

To play movies on your page, just upload the movie file to your site and create a link from one of your pages to the movie. Anyone who clicks on the link will see the movie (assuming they have the proper player.)

Q: Can I use Quicktime movies on my page?

Yes, you can use Quicktime movies. Just upload the Quicktime file to your site and create a link from one of your pages to the movie. Anyone who clicks on the link will see the movie (assuming they have the Quicktime player.)

Q: What are tables?

Tables are a way of organizing information on a web page. Here is an example:

Title

Author

Price

The Complete Works of William Shakespeare

Shakespeare, William
$99.95

The Complete Works of the Earl of Oxford
DeVere, Edward
$0.02

Q: How do I create a table?

You can create a table using web page software, or directly in HTML.

To begin and end the table, you use the <TABLE> and </table> tags. You can include various attributes in the tag to set the width, background color, and other options.

To begin and end each table row, you use the <TR> and </tr> tags. For each column, you use the <TD> and </td> tags. Example:

<TABLE WIDTH="75%" BGCOLOR="#FFFF88" ALIGN="center" BORDER="4">
<tr>
<td>Row 1 Column 1</td>
<td>Row 1 Column 2</td>
</tr>
<tr>
<td>Row 2 Column 1</td>
<td>Row 2 Column 2</td>
</tr>
</table>

This is how the table looks:

Row 1 Column 1

Row 2 Column 1
Row 1 Column 2
Row 2 Column 2