UNIT II Frames

Total Page:16

File Type:pdf, Size:1020Kb

UNIT II Frames UNIT II Frames : Introduction Frames divide a single browser window into multiple, independent regions, each of which can display a different HTML document. You begin by created FRAMESET document, which sets up the "layout" by establishing the number of frames, their position and other characteristics. This frameset document is structural only and does not contain any of the content that will appear on the final web page. It does however, specify a URL reference for each frame, which will be the HTML document, or "normal" web page that will be displayed within it. Hyperlinks in one frame can update the contents of another frame through the use of the TARGET attribute. Frames are controversial, however. Like many other web elements, such as background graphics, animations, and font colors, they can be poorly handled and often irritating, so give it some careful thought before you use them. Advantages of Frames 1. They allow parts of the screen to remain static while other parts scroll. This can be useful for navigation menus or logos that you don't want to scroll off the screen. 2. They can be handy when you want the user to be able to view a number of images chosen from a long list. 2. You can introduce material from different servers on the same page, simply by assigning the appropriate URL's. Disadvantages of Frames 1. Navigating through a framed site can be challenging for many users, as the forward and back buttons do not work as expected. 2. Bookmarking a framed site is difficult, as only the top level document is noted. Users have the ability to work around this by opening the frame of interest in a new window and bookmarking it, but they may not aware of that. 3. Since a framed page is loading more than one URL, it may load more slowly, particularly if calling upon different servers. 4. Frames present problems for search engine indexing. That said, let's get on with the exercise. The table below simulates a common layout on the web, consisting of a banner across the top of the browser window, with the remainder of the page divided into two columns. See example. For this exercise we need to create 4 documents, all within the same folder: 1. "frameset.html" - the frameset document itself. 2. "banner.html" - the banner that runs across the top of the browser window. 3. "column1.html - the page that will display in column one. This page will contain a hyperlink that will load an external web page into column two. 4. "column2.html" - the page that will display in column two when the frameset is first viewed. This page will be replaced by new content when the user clicks on the hyperlink in column one. Banner Column One Column Two frameset.html <HTML> <HEAD> Create the document head as usual, but without a body <TITLE>Frame Example</TITLE> tag. </HEAD> The first frameset defines the number of rows in the document and their height. This example creates two rows. The top row is 40 pixels high and the second can <FRAMESET rows="40,*"> vary in height. Values for height can be specified as an exact number of pixels, as a percentage, or can be variable with the use of an asterisk. Now indicate the source, or URL, of the web page to be displayed in the top row. In this example we'll use the <FRAME one we created called banner.html SRC="banner.html" name=top> Name=top simply identifies this particular frame. You may name it anything you like. Insert another frameset in the second row and specify two columns this time. Here the variables indicate <FRAMESET cols="230, *"> column width, and like row variables, can be expressed as the number of pixels, as a percentage, or can vary by using as asterisk. In this example we are setting the width of column one at 230 pixels and allowing column two to vary in width. <FRAME SRC="column1.html" name=col1> Give the URL source for each column, and name them. <FRAME SRC="column2.html" name=col2> </FRAMESET> Close both framesets. </FRAMESET> </HTML> Close the HTML tag, note there is no body tag to close 2. banner.html <HTML> <HEAD> <TITLE>Banner</TITLE> </HEAD> <BODY> Banner </BODY> </HTML> 3. column1.html <HTML> <HEAD> <TITLE>Column 1</TITLE> </HEAD> <BODY> <A HREF="http://www.life.uiuc.edu/" target=col2>Life Sciences</A> </BODY> </HTML> 4. column2.html <HTML> <HEAD> <TITLE>Column 2</TITLE> </HEAD> <BODY> This is Column 2 </BODY> </HTML> The <frameset> element HTML frameset tag and element 1. HTML frameset element defines a window within which subwindows can exist in the form of frames. 2. frame element starts with <frameset> tag and ends with </frameset> tag 3. A number of frames (subwindows) as well as framesets can be defined within frameset element. Syntax <frameset> </frameset> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/framset.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859- 1"> <title>HTML frameset tag example &gt; HTML tutorial | w3resource</title> </head> <frameset cols="33%,33%,33%"> <frameset rows="*,50%"> <frame src="page1.html"> <frame src="page2.html"> </frameset> <frame src="page3.html"> <frame src="page4.html"> </frameset><noframes></noframes> </html> The <frame> element he HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one. <iframe id="inlineFrameExample" title="Inline Frame Example" width="300" height="200" src="https://www.openstreetmap.org/export/embed.html?bbox=- 0.004017949104309083%2C51.47612752641776%2C0.00030577182769775396%2C51.478569 861898606&layer=mapnik"> The <noframes> element The <noframes> tag was used in HTML 4 to act as a fallback tag for browsers that did not support frames. What to Use Instead? Example Use the <iframe> tag to embed another document within the current HTML document: <iframe src="https://www.w3schools.com"></iframe> Images Audio and Video HTML5 features include native audio and video support without the need for Flash. The HTML5 <audio> and <video> tags make it simple to add media to a website. You need to set src attribute to identify the media source and include a controls attribute so the user can play and pause the media. Embedding Video Here is the simplest form of embedding a video file in your webpage − <video src = "foo.mp4" width = "300" height = "200" controls> Your browser does not support the <video> element. </video> The current HTML5 draft specification does not specify which video formats browsers should support in the video tag. But most commonly used video formats are − Ogg − Ogg files with Thedora video codec and Vorbis audio codec. mpeg4 − MPEG4 files with H.264 video codec and AAC audio codec. You can use <source> tag to specify media along with media type and many other attributes. A video element allows multiple source elements and browser will use the first recognized format − Live Demo <!DOCTYPE HTML> <html> <body> <video width = "300" height = "200" controls autoplay> <source src = "/html5/foo.ogg" type ="video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the <video> element. </video> </body> </html> This will produce the following result − Video Attribute Specification The HTML5 video tag can have a number of attributes to control the look and feel and various functionalities of the control − Sr.No. Attribute & Description autoplay 1 This Boolean attribute if specified, the video will automatically begin to play back as soon as it can do so without stopping to finish loading the data. autobuffer 2 This Boolean attribute if specified, the video will automatically begin buffering even if it's not set to automatically play. controls 3 If this attribute is present, it will allow the user to control video playback, including volume, seeking, and pause/resume playback. height 4 This attribute specifies the height of the video's display area, in CSS pixels. loop 5 This Boolean attribute if specified, will allow video automatically seek back to the start after reaching at the end. preload 6 This attribute specifies that the video will be loaded at page load, and ready to run. Ignored if autoplay is present. poster 7 This is a URL of an image to show until the user plays or seeks. src 8 The URL of the video to embed. This is optional; you may instead use the <source> element within the video block to specify the video to embed. width 9 This attribute specifies the width of the video's display area, in CSS pixels. Embedding Audio HTML5 supports <audio> tag which is used to embed sound content in an HTML or XHTML document as follows. <audio src = "foo.wav" controls autoplay> Your browser does not support the <audio> element. </audio> The current HTML5 draft specification does not specify which audio formats browsers should support in the audio tag. But most commonly used audio formats are ogg, mp3 and wav. You can use <source&ggt; tag to specify media along with media type and many other attributes. An audio element allows multiple source elements and browser will use the first recognized format − Live Demo <!DOCTYPE HTML> <html> <body> <audio controls autoplay> <source src = "/html5/audio.ogg" type = "audio/ogg" /> <source src = "/html5/audio.wav" type = "audio/wav" /> Your browser does not support the <audio> element. </audio> </body> </html> This will produce the following result − Audio Attribute Specification The HTML5 audio tag can have a number of attributes to control the look and feel and various functionalities of the control − Sr.No. Attribute & Description autoplay 1 This Boolean attribute if specified, the audio will automatically begin to play back as soon as it can do so without stopping to finish loading the data.
Recommended publications
  • Webgl™ Optimizations for Mobile
    WebGL™ Optimizations for Mobile Lorenzo Dal Col Senior Software Engineer, ARM 1 Agenda 1. Introduction to WebGL™ on mobile . Rendering Pipeline . Locate the bottleneck 2. Performance analysis and debugging tools for WebGL . Generic optimization tips 3. PlayCanvas experience . WebGL Inspector 4. Use case: PlayCanvas Swooop . ARM® DS-5 Streamline . ARM Mali™ Graphics Debugger 5. Q & A 2 Bring the Power of OpenGL® ES to Mobile Browsers What is WebGL™? Why WebGL? . A cross-platform, royalty free web . It brings plug-in free 3D to the web, standard implemented right into the browser. Low-level 3D graphics API . Major browser vendors are members of . Based on OpenGL® ES 2.0 the WebGL Working Group: . A shader based API using GLSL . Apple (Safari® browser) . Mozilla (Firefox® browser) (OpenGL Shading Language) . Google (Chrome™ browser) . Opera (Opera™ browser) . Some concessions made to JavaScript™ (memory management) 3 Introduction to WebGL™ . How does it fit in a web browser? . You use JavaScript™ to control it. Your JavaScript is embedded in HTML5 and uses its Canvas element to draw on. What do you need to start creating graphics? . Obtain WebGLrenderingContext object for a given HTMLCanvasElement. It creates a drawing buffer into which the API calls are rendered. For example: var canvas = document.getElementById('canvas1'); var gl = canvas.getContext('webgl'); canvas.width = newWidth; canvas.height = newHeight; gl.viewport(0, 0, canvas.width, canvas.height); 4 WebGL™ Stack What is happening when a WebGL page is loaded . User enters URL . HTTP stack requests the HTML page Browser . Additional requests will be necessary to get Space User JavaScript™ code and other resources WebKit JavaScript Engine .
    [Show full text]
  • Chapter 10 Document Object Model and Dynamic HTML
    Chapter 10 Document Object Model and Dynamic HTML The term Dynamic HTML, often abbreviated as DHTML, refers to the technique of making Web pages dynamic by client-side scripting to manipulate the document content and presen- tation. Web pages can be made more lively, dynamic, or interactive by DHTML techniques. With DHTML you can prescribe actions triggered by browser events to make the page more lively and responsive. Such actions may alter the content and appearance of any parts of the page. The changes are fast and e±cient because they are made by the browser without having to network with any servers. Typically the client-side scripting is written in Javascript which is being standardized. Chapter 9 already introduced Javascript and basic techniques for making Web pages dynamic. Contrary to what the name may suggest, DHTML is not a markup language or a software tool. It is a technique to make dynamic Web pages via client-side programming. In the past, DHTML relies on browser/vendor speci¯c features to work. Making such pages work for all browsers requires much e®ort, testing, and unnecessarily long programs. Standardization e®orts at W3C and elsewhere are making it possible to write standard- based DHTML that work for all compliant browsers. Standard-based DHTML involves three aspects: 447 448 CHAPTER 10. DOCUMENT OBJECT MODEL AND DYNAMIC HTML Figure 10.1: DOM Compliant Browser Browser Javascript DOM API XHTML Document 1. Javascript|for cross-browser scripting (Chapter 9) 2. Cascading Style Sheets (CSS)|for style and presentation control (Chapter 6) 3. Document Object Model (DOM)|for a uniform programming interface to access and manipulate the Web page as a document When these three aspects are combined, you get the ability to program changes in Web pages in reaction to user or browser generated events, and therefore to make HTML pages more dynamic.
    [Show full text]
  • Webgl: the Standard, the Practice and the Opportunity Web3d Conference August 2012
    WebGL: The Standard, the Practice and the Opportunity Web3D Conference August 2012 © Copyright Khronos Group 2012 | Page 1 Agenda and Speakers • 3D on the Web and the Khronos Ecosystem - Neil Trevett, NVIDIA and Khronos Group President • Hands On With WebGL - Ken Russell, Google and WebGL Working Group Chair © Copyright Khronos Group 2012 | Page 2 Khronos Connects Software to Silicon • Khronos APIs define processor acceleration capabilities - Graphics, video, audio, compute, vision and sensor processing APIs developed today define the functionality of platforms and devices tomorrow © Copyright Khronos Group 2012 | Page 3 APIs BY the Industry FOR the Industry • Khronos standards have strong industry momentum - 100s of man years invested by industry leading experts - Shipping on billions of devices and multiple operating systems • Khronos is OPEN for any company to join and participate - Standards are truly open – one company, one vote - Solid legal and Intellectual Property framework for industry cooperation - Khronos membership fees to cover expenses • Khronos APIs define core device acceleration functionality - Low-level “Foundation” functionality needed on every platform - Rigorous conformance tests for cross-vendor consistency • They are FREE - Members agree to not request royalties Silicon Software © Copyright Khronos Group 2012 | Page 4 Apple Over 100 members – any company worldwide is welcome to join Board of Promoters © Copyright Khronos Group 2012 | Page 5 API Standards Evolution WEB INTEROP, VISION MOBILE AND SENSORS DESKTOP OpenVL New API technology first evolves on high- Mobile is the new platform for Apps embrace mobility’s end platforms apps innovation. Mobile unique strengths and need Diverse platforms – mobile, TV, APIs unlock hardware and complex, interoperating APIs embedded – mean HTML5 will conserve battery life with rich sensory inputs become increasingly important e.g.
    [Show full text]
  • Khronos Open API Standards for Mobile Graphics, Compute And
    Open API Standards for Mobile Graphics, Compute and Vision Processing GTC, March 2014 Neil Trevett Vice President Mobile Ecosystem, NVIDIA President Khronos © Copyright Khronos Group 2014 - Page 1 Khronos Connects Software to Silicon Open Consortium creating ROYALTY-FREE, OPEN STANDARD APIs for hardware acceleration Defining the roadmap for low-level silicon interfaces needed on every platform Graphics, compute, rich media, vision, sensor and camera processing Rigorous specifications AND conformance tests for cross- vendor portability Acceleration APIs BY the Industry FOR the Industry Well over a BILLION people use Khronos APIs Every Day… © Copyright Khronos Group 2014 - Page 2 Khronos Standards 3D Asset Handling - 3D authoring asset interchange - 3D asset transmission format with compression Visual Computing - 3D Graphics - Heterogeneous Parallel Computing Over 100 companies defining royalty-free APIs to connect software to silicon Camera Control API Acceleration in HTML5 - 3D in browser – no Plug-in - Heterogeneous computing for JavaScript Sensor Processing - Vision Acceleration - Camera Control - Sensor Fusion © Copyright Khronos Group 2014 - Page 3 The OpenGL Family OpenGL 4.4 is the industry’s most advanced 3D API Cross platform – Windows, Linux, Mac, Android Foundation for productivity apps Target for AAA engines and games The most pervasively available 3D API – 1.6 Billion devices and counting Almost every mobile and embedded device – inc. Android, iOS Bringing proven desktop functionality to mobile JavaScript binding to OpenGL
    [Show full text]
  • 01 Creation of HTML Pages with Frames, Links, Tables and Other Tags Date
    www.vidyarthiplus.com Ex. No. : 01 Creation of HTML pages with frames, links, tables and other tags Date : AIM: To create a simple webpage using HTML that includes all tags. ALGORITHM: 1. Write a HTML program in the notepad with the tags such as A. FRAMES With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others. The Frameset Tag The <frameset> tag defines how to divide the window into frames. The Frame Tag The <frame> tag defines what HTML document to put into each frame. Example: <frameset cols="25%, 75 %"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> </frameset> Tags and their Description: <frameset> Defines a set of frames <frame> Defines a sub window (a frame) www.vidyarthiplus.com www.vidyarthiplus.com B. LINKS A hyperlink is a reference (an address) to a resource on the web. Example: <a href="http://www.w3schools.com/">Visit W3Schools!</a> The href Attribute The href attribute defines the link "address". The target Attribute The target attribute defines where the linked document will be opened. Tag and its Description: <a> Defines an anchor C. TABLES Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). The letters td stands for "table data," which is the content of a data cell. Example: <table border="1"> <tr> <td>Row 1, cell 1</td> <td>Row 1, cell 2</td> </tr> </table> Tags and their Description: <Table> Defines a table <th> Defines a table header <tr> Defines a table row <td> Defines a table cell 2.
    [Show full text]
  • 23-Introduction-To-CSS.Pdf
    Introduction to CSS Jerry Cain CS 106AX November 13, 2019 Introducing CSS • Recall that there are three technologies that are typically employed when implementing interactive web pages. – HTML: which dictates the structure and content of a web page – JavaScript: which implements animations and user interactivity and otherwise control the behavior of the elements – CSS: short for Cascading Style Sheets, controls layout, formatting, and presentation • Any nontrivial web application will require a large amount of HTML, CSS, and JavaScript. – As web applications grow in complexity, it’s important to decouple the HTML, CSS, and JavaScript as much as possible that that changes to an HTML document never break a CSS rule or compromise the execution of JavaScript event handler. – Web applications that successfully separate content, presentation, and interactivity are easier to modify and maintain. CSS Declarations • Web designers control the presentation of a page using one or more CSS declarations, each of which is structured like this: property-name: property-value; • The property name is one of several CSS keywords (567 according to https://www.w3.org) that identify some detail related to presentation. • The set of possible property values depends on the name. – background-color can take on any legal JavaScript or CSS color, e.g. green, rgb(85, 172, 238), or #E98725. – text-align governs the horizontal alignment of text and can be set to left, right, center, or justify. – display controls how an element is displayed and can be bound to inline,
    [Show full text]
  • Document Object Model †DOM‡ Level 1 Specification
    Document Object Model (DOM) Level 1 Specification REC-DOM-Level-1-19981001 Document Object Model (DOM) Level 1 Specification Version 1.0 W3C Recommendation 1 October, 1998 This version http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001 http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/DOM.ps http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/DOM.pdf http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/DOM.tgz http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/DOM.zip http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/DOM.txt Latest version http://www.w3.org/TR/REC-DOM-Level-1 Previous versions http://www.w3.org/TR/1998/PR-DOM-Level-1-19980818 http://www.w3.org/TR/1998/WD-DOM-19980720 http://www.w3.org/TR/1998/WD-DOM-19980416 http://www.w3.org/TR/WD-DOM-19980318 http://www.w3.org/TR/WD-DOM-971209 http://www.w3.org/TR/WD-DOM-971009 WG Chair Lauren Wood, SoftQuad, Inc. Editors Vidur Apparao, Netscape Steve Byrne, Sun Mike Champion, ArborText Scott Isaacs, Microsoft Ian Jacobs, W3C Arnaud Le Hors, W3C Gavin Nicol, Inso EPS Jonathan Robie, Texcel Research Robert Sutor, IBM Chris Wilson, Microsoft Lauren Wood, SoftQuad, Inc. Principal Contributors Vidur Apparao, Netscape Steve Byrne, Sun (until November 1997) Mike Champion, ArborText, Inc. 1 Status of this document Scott Isaacs, Microsoft (until January, 1998) Arnaud Le Hors, W3C Gavin Nicol, Inso EPS Jonathan Robie, Texcel Research Peter Sharpe, SoftQuad, Inc. Bill Smith, Sun (after November 1997) Jared Sorensen, Novell Robert Sutor, IBM Ray Whitmer, iMall Chris Wilson, Microsoft (after January, 1998) Status of this document This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a W3C Recommendation.
    [Show full text]
  • HTML 4.0 Specification
    HTML 4.0 Specification REC-html40-19980424 HTML 4.0 Specification W3C Recommendation, revised on 24-Apr-1998 This version: http://www.w3.org/TR/1998/REC-html40-19980424 Latest version: http://www.w3.org/TR/REC-html40 Previous version: http://www.w3.org/TR/REC-html40-971218 Editors: Dave Raggett <[email protected]> Arnaud Le Hors <[email protected]> Ian Jacobs <[email protected]> Abstract This specification defines the HyperText Markup Language (HTML), version 4.0, the publishing language of the World Wide Web. In addition to the text, multimedia, and hyperlink features of the previous versions of HTML, HTML 4.0 supports more multimedia options, scripting languages, style sheets, better printing facilities, and documents that are more accessible to users with disabilities. HTML 4.0 also takes great strides towards the internationalization of documents, with the goal of making the Web truly World Wide. HTML 4.0 is an SGML application conforming to International Standard ISO 8879 -- Standard Generalized Markup Language [ISO8879] [p.327] . Status of this document This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from another document. W3C’s role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web. W3C recommends that user agents and authors (and in particular, authoring tools) produce HTML 4.0 documents rather than HTML 3.2 documents (see [HTML32] [p.329] ).
    [Show full text]
  • Document Object Model †DOM‡ Level 2 HTML Specification
    Document Object Model (DOM) Level 2 HTML Specification Document Object Model (DOM) Level 2 HTML Specification Version 1.0 W3C Candidate Recommendation 07 October 2002 This version: http://www.w3.org/TR/2002/CR-DOM-Level-2-HTML-20021007 Latest version: http://www.w3.org/TR/DOM-Level-2-HTML Previous version: http://www.w3.org/TR/2002/CR-DOM-Level-2-HTML-20020605 Editors: Johnny Stenback, Netscape Philippe Le Hégaret, W3C Arnaud Le Hors, W3C and IBM (until November 2000) This document is also available in these non-normative formats: XML fileplain text, PostScript file, PDF file, single HTML file, and ZIP file. Copyright ©2002 W3C ® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Abstract This specification defines the Document Object Model Level 2 HTML, a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content and structure of [HTML 4.01] and [XHTML 1.0] documents. The Document Object Model Level 2 HTML builds on the Document Object Model Level 2 Core [DOM Level 2 Core] and is not backward compatible with DOM Level 1 HTML [DOM Level 1]. Status of this document This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C. 1 Table of contents This is the 07 October 2002 W3C Candidate Recommendation of "DOM Level 2 HTML". This version updates the 5 June 2002 version based on the feedback from the implementers and the results of the DOM Level 2 HTML Test Suite.
    [Show full text]
  • How to Setup Petpoint's Adoptable Search I-Frame
    HOW TO SETUP PETPOINT’S ADOPTABLE SEARCH I-FRAME PetPoint | v.20101227 INTRODUCTION PetPoint’s Adoptable Search I-frame provides live adoptable pet data to your website, giving the world information about pets that are available in your shelter or rescue. Because it’s real-time, your website will be instantly updated when changes are made in PetPoint, such as when a pet is adopted. This document describes in detail the steps for adding PetPoint’s Adoptable Search I-frame to your website, including customization options. It additionally describes how to setup and update records in PetPoint so they are displayed in the I-frame. You will need to be able to edit the actual HTML code of pages on your website – either via your website provider’s Administrative utilities (ex. Convio’s PageBuilder) or by editing the files locally in a software application such as Dreamweaver and posting them to your site. Adding the Adoptable Search I-frame should only take a matter of minutes to complete – the process is very similar to adding a ShelterCare Bowl of Food Plus Program Banner Ad to your organization’s website. Should you have any questions on deploying PetPoint’s Adoptable Search I-frame after reviewing this document, please contact us at 866-630-7387 x400 or [email protected]. How to Setup PetPoint’s Adoptable Search I-frame v. 20101227 Page 2 of 15 TESTING YOUR CSS AND GENERATING YOUR SOURCE CODE You can now easily generate the Adoptable Search code using the Test page found here: http://www.petango.com/webservices/testAdoptableSearch.htm This page is also a good way to experiment with parameters and test your CSS files.
    [Show full text]
  • XHTML Frames
    IT350 Web and Internet Programming Fall 2006 SlideSet #5: Frames & SSI (from Chapter 5 & 26 of the text) Adapted from 2004 Prentice Hall, Inc. All rights reserved. Frames Example Adapted from 2004 Prentice Hall, Inc. All rights reserved. 1 Benefits of Frames Adapted from 2004 Prentice Hall, Inc. All rights reserved. Problems with Frames Result: XHTML 1.1 does not support frames Adapted from 2004 Prentice Hall, Inc. All rights reserved. 2 Making Pages with Frames • Two kinds of pages 1. “Frameset” page: A page with a <frameset> (usually the index.html page) DTD: must use “XHTML 1.0 Frameset” 2. “Content” page DTD: must use “XHTML 1.0 Transitional” Adapted from 2004 Prentice Hall, Inc. All rights reserved. “Frameset” page <?xml version = "1.0"?> index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Internet and WWW How to Program - Main</title> </head> <!-- the <frameset> tag sets the frame dimensions --> <frameset cols = "110,*"> <!-- frame elements specify which pages --> <!-- are loaded into a given frame --> <frame name = "leftframe" src = "nav.html" /> <frame name = "main" src = "main.html" /> <noframes> <body> <p>This page uses frames, but your br /owser does not support them.</p> <p>Please, <a href = "nav.html">follow this link to br /owse our site without frames</a>.</p> </body> </noframes> </frameset> </html> 3 Content page 1 <?xml version = "1.0"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" nav.html 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> (1 of 2) 4 5 <!-- Fig.
    [Show full text]
  • CIS 3.5, Spring 2010 Lecture I.2
    CIS 3.5, Spring 2010 Lecture I.2 Topics: Markup Languages Definition Motivation Types XHTML Overview Rules, Validation Examples About Semantic Markup Markup Languages (defined). Markup languages are not the same as programming languages. Programming languages are used to create programs that control the behavior of a machine. C/++/#, Java, Processing, PHP, Perl, Haskel, Prolog Markup languages are used for adding information (sometimes called metadata) to text in a way which is distinguishable from that text. GenCode, LaTeX, SGML, XML, HTML, XHTML It is possible to embed programming language statements/commands into a markup language. Motivation It is possible to send pictures over the Internet, but pictures are large (slow to transfer), fixed (difficult to rearrange) and difficult to resize (interpolation, aliasing). It's very cheap and easy to send plain text over the Internet (ASCI, Unicode, UTF-8, UTF-16 and UTF-32). However plain text is difficult to read. Markup languages allow us to add information to text (in a manner that is distinguishable from the text) that can be used to enhance the comprehension/understandability of the text. Plain Text COURSE DESCRIPTION. This course will commence with a broad introduction to topics in Multi-Media Computing (MMC), including: web design, game design, animation, data visualization, simulation and robotics. Discussions will be introductory and will cover a broad range of subjects, such as: multimedia hardware and software, including game boxes; human interface design and input using multi- media devices; graphical and other forms of output to multi-media devices; computer-based sound editing; agent-based programming for simulations and robotics; and uses of multi-media in industry.
    [Show full text]