Web Programming Week 2 Semester Byron Fisher 2018

Similar documents
CSC Web Programming. Introduction to HTML

CSC Web Technologies, Spring HTML Review

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

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

How the Internet Works

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

CSC 121 Computers and Scientific Thinking

Desire2Learn: HTML Basics

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

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

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

Programmazione Web a.a. 2017/2018 HTML5

11. HTML5 and Future Web Application

A Balanced Introduction to Computer Science, 3/E

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

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

Hyper Text Markup Language

HTML & CSS. Rupayan Neogy

HTML Hyper Text Markup Language

Basic HTML Handout & Exercise Web Technology

Course Overview. Week 1

HTML and CSS COURSE SYLLABUS

Html basics Course Outline

Hyper Text Markup Language

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

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

introduction to XHTML

HTML & XHTML Tag Quick Reference

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

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

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

c122jan2714.notebook January 27, 2014

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

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

Introduction to HTML

Structure Bars. Tag Bar

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

A website is a way to present your content to the world, using HTML to present that content and make it look good

INTRODUCTION TO HTML5! HTML5 Page Structure!

Creating Web Pages. Getting Started

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

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

UNIX and Operating System Topics

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

Chapter 2. Self-test exercises

Certified HTML5 Developer VS-1029

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

INTRODUCTION TO WEB USING HTML What is HTML?

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

html & css basics class one intro to HTML, HTML page structure, text, images, & links

Part 1: HTML Language HyperText Make-up Language

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

Introduction to Computer Science Web Development

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

It is possible to create webpages without knowing anything about the HTML source behind the page.

Basic HTML Lecture 14

Last class we looked at HTML5.

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

TEST NAME: MMWD 4.01 TEST ID: GRADE:09 - Ninth Grade Twelfth Grade SUBJECT:Computer and Information Sciences TEST CATEGORY: My Classroom

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

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

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

Developing a Basic Web Page

Web Development and Design Foundations with HTML5 8th Edition

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

By Ryan Stevenson. Guidebook #2 HTML

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

Designing and Developing a Website. 7 May Examination Paper. Time: 3 hours

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

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

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

INFS 2150 / 7150 Intro to Web Development / HTML Programming

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

Introduction to Computers and Their Applications

HTML CS 4640 Programming Languages for Web Applications

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

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

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

HTML and CSS a further introduction

HTML Overview formerly a Quick Review

HTML. HTML Evolution

HTML & CSS. Lesson 1: HTML Basics Lesson 2: Adding Tables Lesson 3: Intro to CSS Lesson 4: CSS in more detail Lesson 5: Review

Your Own Web Page; Quick and Dirty Via Mashup Reminder: Next Quiz on 4/15

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

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.

Announcements. Paper due this Wednesday

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

Deccansoft Software Services

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

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

Introduction to Computer Science (I1100) Internet. Chapter 7

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

HTML and CSS: An Introduction

Tutorial. Activities. Code o o. Editor: Notepad Focus : Text manipulation & webpage skeleton. Open Notepad

Introduction to Computer Science (I1100) Internet. Chapter 7

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

Creating Web Pages Using HTML

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

Transcription:

Web Programming Week 2 Semester 1-2018 Byron Fisher 2018

INTRODUCTION Welcome to Week 2! In the next 60 minutes you will be learning about basic Web Programming with a view to creating your own ecommerce website by the end of this semester.

BASIC HTML RULES HTML is a markup language for describing web pages. A markup language is a set of tags that you use to describe the document content. Web browsers (like Safari, Firefox and Chrome) read these tags and render the content accordingly.

BASIC HTML RULES HTML stands for HyperText Markup Language Each HTML tag describes different document content

BASIC HTML RULES Most tags are paired, one opens and the other closes eg: <tag></tag> Some tags like images <img />, breaks <br />, horizontal lines <hr /> are empty tags, they open and close together

BASIC HTML RULES Tags can be nested, for example tags within tag. But they must be closed in the same order they were open <first><second><third> </third></second></first> is good <first><second><third> </first></second></third> is bad

HTML ELEMENT SYNTAX Start Tag Values Content <p id="unique" class="foo">this is a paragraph.</p> Attribute End Tag

COMMENTS HTML also supports comments Comments are text that is not read by the browser It lets programmers put notes inside their code Useful when working in a group and other people are trying to understand the structure of your code How to write a comment: <!-- This is a comment in HTML -->

END PART ONE

BASIC HTML STRUCTURE A HTML document is made up of two main sections. The <head> The <body>

BASIC HTML STRUCTURE A skeleton HTML document looks like this (the indentation is optional but it makes code a lot easier to read). <!doctype HTML> <html> <head> <title>title goes here</title> <!-- Stuff you can t see --> </head> <body> <!-- Stuff you can see --> </body> </html>

WHAT DOES THIS MEAN? <head> This section is where you can specify attributes such as the page title. This is also where you would include code to style the page. Can also put <meta tag /> like the author/s of the website

WHAT DOES THIS MEAN? <body> This is where you put all of your content. Anything you want visitors to see goes here. Content put in the body should be enclosed in the relevant tag.

TEXT TAGS There are two main sets of tags for describing text, the first is the heading. Headings range from <h1> to <h6> (try and see the difference as the numbers increase). <!doctype HTML> <html> <head> <title>title goes here</title> </head> <body> <h1>i am a heading</h1> <h6>i am another heading</h6> </body> </html>

TEXT TAGS The other is the paragraph. <p></p> <!doctype HTML> <html> <head> <title>title goes here</title> </head> <body> <p>i am a paragraph</p> </body> </html>

NEW LINE There are two ways to create new lines. <br /> <hr /> <!doctype HTML> <html> <head> <title>title goes here</title> </head> <body> <p>put text on a <br />new line.</p> <p>or put a horizontal <hr /> line here</p> </body> </html>

END PART TWO

ADVANCE HTML Now that you have some pictures, let s use them in your site. Images can be included in a HTML document using the <img /> tag. <html> <body> <!-- Use single word file names, don't include spaces --> <img src="yourphoto.jpg" /> </body> </html>

ADVANCE HTML If you want to create a list there are two kinds. Numbered (ordered) and bullet points (unordered). This is an ordered list <ol> <li>item 1</li> <li>item 2</li> </ol> This is an unordered list <ul> <li>item 1</li> <li>item 2</li> </ul>

ADVANCE HTML If you want to represent tabular data, we have the <table> tag. <tr> defines a row <td> is a cell in a row <table border="1"> <thead> <th>first Column</th> <th>second Column</th> </thead> <tbody> <tr> <td>hello</td> <td>there</td> </tr> </tbody> </table>

BLOCK vs INLINE ELEMENTS You may have seen already that some HTML elements render on a new line and some do not. Ones that render on a new line are called block elements. They always start on a new line and take up the full width available. Ones that don t are called inline elements. An inline element does not start on a new line and only takes up as much width as necessary.

BLOCK vs INLINE ELEMENTS Block Elements (Think of a building block) <header></header> <footer></footer> <nav></nav> <main></main> <section></section> <div></div> <p></p> <h1></h1>, <h2></h2>... <h6></h6> <ul></ul> / <ol></ol> <li></li> Inline Elements (Align next to each other) <a></a> <span></span> <img /> <br /> <em></em> <strong></strong> <input />

BLOCK vs INLINE ELEMENTS With nested tags, inline element must go within a block element. A block element CAN NEVER go into a inline element. Block elements can go into block elements, and inline elements can go into inline elements

BLOCK vs INLINE ELEMENTS <block><block><inline> </inline></block></block> is good <block><inline><inline> </inline></inline></block> is good <block><inline><block> </block></inline></block> is bad <inline><inline><block> </block></inline></inline> is bad

PAIRED and EMPTY TAGS <i> </i> is a paired tag <br> <hr> are examples of empty tags In paired tags, the first tag is referred as an Opening Tag and the second tag to as Closing Tag. An empty tag does not have a companion tag.

HTML5 SEMANTIC ELEMENTS Semantics is the study of the meanings of words and phrases in language. Semantic elements are elements with a meaning. A semantic element clearly describes its meaning to both the browser and the developer.

HTML5 SEMANTIC ELEMENTS Examples of non-semantic elements: <div> and <span> - Tells nothing about its content. Examples of semantic elements: <form>, <table>, and <img /> - Clearly defines its content.

HTML5 SEMANTIC ELEMENTS HTML5 introduces a bunch of new elements to help build the website for the developers, browsers and other devices to understand the site better. It also helps makes it possible for search engines to identify the correct web page content.

HTML5 SEMANTIC ELEMENTS <header> The <header> element specifies a header for a document or section. The element should be used as a container for introductory content. <nav> The <nav> element defines a set of navigation links. The element is intended for large blocks of navigation links.

HTML5 SEMANTIC ELEMENTS <footer> The<footer> element specifies a footer for a document or section. A footer typically contains the author of the document, copyright information, links to terms of use, contact information, etc

HTML5 SEMANTIC ELEMENTS There are a range of additional semantic elements that HTML5 introduces. Can you name identify some more? <html> <body> <header> <h1>byron s Shop</h1> </header> <nav> Links go in here... </nav> <footer> Byron Fisher <footer> </body> </html>

RECAP Join my kahoot.it quiz To understand where everyone is at with communication, and knowledge please join the quiz!

WEEK 2 REVIEW Any questions :3?