Essentials of Web Pages

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

INF Web Design Using Multimedia on the Web Video - Part 1.
Chapter 16 The World Wide Web. 2 The World Wide Web (Web) is an infrastructure of distributed information combined with software that uses networks as.
Chapter 14 Introduction to HTML
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
Multimedia and Web Technology Prepared by: Asst. Prof. Maryam Eskandari.
Creating a Basic Web Page
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
HTML: Hyptertext Markup Language Doman’s Sections.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML tags and attributes By: Dennis Champagne. List of tags.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Structure & syntax
Chapter 2 Markup Language By : Madam Hazwani binti Rahmat
Chapter 9 HTML 5 Video and Audio
Advanced HTML Tags:.
4.01 How Web Pages Work.
HTML CS 4640 Programming Languages for Web Applications
Web Systems & Technologies
Introduction to HTML.
Introduction to HTML:.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 9 HTML 5 Video and Audio
CGS 3066: Lecture 2 Web Development and HTML5
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
HTML: HyperText Markup Language
Introduction to HTML.
Elements of HTML Web Design – Sec 3-2
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
HTML & teh internets.
Chapter 4: HTML5 Media - <video> & <audio>
Audio and Video on the Web
CGS 3066: Web Programming and Design Spring 2016
Chapter 1: Introduction to XHTML (part 1)
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
The Web Warrior Guide to Web Design Technologies
BTEC NCF Dip in Comp - Unit 15 Website Development Lesson 05 – Website Performance Mr C Johnston.
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
HTML (HyperText Markup Language)
Playing Video (Part 2).
HTML Intro.
HTML5 Media.
Client-Side Internet and Web Programming
Basic HTML and Embed Codes
LING 408/508: Computational Techniques for Linguists
CGS 3066: Lecture 2 Web Development and HTML5
HTML ELEMENTS Ms. Olifer.
Web Programming Language
Introduction to HTML- Basics
Secure Web Programming
Chapter 16 The World Wide Web.
Computer communications
Web Development 101 Workshop
COMS 161 Introduction to Computing
4.01 How Web Pages Work.
Client-Server Model: Requesting a Web Page
WJEC GCSE Computer Science
Web Client Side Technologies Raneem Qaddoura
Web Programming and Design
HTML CS 4640 Programming Languages for Web Applications
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Essentials of Web Pages

Topics Static vs. Dynamic Web Pages Common HTML Tags Add comments to HTML documents Validate HTML Web Pages Video

What is a Static Web Page A static web page is a web page that doesn’t change each time it is requested. A static web page is sent directly from the web server to the web browser when the browser requests it. You can spot a static page by looking at the extension. If it is .html, it is a static web page.

Process for Accessing a Static Web Page A local computer (a client) requests a web page in a browser. The web browser builds a request for the web page and sends it to the web server. This request, known as an HTTP request, is formatted using the HyperText Transfer Protocol, which lets the web server know which file is being requested. When the web server receives the HTTP request, it retrieves the requested file from the disk drive. This file contains the HTML for the requested page. The web server sends the file back to the browser as part of the HTTP response. Once the browser receives the HTTP response, it translates the HTML into a web page that is displayed in the browser.

Visual of the Static Web Page Process

Dynamic Web Pages A dynamic web page is created by a program or script each time it is requested. When a web server receives a dynamic request, it looks up the extension of the requested file. This could be Java (.jsp), PHP (.php), Python (.py), and so on. Once the application server has identified the specified script, it processes the request. This often requires collecting data from a database server. When the application Server finishes processes the dynamic request, it generates the HTML for a web page and returns it to the web server. The web server returns the HTML to the web browser as part of the HTTP response, where it is displayed

Visual of the Dynamic Web Page Process

Static Web Pages are built at the front end. Front-end web development involves the construction of HTML, CSS and JavaScript for a website or Web Application so that a user can see and interact with them directly. Dynamic Web Pages are built at the back end. Back-end web development consists of a server, an application, and a database.

Common HTML Tags

  <p> </p> Enclose paragraphs <br /> Add a line break <hr /> Adds a horizontal line <pre> </pre> <h1></h1> <h2> </h2> <h3> </h3> <h4></h4> <h5></h5> <blockquote> <i> </i> <b> </b> <em> </em> Emphasized - looks similar to italics <strong> </strong> looks similar to bold <code> </code> <sup> </sup> Adds a superscript <sub> </sub> Adds a subscript <a href>

  <dl> A description List <dt> A data term <dd> A data definition <table> <tr> <th> <td> <figure></figure> <img src> <figcaption> </figcaption> NOTE: Place the image and caption inside figure. <div> </div> <ul> </ul> <ol> </ol> <li> </li>

<!-- This is a comment --> Commenting HTML Code <!-- This is a comment -->

Do’s and Don’ts for Commenting HTML Use comments to briefly identify segments of your HTML code. Don’t comment every block of code. Commenting should be placed only where something may not be completely clear.

Why is the Validation of a Web Page Important? Validation will ensure that each page will be interpreted correctly and consistently across all the various browsers and devices. Validations provides confirmation to developers that they are conforming to standards and regulations that make a website universally consistent.

Where do I validate a webpage or CSS page? Validate HTML files at http://validator.w3.org/ CSS files can be validated at http://jigsaw.w3.org/css- validator

Practice

Build the Web Page. Start by creating a directory for the page Build the Web Page. Start by creating a directory for the page. Add a directory for the image. Use a text editor to enter the HTML.

Source Code <html> <head> <title>A Simple Webpage</title> </head> <body> <h1>Hello, <em>CS222 student!</em></h1> <div> <img src="./images/kitten.png"> <p>A very simple page.</p> <a href="http://www.redlands.edu">www.redlands.edu</a> </div> </body> </html> Source Code

Specify a document type. Image elements should use a textual alternative.

Corrected Source Code <!doctype html> <html> <head> <title>A Simple Webpage</title> </head> <body> <h1>Hello, <em>CS222 student!</em></h1> <div> <img src="./images/kitten.png" alt="sample image"> <p>A very simple page.</p> <a href="http://www.redlands.edu">www.redlands.edu</a> </div> </body> </html> Corrected Source Code

Video Before HTML5, there was no standard for showing videos on a web page. Videos could only be played with a plug-in (such as flash).   With the advent of HTML5, a new tag was added: <video> <video> specifies a standard way to embed a video in a web page.

The <video> tag The <video> tag defines a single video or media resource, such as a movie clip or other video streams. In the following example, a single video is embedded on your page. It will show the basic controls so that a user can play, pause, or otherwise control the video:   <video src="video.webm" controls></video>

Using the <source> tag with <video> The <source> tag defines multiple media resources for media elements, such as <video> and <audio> You can specify multiple source files using the <source> tag. Multiple formats can be used as a fallback in case the user’s browser doesn’t support one of them. The browser parses the <source> tag, and decides which file to download and play.

Example of <source> and <video>   <video width="320" height="240" controls> <source src=http://techslides.com/demos/sample-videos/small.webm type=video/webm> <source src=http://techslides.com/demos/sample-videos/small.ogv type=video/ogg> <source src=http://techslides.com/demos/sample-videos/small.mp4 type=video/mp4> <source src=http://techslides.com/demos/sample-videos/small.3gp type=video/3gp> Your browser does not support the video tag. </video>

Supported Video formats Browser MP4 WebM Ogg Internet Explorer YES NO Chrome Firefox YES from Firefox 21 from Firefox 30 for Linux Safari Opera YES From Opera 25

Additional Video Attributes autoplay Specifies that the video will start playing as soon as it is ready controls Specifies that video controls should be displayed (such as a play/pause button etc). height pixels Sets the height of the video player loop Specifies that the video will start over again, every time it is finished src URL Specifies the URL of the video file width Pixels Sets the width of the video player