Bridges To Computing

Similar documents
Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

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

INTRODUCTION TO WEB USING HTML What is HTML?

Html basics Course Outline

Programmazione Web a.a. 2017/2018 HTML5

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

HTML. Based mostly on

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

Certified HTML5 Developer VS-1029

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

HTML CS 4640 Programming Languages for Web Applications

Introduction to Computer Science (I1100) Internet. Chapter 7

By Ryan Stevenson. Guidebook #2 HTML

Introduction to Computer Science (I1100) Internet. Chapter 7

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Basic HTML Lecture 14

Certified HTML Designer VS-1027

HTML and CSS COURSE SYLLABUS

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

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

GRAPHIC WEB DESIGNER PROGRAM

11. HTML5 and Future Web Application

Hyper Text Markup Language HTML: A Tutorial

c122jan2714.notebook January 27, 2014

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

Introduction to HTML

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

HYPERTEXT MARKUP LANGUAGE ( HTML )

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

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

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

HTML & XHTML Tag Quick Reference

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

CMPT 165 Unit 2 Markup Part 2

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

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

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

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

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

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

Announcements. Paper due this Wednesday

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

CSC 121 Computers and Scientific Thinking

Page Layout Using Tables

IMY 110 Theme 7 HTML Tables

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

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

HTML5: MULTIMEDIA. Multimedia. Multimedia Formats. Common Video Formats

Understanding the Web Design Environment. Principles of Web Design, Third Edition

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

Creating A Web Page. Computer Concepts I and II. Sue Norris

Introduction to web development and HTML MGMT 230 LAB

INTRODUCTION TO HTML5! HTML5 Page Structure!

Creating Accessible Web Sites with EPiServer

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

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

A Balanced Introduction to Computer Science, 3/E

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

Final Exam Study Guide

XHTML & CSS CASCADING STYLE SHEETS

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

Designing for Web Using Markup Language and Style Sheets

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

A Brief Introduction to HTML

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

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

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

Website Development with HTML5, CSS and Bootstrap

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

Lab Introduction to Cascading Style Sheets

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

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

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

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

introduction to XHTML

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

Creating Web Pages. Getting Started

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

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

Ministry of Higher Education and Scientific Research

Scientific Communication CITS4008. Designing and Writing Web Pages Rachel Cardell-Oliver 2013 Based on notes by Robyn Owens

Web Designing HTML5 NOTES

Creating and Building Websites

MRK260. Week Two. Graphic and Web Design

Web Programming Week 2 Semester Byron Fisher 2018

Chapter 4 A Hypertext Markup Language Primer

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Web Development IB PRECISION EXAMS

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

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

ID1354 Internet Applications

1 Creating a simple HTML page

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

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

Web Engineering (Lecture 01)

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

Introduction to Web Programming and Design

Block & Inline Elements

Transcription:

Bridges To Computing General Information: This document was created for use in the "Bridges to Computing" project of Brooklyn College. You are invited and encouraged to use this presentation to promote computer science education in the U.S. and around the world. For more information about the Bridges Program, please visit our website at: http://bridges.brooklyn.cuny.edu/ Disclaimers: IMAGES: All images in this presentation were created by our Bridges to Computing staff or were found online through open access media sites and are used under the Creative Commons Attribution-Share Alike 3.0 License. If you believe an image in this presentation is in fact copyrighted material, never intended for creative commons use, please contact us at http://bridges.brooklyn.cuny.edu/ so that we can remove it from this presentation. LINKS: This document may include links to sites and documents outside of the "Bridges to Computing" domain. The Bridges Program cannot be held responsible for the content of 3 rd party sources and sites.

Introduction to Web Programming and Design Lecture 1 Bridges to Computing M. Meyer

Topics Markup Languages Definition Motivation Types HTML Overview Rules, validation Examples About semantic markup

Question What is a language? Verbal Written Visual Programming Markup Simple Answer: A medium for sharing/exchanging information

Markup Languages Markup languages are not the same as programming languages. Programming languages are used to create programs that control the behavior of a machine. C/C++/C#, Java, Processing, Python, JavaScript, PHP, Perl, Markup languages are used for adding information (sometimes called metadata) to text in a way which is distinguishable from that text Latex, SGML, XML, HTML, It is possible to embed programming language statements/commands into a markup language.

Editing/Proofreading symbols (a type of markup language)

Motivation It is possible to send pictures over the Internet, but pictures are large, fixed and difficult to resize It s very cheap and easy to send plain text over the Internet (ASCII, Unicode). However plain text without formatting is difficult to read Markup languages allow us to add information to text, in a manner that is distinguishable from the text Markup languages can be used to enhance the comprehension/understandability of the text

Text vs. Images The letter A. The image Letter A: 1 byte Image A (lettera.gif): 935 bytes

Plain Text (difficult to read) Course description: This course will commence with a general introduction to Multi-Media Computing (MMC), and move on to cover a broad range of subjects including: web design, web programming, graphics, animation, simulation, and game design. Discussions will be introductory and emphasis is on the design and creation of a range of artifacts, including: web pages, with HTML and cascading style sheets; interactive, graphical web-based programs; agent-based simulations and simple computer games and narratives. The format consists of alternating lecture/laboratory class sessions, with STRONG emphasis on hands-on learning. Labs and projects are completed in 2- member (optional) groups. (3 credits) Course structure: The following topics will be covered in 4 curricular units: I. Introduction to Web Programming and Web Design Principles of Web Design; HTML; Cascading Style Sheets (CSS) II. Interactive Web Programming and Graphics Processing III. Agents, Simulations and Visualizations NetLogo IV. Game Programming and Narrative Scratch Class sessions will consist of lectures and hands-on labs.

Text augmented with presentation markup (easier to understand)

Types of Markup Presentational markup: Used by traditional wordprocessing systems, to create a WYSIWYG effect. Examples: add line break, bold face, change font style or color Procedural markup: Provides instructions for programs that are to process the text. Examples: add an image, applet or link to a document Semantic markup: Used to label parts of document and attach additional meaning to those sections. Examples: define the title of a document or declaring that a section of text is an address

Markup Languages Key Terminology Tag: A markup construct that begins with < and ends with >. Tags come in three flavors: Start-tags, e.g. <p> End-tags, e.g. </p> Empty-element tags, e.g. <br/> Element: a component that begins with a start-tag and ends with a matching end-tag, or consists only of an emptyelement tag. e.g. <p>hello, world!</p> Attribute: A construct consisting of a name/value pair that exists within a start-tag or empty-element tag. e.g. <img src= button.jpg alt= button />

Intro to HTML HTML: Hyper-Text Markup Language HTML is a language web servers can use to communicate with computers via web browsers HTML content is delivered in pages, consisting of plain text interspersed with tags Web pages are stored as files on computers called servers, because they serve (i.e. deliver) the content to the computers that want to look at it Web content pages, documents, are stored in files with names ending in.html or.htm

HTML to XHTML to HTML5 XHTML stands for extensible HTML, it s almost identical to HTML 4 XHTML is a stricter and cleaner version of HTML Many pages on the Internet contain bad HTML Browsers are still expected to interpret this bad HTML correctly XHTML is HTML defined as an XML application This allows you to create and define your own tags HTML 5 is the new W3C recommendation (finalized in late 2014). It aims to combine both HTML and XHTML and improve the language with support for the latest multimedia contents.

Basic components of a HTML5 document <!DOCTYPE html> <html> <head> <title>simple HTML5 document</title> </head> <body> some contents </body> </html>

HTML Pages Can Be Validated You can check your.html documents to see if they are valid by going to the following link: http://validator.w3.org/ If your html file violates any rules or is missing any required elements, it will generate errors or warnings. HTML5 specific validation can be enabled by More Options

Writing HTML Many applications can be used to create HTML documents. No matter what you use, the basic underlying HTML is the same For this class, you will use a text editor to write basic HTML: On a PC, this is Notepad, not WordPad or Word On a Mac, this is TextEdit (in plain text mode, not rtf, and be sure to disable the Smart Quotes feature!) On Linux/Unix, this can be pico or emacs or vi or Text Editor Though, there are many excellent cross-platform text editors available, and many of them are free For this class, you will create a file using a text editor and type content and HTML tags into that file. Follow the lab sheets for detailed instructions In the remainder of these notes, you will find a quick reference to basic HTML tags

HTML Tags Reference

Page Tags DOCTYPE declaration has to appear at the top! It s an instruction to the web browser about the HTML version All other elements must be between the <html> tags <!DOCTYPE html> <html> <head> <title>page Title (Appears in browser title bar/tab)</title> </head> <body> <h1>an important heading (Appears within the body)</h1> <h2>a slightly less important heading</h2>t here are other sizes, from <h1> (largest) to <h6> (smallest) <p>a simple paragraph</p> </body> <!--Comment goes here --> </html> Note the difference between header, <head>, and heading, <h1>.. <h6>

Paragraph Tags Paragraphs: <p>this is the first paragraph.</p> <p>this is the second paragraph.</p> Line breaks: This is the first line.<br /> This is the second line. Division: <div>a specific section of text</div> Inline: <span style= color:red >red text color</span> Note: The div element is very often used with CSS to lay out a web page. Browsers usually place a line break before and after the div element.

Character Tags Emphasis: This is <em>interesting</em>! Italics: This is really <i>interesting</i>! Bold: This is <b>boldly interesting</b>! Preformatted Text: <pre> Text in a pre element is displayed in a fixed-width font, and it preserves both spaces and line breaks </pre>

Link Tags A link is a tag that directs your browser to another page if the user clicks on the link. The content of the link tag is: 1. The URL where you want the browser to go if the user clicks on the link, and 2. The text that you want the user to see (i.e., the text that the user will click on to activate the link) Examples: This a link to <a href="http://www.google.com">google</a>. This a link to <a href="http://www.google.com" target=_blank>google</a> that opens up another window.

List Tags Un-ordered list: <ul> <li>the first list item</li> <li>the second list item</li> <li>the third list item</li> </ul> Ordered list: <ol> <li>the first list item</li> <li>the second list item</li> <li>the third list item</li> </ol> Note: You can nest lists!

Table Tags Begin a table with <table> End a table with </table> Begin each row with <tr> and end each row with </tr> Begin each column with <td> and end each column with </td> Options (Note: many of these are replaced by CSS in HTML5) borders (e.g. border= 1 ) cellpadding (padding within a cell) cellspacing (spacing between cells) width and height (in pixels) aligning cell content headings Tricks: empty cells (use ) spanning multiple columns (use colspan= 2 ) Coloring cells: <td bgcolor="red">asdf</td>

HTML5 Multimedia (w3schools.com) Video Before HTML5, no standard for showing videos on a web page, and plug-ins are used to play them HTML5 introduces the <video> element Example <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video>

Audio HTML5 Multimedia, cont (w3schools.com) HTML5 also introduces the <audio> element Example <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>

Where to get help HTML Tags: http://www.w3schools.com/tags/