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

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

Introduction to HTML5

Programmazione Web a.a. 2017/2018 HTML5

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

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

HTML. HTML Evolution

GRAPHIC WEB DESIGNER PROGRAM

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

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

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

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

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

Document Object Model. Overview

Introduction to WEB PROGRAMMING

Website Development with HTML5, CSS and Bootstrap

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

HTML Hyper Text Markup Language

HTML CS 4640 Programming Languages for Web Applications

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

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

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

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

95.2% Website review of yoast.com/ Executive Summary

Static Webpage Development

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

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

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

Certified HTML5 Developer VS-1029

CSS.

SEO Authority Score: 40.0%

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

HTML and CSS COURSE SYLLABUS

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

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

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

CS144 Notes: Web Standards

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

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

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

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

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

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

WEBSI TE DESIGNING TRAINING

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

CSCB20 Week 6. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2016

INTRODUCTION TO WEB USING HTML What is HTML?

More about HTML. Digging in a little deeper

Index LICENSED PRODUCT NOT FOR RESALE

introduction to XHTML

CUSTOMER PORTAL. Custom HTML splashpage Guide

CSC Web Programming. Introduction to HTML

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

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

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 كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

CMPT 165 Unit 2 Markup Part 2

HTML. Based mostly on

Using CSS for page layout

Deccansoft Software Services

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

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

HTML5, CSS3, JQUERY SYLLABUS

Introduction to HTML

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

Front-End UI: Bootstrap

Client Side Injection on Web Applications

Introduction to using HTML to design webpages

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Web System and Technologies (Objective + Subjective)

QUICK REFERENCE GUIDE

WEB DESIGNING COURSE SYLLABUS

Chapter 7 BMIS335 Web Design & Development

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

Management Information Systems

Lab 1: Introducing HTML5 and CSS3

Web Designing Course

Zen Garden. CSS Zen Garden

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

Techno Expert Solutions An institute for specialized studies!

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

CS109 Data Science Data Munging

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

1.264 Lecture 12. HTML Introduction to FrontPage

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

HTML and CSS: An Introduction

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

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

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

Web Programming Week 2 Semester Byron Fisher 2018

PHP,HTML5, CSS3, JQUERY SYLLABUS

Programming of web-based systems Introduction to HTML5

HTML & CSS November 19, 2014

CSC Web Technologies, Spring HTML Review

HTML Overview. With an emphasis on XHTML

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

The three common HTML terms you should begin with are elements, tags, and attributes.

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

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

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

Transcription:

<HTML> Patrick Behr

Markup Language HTML is a markup language HTML markup instructs browsers how to display the content Provides structure and meaning to the content Does not (should not) describe how it should be displayed Made up of elements Elements create a document tree

Elements Begins with a start tag, ends with an end tag Element is everything from the start tag to the end tag Can contain Text Attributes Other elements <tag>content</tag>

Elements Begin with a start tag, ends with an end tag Element is everything from the start tag to the end tag Can contain Text Attributes Other elements <tag>content</tag> Start Tag

Elements Begin with a start tag, ends with an end tag Element is everything from the start tag to the end tag Can contain Text Attributes Other elements <tag>content</tag> End Tag

Elements Begin with a start tag, ends with an end tag Element is everything from the start tag to the end tag Can contain Text Attributes Other elements <tag>content</tag> Element

Attributes Configures or modifies an element Name-Value pair Defined in the start tag <tag attribute= value >content</tag> Attribute

Empty Elements Begin with a start tag. There is no end tag. Element is the start tag Can contain Attributes <meta charset= utf-8 > Element

Empty Elements Begin with a start tag. There is no end tag. Element is the start tag Can contain Attributes <meta charset= utf-8 > <br> <col> <hr> <img> <input> <link> <meta> Element

Empty Elements Begin with a start tag. There is no end tag. Element is the start tag Can contain Attributes <meta charset= utf-8 /> End tag

Document Tree The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the root element, which has none. Root

Document Tree The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the root element, which has none. Root

Document Tree The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the root element, which has none. Root

Document Tree The tree of elements encoded in the source document. Each element in this tree has exactly one parent, with the exception of the root element, which has none. Root

HTML <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Content <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Content

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Document type declaration

HTML Markup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Markup <!doctype html> <html> Root Element <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> End Tag

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Element

HTML Markup <!doctype html> <html> <head> Child <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Markup <!doctype html> <html> <head> Parent <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> Child <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Parent

HTML Markup <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Siblings

HTLM <head> <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Metadata

HTML <body> <!doctype html> <html> <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Content

Metadata Data that provides data about other data Use the <meta> tag Describes: Language Character encoding Author Description Viewport Behavior that robots ( crawlers ) should use Other

Language <!doctype html> <html lang= en > <head> <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Language

Character Encoding <!doctype html> <html lang= en > <head> <meta charset= utf-8 > <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Encoding

Character Encoding <!doctype html> <html lang= en > <head> <meta charset= utf-8 > <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Encoding UTF-8 is recommended. Do not use CESU-8, UTF-7, BOCU-1 and SCSU because XSS vulnerable.

Character Encoding

Character Encoding Encoding

Character Encoding

Description <!doctype html> <html lang= en > <head> <meta charset= utf-8 > Description <meta name= description content= Describe your website here > <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html>

Title <!doctype html> <html lang= en > <head> <meta charset= utf-8 > <meta name= description content= Describe your website here > <title>my Webpage</title> </head> <body> <p>this is a paragraph</p> <p>another paragraph</p> </body> </html> Title

Title & Description

Viewport <meta name="viewport" content="width=device-width, initial-scale=1.0"> Used to control the width and scale of the page for mobile devices.

<meta http-equiv="x-ua-compatible" content="ie=edge"> Allows developers to determine which version of IE should be used to render the page. Should mostly be irrelevant (IE < 11), but you ll probably see it.

<style> <style> body { font-family: arial, helvetica; } </style> Provides CSS used to style the document.

<link> <link rel="stylesheet" href="url to the file"> Used to reference an external resource, most commonly used to embed external stylesheets.

<link> <link rel="stylesheet" href="url to the file"> Used to reference an external resource, most commonly used to embed external stylesheets.

<link> <link rel="stylesheet" href="url to the file"> Used to reference an external resource, most commonly used to embed external stylesheets.

<script> <script> console.log( Your JavaScript goes here ); </script> Used to embed JavaScript. Can be inline

<script> <script src= URL to the file ></script> Used to embed JavaScript. Can be inline or reference an external file. You still need the </script> tag!

URL Uniform Resource Locator a.k.a. web address Can be absolute: https://developer.mozilla.org/en-us/docs/web/html Can be relative:../scripts/javascript.js

Relative URL

Relative URL You are here /webroot/pages/webpage.html

Relative URL <script src="../../scripts/hellacool.js">

Relative URL Parent directory <script src="../../scripts/hellacool.js">

Relative URL Parent directory <script src="../../scripts/hellacool.js">

Relative URL scripts directory <script src="../../scripts/hellacool.js">

Relative URL hellacool.js <script src="../../scripts/hellacool.js">

Relative URL <img src= /images/pretty_picture.bmp">

Relative URL Root directory <img src= /images/pretty_picture.bmp">

Relative URL images directory <img src= /images/pretty_picture.bmp">

Relative URL pretty_picture.bmp <img src= /images/pretty_picture.bmp">

Relative URL <link rel="stylesheet" href="styles/trendy.css">

Relative URL styles directory <link rel="stylesheet" href="styles/trendy.css">

Relative URL trendy.css file <link rel="stylesheet" href="styles/trendy.css">

<head>

Adding Content

Adding Content

Headings

Headings

Paragraphs

Paragraphs

Lists

Lists

Lists

Lists

Block vs Inline Elements

Block vs Inline Elements

Block vs Inline Elements

Inline Elements

Inline Elements

Anchors (links)

Anchors (links) URL to link to

Anchors (links) Text to display

Anchors (links)

Anchors (links)

Anchors (links) Opens in a new tab

Anchors (links) Prevents hacking window.opener

Anchors (links)

Anchors (links) Use an image

Anchors (links)

Anchors (links) Download a file

Anchors (links)

Anchors (links)

Anchors (links)

Menu Items

Menu Items

Forms

Forms Where data goes

Forms HTTP method to use

Forms Name of the parm

Forms

Forms

Forms action= form.html"

Forms method= get

Forms parm = value

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets

Widgets <input type= text type= range type= number type= reset type= checkbox type= submit type= radio type= url type= date type= week type= time type= month type= email type= hidden type= color type= file type= password type= button >

Forms Submit button

Forms Button text

Forms

Tables

Tables

Tables

Tables

Tables

Tables

Tables

Tables

Tables

Tables - Semantics

Tables - Semantics

Tables - Semantics

Typical Website Layout

Table Layout

<div> Layout

HTML5 Semantics <header> <nav> <section> <article> <aside> <footer>

<div> Layout

HTML5 Elements <datalist> <output> <input type= color > <canvas> <svg> <audio> <video>

Social Media Facebook Open Graph <meta property= og:url content= https://www.yoursite.com/page > <meta property= og:type content= article > <meta property= og:title content= The best site ever! > <meta property= og:description content= Description goes here > <meta property= og:image content= http://example.com/img.jpg >

Social Media Twitter cards <meta name= twitter:card content= summary > <meta name= twitter:site content= @flickr > <meta name= twitter:title content= Island Photos > <meta name= twitter:description content= View the album on Flickr. > <meta name= twitter:image content= https://example.com/img.jpg >

Summary HTML is a markup language Made up of elements Elements may have attributes Elements can be nested Form a document tree Browser parses the document and creates the DOM

Summary Metadata is data about data Language Character encoding Title Description External files URL (relative and absolute)

Summary Content Headings Paragraphs Lists (ordered & unordered) Block vs Inline Anchors (links) Forms & Widgets Tables Layout Social Media

Questions?

Thank you! Please, please, please Fill out your survey!! Twitter: @P_Behr LinkedIn: Patrick-Behr Website:patrickbehr.com