The world wide web.ppt
《The world wide web.ppt》由会员分享,可在线阅读,更多相关《The world wide web.ppt(102页珍藏版)》请在麦多课文档分享上搜索。
1、The world wide web,Chapter 4,Learning outcomes,Explain in general terms how web documents are transferred across the Internet and What processes are triggered when you click on hyperlink Code web pages using HTML and XHTML using style sheets. Explain why it is advisable to use XHTML rather than HTML
2、 Describe some technologies available for dynamic web pages,Essential Reading,Joe Casad, Teach yourself TCP/IP, Ch. 17 William Buchanan, Mastering The Internet, Ch. 6-8 Introductory materials on HTML & XHTML either a text book such as John Shelly, HTML AND CSS explained, or http:/www.webM http:/,Add
3、itional reading,William Buchanan, Mastering The Internet, Ch. 9-10 Andrew Tanenbaum, Computer Networks, Ch. 7.3 Douglas Comer, Computer Netwoks and Networking, ch. 32-33 Chuck Masciano and Bill Kennedy, HTML and XHTML the definitive guide, for reference http:/ Mike Lewis, “Understanding Javascript”,
4、 June-Jully 2000,How the web works,The client-server model Client and server operate on machines which are able to communicate through a network The server waits for requests from a clients Server receives a requests from a client Performs a the requested work Or lookup the requested data And send a
5、 response to the clientServers: file servers, web servers, name servers Clients: browsers, email clients,url format,:/which protocol to use http: in general file: which tells the client document is in a local machine ftp: file transfer protocol identifies the server system i.e. www.doc.gold.ac.uktel
6、ls the server where to find the file http:/doc.gold.ac.uk/username/index.html,Web browsers and servers,A browser: is a program that can retrieve files from the world wide web and render text, images, or sounds encoded in the files. i.e. IE, Nescape, Mozilla A web server: is an application which wait
7、s for client requests, fetches requested documents from disk and transmits them the client. i.e Apache,What happened when you click on hyperlink?,Determine URL and extract domaine name. Use the name server to get IP address (DNS) Make a TCP connect to port 80 And send a request for a web page once t
8、he server has accepted to connection. The server send the file and releases the TCP connection The client displays the document.,Other possibilities,The steps in the previous slide are for displaying a static web page from a remote machine. Other possibilities are: Page is loaded from a local system
9、 no tcp connection url begin with file:/. The page is dynamically generated by a client-side script No tcp connection The page is dynamically generated by a server-side script: The server may carry out other functions Secure server Check users identity if they are authorised to access a particular r
10、esources,Stateless connection,Both client and server release TCP connection after a page has been transferred. HTTP1.0 is stateless Connections are not persistent There is no indication to the server whether new transactions involve the same client HTTP 1.1 is persistent By keeping track of the clie
11、nt IP addresses However, there is no way of identifying a repeated visits to the site by the same user. Futhermore, ISPs reallocate IP addresses to dial-up customers as new user dial in.,Cookies,Request the browser to store a small data file (cookie) on the users hard disk. Which can serve to identi
12、fy users only. For instance it could contain a key into a database on the server machine. Most browsers nowadays allow you to decide whether or not you want cookies on your machine.,Introduction to HTML,What is an HTML File?,HTML stands for HyperText Markup Language An HTML file is a text file conta
13、ining small markup tags The markup tags tell the Web browser how to display the page An HTML file must have an htm or html file extension An HTML file can be created using a simple text editor,Internet - Services,Email & MIME (Multipurpose Internet Mail Extensions) text (text/html), image, video, et
14、c. Telnet & ssh FTP File Transfer Protocol Gopher IRC Internet Relay Chat Newsgroups WWW World Wide Web HTTP (Hypertext transfer protocol) uses a Question-Answer-Scheme, i.e. a browser sends a request und gets a response from a server. Note the server does not send out anything without a request.,Ma
15、rkup languages,Suppose we have a document containing only plain textWe tag certain parts of the document to indicate what they are and how they should be formattedThis procedure is called marking-up the document Tags are usually paired: e.g. My Memoirs A pair of tags plus their content constitute an
16、 element Un-paired tags are called empty tags,Markup languages,Physical vs Semantic markup physical refers to appearance (style) on the page semantic refers to structure and meaningHTML is the HyperText Markup Language HTML is based on SGML (Standard Generalised Markup Language) which is more comple
17、xHTML has a fixed set of tags but is constantly evolving, but newer versions are downward compatible,Markup languages,HTML places primary emphasis on structure paragraphs, headings, lists, images, links, . HTML places secondary emphasis on style (CSS) fonts, colours, . HTML does not label the meanin
18、g of the text (XML),A basic document,Every document should start with the following line,There are three required elements, defined by the tags , and ,My Home PageWelcome,Basic structure elements,first and last tags The HEAD section must come before the BODY section contains generic information abou
19、t the document Elements specified in the HEAD section can include title, link, script, style The BODY section contains the content of the document (text, images etc) this content is structured by other tags,Block elements,Block elements define sections of text, usually preceded by a blank line- para
20、graph . - headings- preserve (original format)- indented text- division used to identify a section of the document that may be subject to special formatting (for example, using stylesheets).,Paragraphs,Paragraphs: . force a break between the enclosed text and the text surrounding it the tagged regio
21、n of text may be subject to special formatting Here is another paragraph align is an attribute of the paragraph tag center is the value of the align attribute,here is a piece of text that has been placed inside a paragraph Here is another paragraph,HeadingsChapter 11. IntroductionThis is the introdu
22、ction2. Next sectionThis is the next section2.1 A subsectionThis is a subsection ,Headings,Six levels of importance . Use headings to divide document into sections,Element relationships,The elements marked by tags form a hierarchy The root element is html (marked by .) It usually has two children: h
23、ead and body each of these are further subdivided There are rules for which elements can contain other elements e.g. headers cannot contain headers see http:/www.w3.org/ for a full list of rules Elements must not overlap each other we cannot have: . . . we can have: . . .,Inline descriptive elements
24、,Descriptive elements affect the appearance of text depending on how the text is describedemphasis, usually with italicsstrong, usually with boldcitation, usually in italicsusually results in monotype spacing, A fascinating subject that I must understand ,Inline explicit style elements,bigger font t
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- THEWORLDWIDEWEBPPT
