Web Development and HTML. Shan-Hung Wu CS, NTHU

Similar documents
HTML and CSS COURSE SYLLABUS

Deccansoft Software Services

Programmazione Web a.a. 2017/2018 HTML5

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML. HTML Evolution

Html basics Course Outline

Web development using PHP & MySQL with HTML5, CSS, JavaScript

introduction to XHTML

Markup Language. Made up of elements Elements create a document tree

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

HTML+ CSS PRINCIPLES. Getting started with web design the right way

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Web Programming Week 2 Semester Byron Fisher 2018

LING 408/508: Computational Techniques for Linguists. Lecture 14

Static Webpage Development

The Structure of the Web. Jim and Matthew

CSC Web Programming. Introduction to HTML

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

INTRODUCTION TO WEB USING HTML What is HTML?

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Web Designing HTML5 NOTES

CSC Web Technologies, Spring HTML Review

CSS. Shan-Hung Wu CS, NTHU

Introduction to WEB PROGRAMMING

week8 Tommy MacWilliam week8 October 31, 2011

AP CS P. Unit 2. Introduction to HTML and CSS

Certified HTML5 Developer VS-1029

Introduction to HTML

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Website Development with HTML5, CSS and Bootstrap

Introduction to Web Technologies

11. HTML5 and Future Web Application

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

HTML MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Lesson 5 Introduction to Cascading Style Sheets

CSC 121 Computers and Scientific Thinking

Bridges To Computing

Week 1 - Overview of HTML and Introduction to JavaScript

MPT Web Design. Week 1: Introduction to HTML and Web Design

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

Purpose of this doc. Most minimal. Start building your own portfolio page!

Table of contents. DMXzoneUniformManual DMXzone

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Hyper Text Markup Language HTML: A Tutorial

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

HTML & CSS. Rupayan Neogy

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

Intro, Version Control, HTML5. CS147L Lecture 1 Mike Krieger

UR what? ! URI: Uniform Resource Identifier. " Uniquely identifies a data entity " Obeys a specific syntax " schemename:specificstuff

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

Document Object Model. Overview

A Balanced Introduction to Computer Science, 3/E

HTML Overview. With an emphasis on XHTML

HyperText Markup Language (HTML)

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Web Site Development with HTML/JavaScrip

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Creating Web Pages Using HTML

GRAPHIC WEB DESIGNER PROGRAM

XHTML & CSS CASCADING STYLE SHEETS

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Chapter 7 BMIS335 Web Design & Development

Data Visualization (CIS/DSC 468)

CMPT 165 Unit 2 Markup Part 2

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Chapter 3 Style Sheets: CSS

Exam : 9A Title : Adobe GoLive CS2 ACE Exam. Version : DEMO

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

Summary 4/5. (contains info about the html)

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Styles, Style Sheets, the Box Model and Liquid Layout

Data Visualization (DSC 530/CIS )

Programming of web-based systems Introduction to HTML5

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison

SCHOOL OF COMPUTING, ENGINEERING AND MATHEMATICS SEMESTER 2 EXAMINATIONS 2015/2016 CI135. Introduction to Web Development

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

HTMLnotesS15.notebook. January 25, 2015

What You Will Learn Today

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

How the Internet Works

HTML, XHTML, and CSS. Sixth Edition. Chapter 1. Introduction to HTML, XHTML, and

Stamp Builder. Documentation. v1.0.0

A Brief Introduction to HTML

CS144 Notes: Web Standards

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Transcription:

Web Development and HTML Shan-Hung Wu CS, NTHU

Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 2

Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 3

What Happened? https://www.wikipedia.org/wiki/node.js 4

From URL to Web Page https://www.wikipedia.org/wiki/node.js 5

HTTP A protocol is language spoken by machines Defines structure of messages to be exchanged HyperText Transfer Protocol (HTTP) defines: Messages: HTTP request and HTTP response Requests: accessing resources (web pages) via GET, POST, PUT, and DELETE methods Responses: 200 OK, 301 Moved, 404 Not Found, 500 Server Error, etc. 6

HTTP Messages Each HTTP message have Initial line, header lines, and optionally body Response: HTTP/1.1 200 OK Content-Type: text/html Content-Length: 3324 Request: GET /wiki/node.js HTTP/1.1 Host: www.wikipedia.org Accept: text/html, application/json A resource can have different presentations HTML, XML, JSON, etc. <!DOCTYPE html> <html> <head>... </head> <body>... </body> </html> 7

Chrome Inspector 8

URI vs. URL vs. URN An Uniform Resource Identifier (URI) identifies a resource on the Internet An Uniform Resource Locator (URL) is a specialized URI that identifies a resource by reachable location E.g., http://, https://, ftp:// Case sensitive Must be URL encoded http://host/hello world! http://host/hello%20world%21 An Uniform Resource Name (URN) is a specialized URI that identifies a resource by name E.g., urn:isbn:0451450523 9

Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 10

Web Development To build a website that serves web pages Code to be run at client side (front end): Displays pages Interacts with user Sends additional requests Code to be run at server side (back end): Handles requests (from multiple clients) Stores data Sends personalized responses We focus on client-side development for now 11

What s Inside a Web Page? Hyper-Text Markup Language (HTML) Content and structure Cascade Style Sheet (CSS): Styles (e.g., color, font, width, height, etc.) Javascript: Interactions A general-purpose programming language 12

Javascript Lies beyond Browsers 13

Hello HTML 14

Grammar <tag> content </tag> 15

Core HTML Elements <!DOCTYPE html> <html> <head> <!-- Metadata goes here --> <title>...</title> </head> <body> <!-- Content goes here --> </body> </html> 16

Block vs. Inline Elements A block element: Creates new lines above and under Can contain text and other block/inline elements Unless specified, has height fitting its content Unless specified, has width fitting its container An inline element: Creates no new line Can contain only text and other inline elements Unless specified, has width and height fitting its content 17

Viewport & Responsiveness <meta name="viewport" content="width=device-width, initial-scale=1.0"> 18

Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 19

Block vs. Inline Elements I Block elements (by default): <h1>-<h6>, <p>, <div>, <ol>, <ul>, <li>, <table>, <form>, <hr> Inline elements (by default): <a>, <img>, <em>, <span>, <label>, <input>, <button>, <br> Empty elements (no content): <hr>, <br>, <img> 20

Block vs. Inline Elements II A block element: Creates new lines above and under Can contain text and other block/inline elements Unless specified, has height fitting its content Unless specified, has width fitting its container An inline element: Creates no new line Can contain only text and other inline elements Unless specified, has width and height fitting its content 21

MDN Reference 22

Lists <ul> <li>list Item 1</li> <li>list Item 2</li> </ul> <ol> <li>list Item 1</li> <li>list Item 2</li> </ol> 23

HyperLinks and Attributes <a href="www.example.com">text</a> <img src="corgi.png" alt="corgi"> 24

Tables <table> <tr> <th>header 1</th> <th>header 2</th> </tr> <tr> <td>cell (1,1)</td> <td>call (1,2)</td> </tr> <tr> <td>cell (2,1)</td> <td>cell (2,2)</td> </tr> </table> 25

Forms I 26

Forms II <form action="/sign-in-url" method="post"> <label for="acc">accont:</label> <input id="acc" type="text name="account"> <label for="pw">password:</label> <input id="pw" type="password name="passwd"> <button>login</button> </form> 27

Query Strings http://...?name1=val1&name2=val2 GET resources/pages conditionally Based on device type, locale, etc. Passing arguments in POST E.g., account and password in user login 28

Form Validation <form action="..." method="...">... <input... required>... <input... required>... </form> 29

Entities How to type < in content? <p>a < b</p> < < > > & & " " Space 30

Assigned Reading HTML5 tutorial 31

Reference Mozilla Developer Network (MDN) 32

Exercise 33