Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi.

Similar presentations


Presentation on theme: "1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi."— Presentation transcript:

1 1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi MARA (UiTM), Kedah | A2-3039 | sitinurbaya@kedah.uitm.edu.my | 019-5710562 |

2 Hypertext Markup Language  Objects & Images: Adding image, applets, audio, video, animation & virtual reality on the Web  Frames  Marquee  Labels & Controls  Input Elements, Dropdown List, Text Area  Using Fieldsets 2 Upon completion of this chapter, you will learn:

3 Hypertext Markup Language  HTML ‘s features multimedia are:  Images  Applets  Audio  Video  HTML documents itself 3 Introduction Types of inclusionSpecific ElementGeneric Element Object object Image object Applet (deprecated) object Audio Object HTM Video object HTML document/file object

4 Hypertext Markup Language Why we have to use ?  It supports new and future media types: –used to include objects such as images, audio, videos, Java applets, ActiveX, PDF, and Flash.  intended to replace the and elements. –Do not happen  bugs and a lack of browser support.  The support in browsers depend on the object type. –major browsers use different codes to load the same object type.  Solution: –Nested object elements. –If the object element is not displayed, the code between the and tags will be executed. 4

5 Hypertext Markup Language  Browser Support  The tag is partially supported in all major browsers –major browsers use different codes to load the same object type –Try all browser for your output 5

6 Hypertext Markup Language Displaying A Picture Displaying A Web Page 6

7 Hypertext Markup Language Displaying A Sound Displaying A Video classid ? 7

8 Hypertext Markup Language New in HTML5  tag is used to specify audio on an HTML document. –Specific Attributes: src, preload, autoplay, loop and controls –Global Attributes: class, id, title and more –Event Handler Content Attributes: onchange, onclick and more.  tag is used to specify video on an HTML document. –Specific Attributes: src, poster, preload, autoplay, controls, width and height –Global Attributes: class, id, title and more –Event Handler Content Attributes: onchange, onclick and more.  tag is used for embedding an external application or interactive content into an HTML document. –Specific Attributes: src, type, width and height –Global Attributes: class, id, title and more –Event Handler Content Attributes: onchange, onclick and more. 8 + +

9 Hypertext Markup Language Displaying A Sound Displaying A Video 9 + + + <embed name=“tq“ src="tq.mp3“ width="300“ height="90" loop="false“ hidden="false“ autostart="false"> text

10 Hypertext Markup Language 10 Images Sample: include an image using Object Sample Code Include a PNG Image using img

11 Hypertext Markup Language 11 Images Sample: include an image as background image Background Image Image as page background. Make sure u can see the texT!

12 Hypertext Markup Language 12 Applets Sample: include an applet using applet element (deprecated) Sample: include an applet using object Java applet that draws animated bubbles. <OBJECT codetype="application/java" classid="java:Bubbles.class" width="500" height="500"> Java applet that draws animated bubbles.

13 Hypertext Markup Language  Frame can be used to display more than one HTML documents in the same web browser window  How? Example 13 Frames htmldoc1.html htmldoc2.html htmldoc3.html htmldoc4.html

14 Hypertext Markup Language  Each HTML document is called a frame, each frame is independent to each others  Disadvantages -Because of more than one HTML documents in a single web browser window, developer has to alert and keep track all the documents -Difficult to print the entire page 14 Frames

15 Hypertext Markup Language 15 Frames TagDescription Defines a set of frames Defines a sub window (a frame) Defines a noframe section for browsers that do not handle frames Defines an inline sub window (frame)

16 Hypertext Markup Language Vertical Frameset 16 Frames Frameset Page html_frame2.html, 25% html_frame3.html, *% html_frame1.html

17 Hypertext Markup Language Horizontal Frameset 17 Frames Frameset Page html_frame2.html, 25% html_frame3.html, *% html_frame1.html

18 Hypertext Markup Language 18 Frames html_frame2.html, 30% html_frame3.html, 70% html_frame1.html

19 Hypertext Markup Language 19 Frames html_frame2.html, 30% html_frame3.html, 70% html_frame1.html

20 Hypertext Markup Language Some frame attributes to be consider when applying frame within your html page - frameborder attributes within the tag * define the thickness of the frameset border - noresize attributes within the tag * define the whether the frame border can be resized or not - scrolling attributes within the tag * define the whether the frame border can be scroll or not 20 Frames

21 Hypertext Markup Language  iframe = inline frame, (include|create) a frame inside an HTML page, which is similar function of  Even though both tags provide similar function, but they owned different attributes 21 vs iframe vs object <iframe height="450“ width="450 " src="http://www.yahoo.com"> iframe vs object <object name="test“ type="text/html" height="450" width="450" border="0" data="http://www.yahoo.com">

22 Hypertext Markup Language The concept is like this 22 Targeting Links to Frames Menu [Chap 1][Chap 2][Chap 3] Chapter pages will be displayed here

23 Hypertext Markup Language  Create an HTML page with 2 rows using frame tag  1 st frame (top): include an HTML page that contains title and hyperlinks & give it name, let say “top”  2 nd frame (bottom): give it name, let say “bottom” & include default HTML page here  Next, create an HTML page contains title and 3 hyperlinks. Make sure you set the hyperlink’s target to “bottom” for all 3 hyperlinks  Next, please create 3 different HTML pages for all 3 hyperlinks, please save them with different file name 23 Targeting Links to Frames

24 Hypertext Markup Language Solution 24 Targeting Links to Frames Full Frame Demo <frame src="html_menu_top.html" name="top"> <frame src="html_default.html" name="bottom">

25 Hypertext Markup Language Solution 25 Targeting Links to Frames Please select menu here [Chap 1][Chap 2][Chap 3] Please select menu here [ Chap 1 ] [ Chap 2 ] [ Chap 3 ] File name: html_menu_top.html

26 Hypertext Markup Language Solution 26 Targeting Links to Frames Your menu is up there! Your menu is up there! File name: html_default.html

27 Hypertext Markup Language Solution 27 Targeting Links to Frames Chapter 1 Chapter 1 File name: html_chap1.html Chapter 2 Chapter 3 Chapter 2 File name: html_chap2.html Chapter 3 File name: html_chap3.html

28 Hypertext Markup Language The concept is like this 28 Targeting Links to Frames ( ) Select Your Menu Here [Chap 1][Chap 2][Chap 3] Hyperlinks will be here Chapter pages will be displayed here inside inline frame

29 Hypertext Markup Language  Create an HTML page with a title and 3 hyperlinks  Make sure you set the target for all 3 hyperlinks to “display”  Place tag below the hyperlinks, set the height and width to “450”, and, give it a name as “display” 29 Targeting Links to Frames ( )

30 Hypertext Markup Language Solution 30 Targeting Links to Frames ( ) Select Your Menu Here [Chap 1][Chap 2][Chap 3] iframe full demo Select Your Menu Here [ Chap 1 ] [ Chap 2 ] [ Chap 3 ]

31 Hypertext Markup Language Create scrolling display Attributes: 31 Marquee (... ) Attribute Description width How wide the marquee is height How tall the marquee is direction Which direction the marquee should scroll behavior Type of scrolling scrolldelay Delay between each scroll

32 Hypertext Markup Language Attributes: Only Opera and IE fully support hspace and vspace attribute 32 Marquee (... ) AttributeDescription scrollamount How many marquee will appear loop How many times to loop bgcolor Background color hspace Horizontal space around the marquee vspace Vertical space around the marquee

33 Hypertext Markup Language Examples 33 Marquee (... ) I Love Programming I Love Programming I Love Programming I Love Programming

34 Hypertext Markup Language Bibliography (Book) Knuckles (2001). Introduction to Interactive Programming on the Internet using HTML & Javascript. John Wiley & Sons, Inc. Bibliography (Websites) http://www.w3schools.com/html/default.asp http://www.quackit.com/html/ http://www.htmlcodetutorial.com/ http://www.pagetutor.com/html_tutor/index.html 34


Download ppt "1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi."

Similar presentations


Ads by Google