HTML CS 4640 Programming Languages for Web Applications

Similar documents
HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

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

INTRODUCTION TO HTML5! HTML5 Page Structure!

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

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

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

Programmazione Web a.a. 2017/2018 HTML5

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

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

Certified HTML5 Developer VS-1029

MRK260. Week Two. Graphic and Web Design

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

Anatomy of an HTML document

HTML5 & CSS 8 th Edition. Chapter 2 Building a Webpage Template with HTML5

The Nature of the Web

Certified HTML Designer VS-1027

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

c122jan2714.notebook January 27, 2014

Website Development with HTML5, CSS and Bootstrap

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

CS144 Notes: Web Standards

Part 1: HTML Language HyperText Make-up Language

QUICK REFERENCE GUIDE

GRAPHIC WEB DESIGNER PROGRAM

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

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Styles, Style Sheets, the Box Model and Liquid Layout

First Name Last Name CS-081 March 23, 2010 Midterm Exam

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Bridges To Computing

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

HTML TUTORIAL ONE. Understanding What XHTML is Not

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

HTML Hyper Text Markup Language

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

eskills for Volunteers STRATEGIC PARTNERSHIP IN THE FIELD OF YOUTH

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

What is XHTML? XHTML is the language used to create and organize a web page:

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Data Visualization (CIS/DSC 468)

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

INTRODUCTION TO WEB USING HTML What is HTML?

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

CS/COE 1520

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

Hyper Text Markup Language

More about HTML. Digging in a little deeper

Co. Louth VEC & Co. Monaghan VEC. Programme Module for. Web Authoring. leading to. Level 5 FETAC. Web Authoring 5N1910

Hypertext Markup Language, or HTML, is a markup

CSS for Page Layout Robert K. Moniot 1

Web Site Design and Development Lecture 3. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

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

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

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

HTML. Based mostly on

Index. CSS directive, # (octothorpe), intrapage links, 26

Tutorial 2 - HTML basics

Objective % Select and utilize tools to design and develop websites.

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

Web Publishing Basics I

Introduction to WEB PROGRAMMING

Hyper Text Markup Language

COMS 359: Interactive Media

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

Developing a Basic Web Page

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

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

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

Guidelines for doing the short exercises

Using CSS for page layout

Introduction to HTML5

CPET 499/ITC 250 Web Systems. Topics

S. Rinzivillo DATA VISUALIZATION AND VISUAL ANALYTICS

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

CS134 Web Site Design & Development. Quiz1

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

CMPT 165 Notes on HTML5

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

HTML. Hypertext Markup Language. Code used to create web pages

Bok, Jong Soon

Techno Expert Solutions An institute for specialized studies!

Block & Inline Elements

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

Hyper Text Markup Language HTML: A Tutorial

CSS - Cascading Style Sheets

ADOBE VISUAL COMMUNICATION USING DREAMWEAVER CS5 Curriculum/Certification Mapping in MyGraphicsLab

Udacity Frontend Nanodegree Style Guide

Symbols INDEX. !important rule, rule, , 146, , rule,

By Ryan Stevenson. Guidebook #2 HTML

for Beginners COPYRIGHT NATIONAL SEMINARS TRAINING. ALL RIGHTS RESERVED.

Tutorial 1: HTML Tutorial (Windows Version) HTML (Hypertext Markup Language) Basics Objectives

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

CMPT 165 Unit 2 Markup Part 2

Creating HTML files using Notepad

Fundamentals of Website Development

1.264 Lecture 12. HTML Introduction to FrontPage

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

HTML Forms. 10 September, Dr Derek Peacock. This is a short introduction into creating simple HTML forms. Most of the content is

Transcription:

HTML CS 4640 Programming Languages for Web Applications 1

Anatomy of (Basic) Website Your content + HTML + CSS = Your website structure presentation A website is a way to present your content to the world, using HTML and CSS to present that content and make them look good 2

HTML: HyperText Markup Language Language for describing structure of a document An HTML file is a text file containing small markup tags (or elements) The markup tags tell the web browser how to display the page An HTML file denotes hierarchy of elements An HTML file can be created using a simple text editor, HTML editor, or IDE 3

HTML History Late 1980s: Tim Berners-Lee created first HTML version 1995: HTML 2.0 Published as standard with RFC 1866 1997: HTML 4.0 Standardized most modern HTML element with W3C recommendation Encouraged use of CSS for styling elements over HTML attributes 2000: XHTML 1.0 Imposed stricter rules on HTML format E.g., elements needed closing tag, attribute names in lowercase 2014: HTML5 published as W3C recommendation New features for capturing more semantic information and declarative description of behavior E.g., input constraints, new tags that explain purpose of content Important changes to DOM [https://en.wikipedia.org/wiki/html] 4

HTML Elements tagname attribute name value Start a paragraph element Opening tag begins an HTML element. Opening tags must have a corresponding closing tag. Set the language to English HTML attributes are name/value pairs that provide additional information about the contents of an element. End a paragraph element Closing tag ends and HTML element. All content between the tags and the tags themselves compromise an HTML element. Each tag has a start tag, end tag, and some content in between, and optional attributes 5

HTML Elements Begin and end input element Some HTML tags can be self closing, including a built-in closing tag 6

A Starter HTML Document Use HTML5 standard mode Title Used by browser for title bar or tab HTML content Header Information about the page Interpret bytes as UTF-8 characters Includes both ASCII and international characters Document content 7

Text 8

Semantic Markup Tags that can be used to denote the meaning of specific content Examples: <strong> <blockquote> <q> <abbr> <cite> <dfn> <address> <ins> <del> An element that has importance An element that is a long quote A short quote inline in paragraph Abbreviation Reference to a work The definition of a term Contact information Content that is inserted Content that is deleted 9

Links 10

Images, Audio, and Video HTML include standard support for <img>, <audio>, and <video> Use an alt attribute to make images accessible Common file formats Images:.png,.gif,.jpg Audio:.mp3 Video:.mp4 11

Video Important attributes for <video> src location of video autoplay tells browser to start play controls show the default controls loop loop the video muted mutes the audio from the video 12

Tables rowspan 13

Forms Send form data to plato.cs.virginia.edu/~up3f/formhandler.php Action attribute should be omitted if not using form to submit data Elements in a form are submitted to the server. A form may (or may not) have controls. Transfer method Method attribute specifies how data is transmitted to server method= get sends data appended to URL Method= post sends data as an HTML document 14

Controls 15

Specialized Controls A date input appears differently depending on browser support Firefox Chrome 16

Specialized Controls A time input appears differently depending on browser support Firefox Chrome A number input can set restrictions on what numbers are accepted 17

Specialized Controls A color input is used for input fields that should contain a color 18

Labeling Inputs Suggestion can be placed inside input element The suggestion disappears after user types Label can be attached to an input 19

Block vs. Inline Elements Block elements Appear on a new line Example: <h1> <p> <li> <table> <form> <div> Inline elements Appear on the same line Example: <a> <b> <em> <input> <img> <span> 20

Validating Inputs Displays errors on invalid input immediately, making it easier to fix errors Check that input is a valid email Check that input is a valid URL Constrain input to be at most max length 21

Validating Inputs Check that input matches regex pattern Prevent all edits 22

Grouping Elements Creates a parent or container element and a set of child elements Enables group to be styled together Can use any block or inline element or generic element <div> : generic block element <span> : generic inline element 23

Grouping Elements Semantic layout elements are block elements that associated meaning with group (useful for CSS selectors) Some popular semantic layout elements are <header>, <footer>, <nav>, <article>, <aside>, <section>, <figcaption> 24

HTML Style Tags Use lowercase for names Use indentation to reflect hierarchy Always close tags Use attribute name= value format for attributes Use blank lines to break up documents into closely connected regions Use comments to describe purpose of regions 25

HTML Best Practices Use specialized controls or input validation where applicable Always include elements of HTML starter document Use label or placeholder for labeling controls Use alt to make images accessible 26