Download presentation
Presentation is loading. Please wait.
1
Web UI Basics ITM 352
2
Module Objectives Learn basics of HTML: CSS:
Doc Type Common tags (headers, paragraph, links, etc.) Div and span CSS: Styles (fonts, widths, colors, etc.) Placement (floats) How web pages actually work HTML, CSS, and the DOM
3
Module Objectives Learn how to build a webpage in Netbeans
use webpage development tools Chrome Web Developer tools Use online references W3 schools make use of Google Fonts Become aware of various frameworks and libraries and how to use them Understand the benefits and limitations of website builders and web development tools (e.g. page builders such as Dreamweaver)
4
This Lecture Will introduce On your own HTML, CSS in Netbeans
Testing with local Apache web server Google Web Tools (Chrome Dev Tools) On your own Netbeans tutorial Beginning and Intermediate HTML tutorial CSS tutorial Google Web Fonts Chrome Dev Tools tutorial
5
Prerequisites Before starting this module you should have installed and tested XAMPP and tested Apache as a local web server Netbeans 8.0 for PHP + HTML5 Google Chrome browser
6
Web Page Processing Browser is the “client” that requests via http a file from the server This is called a “pull” or “get” request There is also “push” but this is more complicated Let’s see this “raw” without a browser Mac: Spotlight -> Terminal telnet itm-vm.shidler.hawaii.edu 80 GET /itm352student/test.html HTTP/1.1 HOST: itm-vm.shidler.hawaii.edu (Hit Enter 2x) Windows: Start -> CMD Telnet No Telnet? (Steps 1-4 only) Browser receives file and processes it as it has been configured E.g. HTML text is “drawn” Different browsers may process the file differently! E.g. look of buttons, text boxes etc.
7
Web Server Root Directory
A web browser will translate a URL into an HTTP request The basic request will get a file from the servers root directory (e.g. htdocs for Apache) and transfer it to the requestor cs.calstatela.edu Requestor port Path Do Exercise 1
8
Local vs Global Web Server
No difference! Local web servers simply are configured to listen to requests only from localhost (or a local network) This is different than a browser requesting a file from the OS file:///C:/Users/glitcher/Downloads/test.htm Global web servers listen to requests on a an IP address (or DNS hostname) connected to the internet Do Exercise 2,3
9
Web Pages: HTML, CSS, and the DOM
A web page is really just a text file containing “page markups” and directives that the browser interprets to build and display a page The file is “processed” by the client. The server simply hands over the text in the file Markups tell what the page looks like HTML – Hyper Text Markup Language Built into a web browser It is NOT a programming language There are many other markup languages (e.g. XML, Markdown) A markup “tag” describes an “object” for the page Objects have “attributes” and “behaviors” HTML tags become DOM (Document object model) elements inside the “document” object. The browser creates DOM objects and uses them to build and manage pages. DOM objects are organized into “tree” that describe how objects are related. Objects are not necessarily related by where they are located on a page! CSS is a framework that sets attributes for DOM objects It is independent of HTML! Do Exercise 4
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.