HTML: Inline & HTML5 Elements, and More

Similar documents
CSC Web Programming. Introduction to HTML

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

Certified HTML5 Developer VS-1029

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

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

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

Using CSS for page layout

HTML CS 4640 Programming Languages for Web Applications

The University of Hawaii at Manoa Library Webpage Content/Design/Style Guidelines General Site Design... 2

Certified HTML Designer VS-1027

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

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

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

HTML Hyper Text Markup Language

QUICK REFERENCE GUIDE

Midterm Review. October 17

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

INTRODUCTION TO HTML5! HTML5 Page Structure!

HTML 5 and CSS 3, Illustrated Complete. Unit K: Incorporating Video and Audio

Brief Intro to HTML. CITS3403 Agile Web Development. 2018, Semester 1

CMPT 165 Unit 2 Markup Part 2

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

Introduction to HTML5

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

GRAPHIC WEB DESIGNER PROGRAM

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

Attributes & Images 1 Create a new webpage

New Media Production HTML5

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

introduction to XHTML

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

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

HTML Organizing Page Content

AGENDA. HTML CODING YOUR HOMEPAGE [ Part IV ] :: NAVIGATION <nav> :: CSS CODING FOR HOMEPAGE [ <nav> & child elements ] CLASS :: 13.

Hyper Text Markup Language


HTML Organizing Page Content

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

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

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

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Mobile MOUSe WEB SITE DESIGN ONLINE COURSE OUTLINE

HTML5. 10 Things to Know. Webster University. ! R. Scott Granneman

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

Website Development with HTML5, CSS and Bootstrap

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

CSC Web Technologies, Spring HTML Review

11. HTML5 and Future Web Application

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

Skyway Builder Web Control Guide

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

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

An Introduction To HTML5

Create a three column layout using CSS, divs and floating

Micronet International College

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

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

Management Information Systems

HTML and CSS COURSE SYLLABUS

Hyper Text Markup Language

LECTURE 3. Web-Technology

HTML. Based mostly on

for Beginners COPYRIGHT NATIONAL SEMINARS TRAINING. ALL RIGHTS RESERVED.

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

Introduction to Computer Science Web Development

Programmazione Web a.a. 2017/2018 HTML5

Where to get Images.

Introduction to WEB PROGRAMMING

By completing this practical, the students will learn how to accomplish the following tasks:

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

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

Duke Library Website Preliminary Accessibility Assessment

Html basics Course Outline

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Creating Buttons and Pop-up Menus

SEO According to Google

How to lay out a web page with CSS

Chapter 1 True/False Instructions: Circle T if the statement is true or F if the statement is false.

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

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

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

HTML TUTORIAL ONE. Understanding What XHTML is Not

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

HTML: Introduction CISC 282. September 11, What is HTML?

HTML (Hypertext Mark-up language) Basic Coding

HTML. MPRI : Web Data Management. Antoine Amarilli Friday, December 7th 1/28

What You Will Learn Today

Data Visualization (DSC 530/CIS )

CSCU9B2: Web Tech Lecture 3

Styles, Style Sheets, the Box Model and Liquid Layout

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

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

HTML. HTML Evolution

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

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

Chapter 4 A Hypertext Markup Language Primer

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

FEWD START SCREENCAST!!!!

Hyperlinks, Tables, Forms and Frameworks

Transcription:

HTML: Inline & HTML5 Elements, and More CISC 282 September 20, 2017 Semantic HTML HTML is used to define content Choose tags according to content, not style What category (defined with tags) suits your text? You may not like how it looks...... but you can change that elsewhere Stylesheets handle the appearance 2

MIME Types Multipurpose Internet Mail Extensions Method for specifying a resource's type Originally defined for e-mail use Used by many web protocols Declared using metadata Using XHTML (for legacy reasons)? Must declare your resources' types to use them and for others to make use of them Declare your page's type in the header for validation <meta http equiv="content Type" content="text/html;charset=utf 8" /> 3 MIME Types Format: category/subcategory Type MIME Type Description AV video/quicktime QuickTime movies audio/mpeg MPEG or MP3 Image image/gif GIF image image/jpeg JPEG image image/png PNG image Text text/css CSS stylesheet text/html HTML webpage text/javascript JavaScript program 4

Basic Inline Elements Code <code>content</code> Denotes computer code or technical material Line break <br/> Inserts a new line Be careful not to overuse! Try to separate material using block elements Abbreviation <abbr title="full">content</abbr> Specifies an abbreviation Full title is displayed as a tooltip on mouseover 5 Basic Inline Elements Emphasis <em>content</em> <strong>content</strong> Emphasizes or strongly emphasizes text <i> and <b> are considered passé Superscript <sup>content</sup> Raises content and reduces size (by default) Subscript <sub>content</sub> Lowers content and reduces size (by default) 6

Images <img src="path" alt="description" /> Displays an image on the page path can be a URL, absolute or relative URL: http://validator.w3.org/images/w3c.png Absolute: /images/w3c.png Begins from document root on web server The absolute path for you is /~NetID/ Relative:../images/w3c.png With respect to the current file's path description (i.e., the alt text) is essential for accessibility Used by screen readers Displayed if there's no image at path 7 Images Optional attributes width = "#" or width = "%" height = "#" or height = "%" Sets width or height of image Can be # of pixels or % of the page An img is actually somewhat inline and somewhat block Produces interesting behaviour and style options 8

Anchors <a href="path">content</a> Specifies a hyperlink to a file or target For file, path can be a URL, absolute or relative http://fortuito.us/diveintohtml5/index.html /index.html../../index.html Targets are created using id attribute Common to all block and inline tags <h1 id="links">links</h1> <a href="#links">click here for links!</a> <a href="index.html#links">links are here!</a> 9 Anchors Anchors are inline elements In theory, should only wrap other inline elements XHTML prefers this but that's not always feasible In HTML5, anchors can wrap multiple elements Even multiple block elements just not another a element 10

HTML Outline The # in a heading <h#> represents its rank Nested headings create an outline Known as implicit sectioning Based on rank <h1>a</h1> <h2>b</h2> <h3>c</h3> <h3>d</h3> <h2>e</h2> <h3>f</h3> <h1>g</h1> 1. A 1.1. B 1.1.1. C 1.1.2. D 1.2. E 1.2.1. F 2. G 11 HTML5 Outline Elements <header>content</header> Introductory content (e.g., title) <nav>content</nav> Set of links (e.g., main menu) content</article> Self-contained content (e.g., content on cats) content Thematic grouping of content (e.g., section on catnip) Typically starts with a heading Can contain a header and footer 12

HTML5 Outline Elements <aside>content</aside> Set of tangentially-related content (e.g., links to information about dogs) <footer>content</footer> Concluding content (e.g., copyright) Why use these outline elements? Semantic HTML Use accurate and meaningful tags to organize content Additional styling options 13 HTML5 Outline Elements Sections can also contain articles e.g., section of search results on blog posts Section headings can restart rank #'s nav should be used for site navigation, not all sets of links Typically primary navigation (e.g., main menu) Often secondary navigation (e.g., sidebar menu) These tags are only supported by IE in version 9 and up IE8 or older treats these elements as inline Older versions of other browsers have better support 14

HTML5 Outline Both sections and headings form the outline Heading rank & nesting in blocks should be consistent Inconsistency will affect the outline Consistent Consistent Avoid <h1>a</h1> <h1>b</h1> <h2>c</h2> <h2>d</h2> <h1>e</h1> <h1>a</h1> <h2>b</h2> <h3>c</h3> <h3>d</h3> <h2>e</h2> <h2>a</h2> <h3>b</h3> <h1>c</h1> <h2>d</h2> <h1>e</h1> 15 Other HTML5 Elements These elements won't be covered in CISC 282... but they are noteworthy canvas provides drawing features (e.g., lines, shadows) Need to use JavaScript to draw Not accessible for adaptive tech (e.g., screen readers) audio and video which supports different formats Can display controls Can autoplay and loop Don't typically do this for audio, though Even more tags! figure, mark, meter, time, etc. 16