260 likes | 492 Views
Internet Basics. What is a web page?. A browser is a specialized piece of software designed to decode XHTML code. Internet Basics. What is a web page?. A web page is an XHTML file sitting on a computer somewhere. index.html. Example XHTML code. Internet Basics. What is a web page?.
E N D
Internet Basics What is a web page? A browser is a specialized piece of software designed to decode XHTML code.
Internet Basics What is a web page? A web page is an XHTML file sitting on a computer somewhere. index.html Example XHTML code
Internet Basics What is a web page? The internet allows us to transfer HTML files from one computer to another.
Internet Basics What is the internet? The internet is a worldwide network of computers connected together. Some of these computers are clients Others computers are servers
Internet Basics Clients and Servers Clients and servers are connected together through the internet. The computer which stores the web page is called the server because it is giving, or serving, the web page to your computer. When you use the World Wide Web, your computer is a client because it is requesting a web page. Key Point: Clients get web pages from servers. Servers give web pages to clients.
Internet Basics Transferring HTML files from servers to clients Step 1: Client requests an HTML file from Server “I’d like homepage.html” Step 2: Server sends the HTML file to the Client
Internet Basics How do clients and servers find each other? Are you my mother?
Internet Basics How do clients and servers find each other? IP Address 134.84.119.107 121.77.148.15
Internet Basics How do clients and servers find each other? 218-879-3393 Ring! Ring! Ring!
Internet Basics Transferring HTML files from servers to clients Step 1: Client requests an HTML file from Server “134.84.119.107:I’d like homepage.html. Send it to 121.77.148.15” Step 2: Server sends the HTML file to the Client
Internet Basics Transferring HTML files from servers to clients
Internet Basics Domain Name Service Some computers connected to the internet are called DNS Servers.
Internet Basics Domain Name Service What’s the IP address for umn.edu? Step 1: Client requests an HTML file from Server “134.84.119.107:I’d like homepage.html. Send it to 121.77.148.15” Step 2: Server sends the HTML file to the Client
Internet Basics Uniform Resource Locators http://www.stcloudstate.edu
Internet Basics Uniform Resource Locators http://www.stcloudstate.edu • Domain Name • This tells you which computer the HTML file is on • This gets resolved into an IP address by a DNS server • Each domain name has its own unique IP address
Internet Basics But Where? http://www.stcloudstate.edu/
Internet Basics But Where? http://www.stcloudstate.edu/project1.html
Internet Basics But Where? http://www.stcloudstate.edu/project1.html Client: What’s the IP address for stcloudstate.edu? DNS Server: stcloudstate.edu = 134.80.77.19 Client: I’m calling 134.80.77.19 and am requesting the file, project1.html St. Cloud State Server: Here’s project1.html Client: Receives project1.html and opens it with Internet Explorer. Internet Explorer is software which reads the XHTML instructions and displays the web page.
Internet Basics But Where? http://www.yahoo.com • Now What? • This URL does not include a filename. • In this case, the server will always transmit… index.html
Internet Basics But Where? index.html • One of your pages should always be called index.html • index.html is the first page the server will give whenever a client requests a website • index.html should always be your HOME PAGE
Internet Basics Which HTML file? What’s the IP address for umn.edu? DNS Server St. Cloud State Server Step 1: Client requests an HTML file from Server “134.84.119.107:I’d like your home page. Send it to 121.77.148.15” Step 2: Server sends the HTML file to the Client If the client asked for a specific file, send that file. Otherwise, automatically send index.html