Sunday, 22 May 2011

Learn PHP online : PHP Day-32

Head Marquee bgsound Embed Autoplay Loop Playcount Anchor

                                            

Head Marquee bgsound Embed Autoplay Loop Playcount Anchor


HTML stands for HYPERTEXT MARKUP LANGUAGE, which is used to design the WebPages. HTML is case insensitive language and error less language. Every HTML file must contain <html>(open tag) and </html> (closing tag)
Head :   By using this tag we can send some information through the HTTP head location.
Example Script

<html>
<head>
HTML Notes
</head>
</html>

Write this script in notepad and save the notepad with “.html” extension. And open the file you can see the HTML Notes output.
Marquee :  By using this tag we can scroll some content(text/image) on the webpage.
Example HTML Script

<html>
<marquee>
HTML Script Notes
</marquee>
</html>
Write this script in notepad and save the notepad with “.html” extension. And open the file you can see the HTML Notes scrolling.
bgsound : By using this tag we can play some background music on the WebPages.
Example Script
<HTML>
<HEAD>
<TITLE> HTML Script Notes  </TITLE>
</HEAD>
<BODY>
<BGSOUND SRC="file:///F:\Demo\xyz.mp3" LOOP=10>
</BODY>
</HTML>
Embed :  By using this tag we can embed external plugging to the video files and flash files on the web pages.
Autoplay : By using this property we can stop the execution of the embed file, when the page is loaded.
Loop : By using this tag we can run the embedded file continuously on the web page. Default value of the loop is false.
 Example Script
<html>
<embed src=”HTMLNOTES.avi” loop=false”>
</html>

Playcount : By using this property we can repeat the embedded file on the specified number of times.
<html>
<embed src=”HTMLNotes.avi” autoplay= false” playcount=”3”>
</html>


Anchor : By using this tag we can display the hyperlinks in the webpages. “href” is an attribute used to provide the path of the link.
Example HTML Script
<html>
<body link="red" alink="green" vlink="black">
<a href="http://www.danphp.com">Goog</a>
<a href="http://www.indiansite.com.au">Goog</a>
<a href="http://www.allpctips.com">Goog</a>
</body>
</html>

No comments:

Post a Comment

Visual comparison of the two methods, creating a simple table.

Option 1, using PHP: // PHP $html = '<table>' ;     foreach ( $data as $row ) {     $html .= '<tr>...