CSC Web Programming. Introduction to HTML

Similar documents
CSC Web Technologies, Spring HTML Review

Web Programming Week 2 Semester Byron Fisher 2018

Desire2Learn: HTML Basics

UNIX and Operating System Topics

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

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

Certified HTML5 Developer VS-1029

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

How the Internet Works

What You Will Learn Today

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

11. HTML5 and Future Web Application

HTML & XHTML Tag Quick Reference

HTML and CSS Lecture 15 COMPSCI111/111G SS 2018

CSC 121 Computers and Scientific Thinking

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Creating Web Pages Using HTML

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

HTML: Inline & HTML5 Elements, and More

Certified HTML Designer VS-1027

Programmazione Web a.a. 2017/2018 HTML5

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

HTML Images - The <img> Tag and the Src Attribute

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

A Balanced Introduction to Computer Science, 3/E

Creating Web Pages. Getting Started

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

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

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

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

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

COMPSCI 111 / 111G An introduction to practical computing

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

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

HTML Hyper Text Markup Language

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

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

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

A Brief Introduction to HTML

introduction to XHTML

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

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

INTRODUCTION TO HTML5! HTML5 Page Structure!

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

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

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

Html basics Course Outline

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

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

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Internet Applications Development. Ali Alomari

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

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

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

HTML and CSS. Lecture 14 COMPSCI111/111G S1 2018

COMP519: Web Programming Lecture 4: HTML (Part 3)

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

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

HTML. HTML Evolution

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

HTML Tags <A></A> <A HREF=" CNN </A> HREF

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

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

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

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

Hyper Text Markup Language

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

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

Hyper Text Markup Language

CMPT 165 Unit 2 Markup Part 2

Chapter 4. Introduction to XHTML: Part 1

UNIT II Dynamic HTML and web designing

HTML Markup for Accessibility You Never Knew About

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

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

Management Information Systems

2.1 Origins and Evolution of HTML

Chapter 4 A Hypertext Markup Language Primer

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

LAB 3 CSE 3, Spring 2018 In this lab you will learn and implement some basic html.

Introduction to Computers and Their Applications

Hyper Text Markup Language HTML: A Tutorial

HTML and CSS: An Introduction

I-5 Internet Applications

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

Programming of web-based systems Introduction to HTML5

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

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

Intro to html. --- define every element, attribute, and entity along with the rules for their use

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

2.1 Origins and Evolution of HTML

Basic HTML Lecture 14

HTML Hints & Tips. HTML is short for HyperText Markup Language.

HTML Cheat Sheet for Beginners

Course Overview. Week 1

Announcements. Paper due this Wednesday

SECTION C GRADE 12 EXAMINATION GUIDELINES

Part 1: HTML Language HyperText Make-up Language

INTRODUCTION TO WEB USING HTML What is HTML?

Transcription:

CSC 242 - Web Programming Introduction to HTML

Semantic Markup The purpose of HTML is to add meaning and structure to the content HTML is not intended for presentation, that is the job of CSS When marking up a document, choose the element that provides the most meaningful description of the content

HTML elements <element attribute="value">content</element> <... >: is an opening tag </... >: is a closing tag element: is the name of the element attribute: is a property of an element, there can be zero or more attributes associated with a tag value: is the value of an attribute

Facts About Attributes Attributes have a name and a value Attribute names and values are separated by an equals sign Multiple attributes are separated by spaces Attributes go after the element name in the opening tag When an element has multiple attributes, the order does not matter Most attributes take values, but certain attributes can be described with the name The attributes available to a given element are pre-defined Some attributes are required for a given element

Recommended Basic Document Structure <! DOCTYPE html > <html > <head > <meta charset =" utf -8" > <title > PAGE TITLE </ title > </head > <body > PAGE CONTENT </body > </html >

Components of the Basic Document Structure line 1: the document type declaration lines 2-10: the entire document is contained within an html element lines 3-6: the head element contains descriptive information about the document line 4: This meta element provides information about character encoding line 5: The title element is required in the head element an provides a descriptive title for the document lines 7-9: the body element contains everything that is shown in the browser

Block and inline elements Block elements start on new lines Inline elements do not start a new line Each type of element has a default value, but this can be modified with CSS

Paragraphs and Headings <p>...</p> a paragraph <h1>...</h1> a heading There are six levels of headings: h1, h2, h3, h4, h5, h6 Headings create an outline structure to a document

Unordered Lists <ul>...</ul> an unordered list <li>...</li> a list item example: <ul > <li > Item 1 </li > <li > Item 2 </li > <li > Item 3 </li > <li > Item 4 </li > <li > Item 5 </li > </ul >

Ordered Lists <ol>...</ol> an ordered list <li>...</li> a list item example: <ol > <li > Item 1 </li > <li > Item 2 </li > <li > Item 3 </li > </ol > an ordered list can take a start attribute to change the starting number: <ol start ="3" >

Description Lists <dl>...</dl> a list containing name and value pairs <dt>...</dt> the name or term <dd>...</dd> the value or description example: <dl > <dt > Term 1 </dt > <dd > Description 1 </dd > <dt > Term 2 </dt > <dd > Description 2 </dd > <dt > Term 3 </dt > <dd > Description 3 </dd > </dl >

Tables Tables are used to add tabular material (data arranged into rows and columns) to a webpage Examples: calenders, schedules, and statistics Tables should not be used for layout purposes

Basic Table Elements <table>...</table> tabular content <tr>...</tr> table row <th>...</th> table header <td>...</td> table cell data

Table Example <table > <tr > <th > Column 1 </th > <th > Column 2 </th > <th > Column 3 </th > <tr > <tr > <td > Row 1 Column 1 Data </td > <td > Row 1 Column 2 Data </td > <td > Row 1 Column 3 Data </td > <tr > <tr > <td > Row 2 Column 1 Data </td > <td > Row 2 Column 2 Data </td > <td > Row 2 Column 3 Data </td > <tr > </ table >

Sectioning Elements (HTML5) A sectioning element creates a item in the document s outline structure <section>...</section> a thematic group of content <article>...</article> a self-contained composition <aside>...</aside> identifies content related, but tangential to the main content <nav>...</nav> primary navigation links

Elements for Organizing Page Content (HTML5) <header>...</header> introductory material <footer>...</footer> a footer If a header or footer is within a sectioning element, then it only pertains to that element, not the document <address>...</address> intended to contain contact information for the document s author

Inline Text Elements <em>...</em> stressed emphasis <strong>...</strong> strong importance <b>...</b> visual emphasis <i>...</i> alternate voice <s>...</s> incorrect text <u>...</u> annotated text <small>...</small> legal text; small print

More Inline Text Elements <abbr title="full text">abbreviation</abbr>: abbreviations and acronyms <cite>...</cite>: citations <code>...</code>: computer code <sub>...</sub>: subscript <sup>...</sup>: superscript

Marking Up Quotations <q>...</q> is for marking up short quotations and is an inline element <blockquote>...</blockquote> is for marking up long quotations and is an block element

Breaks and Rules <br> line break <wbr> word break <hr> horizontal rule

Generic Elements <div>...</div> generic block-level element <span>...</span> generic inline element Usually given a class or id attribute to indicate purpose example: <span class =" tel " >484-646 -4389 </ span >

HTML Special Characters Character Named Entity Numeric Entity & & & < < < > > > c R

Links <a>...</a> the anchor element (hypertext link) Requires an href attribute indicating a URL example: <a href =" http :// example. com "> Example </a> The href URL value can be an absolute or relative path

Absolute and Relative URLS Absolute URLSs provide the full URL for a document Relative URLs describe the pathname to a file relative to the current document

External and Internal Links An external link is a link to a document outside of your site An internal link is a link to a document that is part of your site An external link requires the absolute URL including the http:// portion. An internal link can be a relative URL

Images <img> the image element Required attributes: src: source URL alt: alternate text example: <img src =/ image. gif " alt =" an image "> Some additional attributes: height: height in pixels width: width in pixels

Image Formats In order for a web browser to render an image, it must be in one of the following file formats GIF JPEG PNG Additionally, the image file must end in the file extension appropriate for the format.gif,.jpg (or.jpeg), and.png respectively

Image Element Facts The image element is an empty element because it has no content The image element is a replaced element because it is replaced by an external file when the page is displayed The image element is an inline element The bottom edge of an image aligns with the baseline of the text

Image Accessibility Functions of alternative text Read by screen readers in place of images Displayed in place of images when the file is not loaded or the user has chosen not to view images Provides a semantic meaning that can be read by search engines Alternative text can be presented in two ways Within the alt attribute of the img element Within the context of the surroundings of the image