Introduction to Web Development



Similar documents
CS134 Web Site Design & Development. Quiz1

Fast track to HTML & CSS 101 (Web Design)

Contents. Downloading the Data Files Centering Page Elements... 6

HTML Fundamentals IN THIS APPENDIX

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Introduction to Web Technologies

Web Authoring CSS. Module Descriptor

WEB DEVELOPMENT IA & IB (893 & 894)

Getting Started with KompoZer

Web Development I & II*

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

HTML and CSS. Elliot Davies. April 10th,

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

ICT 6012: Web Programming

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

WordPress and HTML Basics

How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

CST 150 Web Design I CSS Review - In-Class Lab

Lecture 9 HTML Lists & Tables (Web Development Lecture 3)

Dreamweaver CS5. Module 1: Website Development

Web Authoring. Module Descriptor

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

How To Write A Web Page In Html

Simply download Beepip from and run the file when it arrives at your computer.

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

CIS 467/602-01: Data Visualization

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Introduction to web development using XHTML and CSS. Lars Larsson. Today. Course introduction and information XHTML. CSS crash course.

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Website Planning Checklist

Introduction to web development and JavaScript

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

Guide to B2B marketing. Part Three: Building great s

CREATING WEB PAGES USING HTML INTRODUCTION

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Internet Technologies_1. Doc. Ing. František Huňka, CSc.

Appendix H: Cascading Style Sheets (CSS)

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Web. Programming. Hans- Pe0er Halvorsen, M.Sc. h0p://home.hit.no/~hansha/?page=sojware_development

Introduction to XHTML. 2010, Robert K. Moniot 1

Learnem.com. Web Development Course Series. Learn em. HTML Web Design in 7 days! By: Siamak Sarmady

Intro to Web Design. ACM UIUC

Website Development Komodo Editor and HTML Intro

ITNP43: HTML Lecture 4

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

What is a Web Browser? Web Site Functionality. A client program that uses HTTP to communicate with web servers.

Mobile Publishing. Academy of Journalism and Media, Faculty of Economic Sciences, University of Neuchâtel Switzerland

IAS Web Development using Dreamweaver CS4

Web page design in 7 days!

Course: CSC 224 Internet Technology I (2 credits Compulsory)

Links Getting Started with Widgets, Gadgets and Mobile Apps

JJY s Joomla 1.5 Template Design Tutorial:

Chapter 16 Exercises and Answers

TIME SCHEDULE OBJECTIVES

Using Adobe Dreamweaver CS4 (10.0)

Dreamweaver. Introduction to Editing Web Pages

Make it SASsy: Using SAS to Generate Personalized, Stylized, and Automated Lisa Walter, Cardinal Health, Dublin, OH

Welcome to CSE 330 Crea0ve Progamming and Rapid Prototyping. Course Informa0on

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Web Developer Jr - Newbie Course

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Further web design: Cascading Style Sheets Practical workbook

IT3503 Web Development Techniques (Optional)

Agenda. 1. ZAPms Konzept. 2. Benutzer-Kontroller. 3. Laout-Aufbau. 4. Template-Aufbau. 6. Konfiguration. 7. Module.

any other form. the information on these sites is volatile and subject to constant changes. other records are created through these sites.

Enduring Understandings: Web Page Design is a skill that grows and develops throughout the careful planning and study of software and design.

Chapter 1. Introduction to web development

Web Design Technology

Introduction to Web Design Curriculum Sample

HTML5 & CSS3. ( What about SharePoint? ) presented

Advanced Drupal Features and Techniques

HTML and CSS 2 Class Meetings Instructor Contact Office Hours: Tuesdays 5:30-7:30 PM Online Class Message List Opt Out of Class

Creating Web Pages with HTML Simplified. 3rd Edition

Chapter 1 Introduction to web development and PHP

Web Technology Lecture 1: Introduction

Web layout guidelines for daughter sites of Scotland s Environment

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

FOUNDATION OF INFORMATION TECHNOLOGY Class-X (TERM II)

Style & Layout in the web: CSS and Bootstrap

Lesson Review Answers

What is HTML? a)hyper Text Marking Language b) Hyper Text Machine Language c)hyper Text Middle Language d)hyper Text Markup Language

^/ CS> KRIS. JAMSA, PhD, MBA. y» A- JONES & BARTLETT LEARNING

IT3504: Web Development Techniques (Optional)

Learnem.com. Web Development Course Series. Quickly Learn. Web Design Using HTML. By: Siamak Sarmady

CST 150 Web Design and Development I Midterm Exam Study Questions Chapters 1-3

HTML, CSS, XML, and XSL

Web Design and Development Program (WDD)

Web Development 1 A4 Project Description Web Architecture

Dreamweaver CS3 THE MISSING MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLY 8 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

Cascading Style Sheets (CSS)

Transcription:

Introduction to Web Development Week 2 - HTML, CSS and PHP Dr. Paul Talaga 487 Rhodes paul.talaga@uc.edu ACM Lecture Series University of Cincinnati, OH October 16, 2012 1 / 1

HTML Syntax For Example: HTML Document is a Tree of Elements <tag options? >... </tag> Options are name="value" <a href="http://cnn.com">the News</a> <form action="https://www.paypal.com" method="post"> Form here</form> <img src="mypic.jpg" alt="my House"> <br> XHTML exception: Non paired tags require a / to end element <br /> or <img src="mypic.jpg" alt="my House" /> 2 / 1

HTML Versions World Wide Web Consortium (W3C) HTML 3.2 (Jan 1997) HTML 4.0 (Dec 1997) Strict Transitional Frameset HTML 4.01 (1999) (same 3) XHTML 1.0 (1999) (Essentially HTML 4.01 but in XML) Each version is specified by a Document Type Definition (DTD) document, which defines the syntax, tags allowed, and semantics. Syntax rarely changes, but elements(tags), nesting, and semantics do. 3 / 1

XHtml 1.0 Strict - Classes of Elements Structure, Head, Block, & Inline Structure defines part of HTML document (<html>..</html>) Head declares extra non-page information. (<title>..</title>) Block are elements which define a rectangle on the page and can have margins, etc. (<p>..</p>) Inline are elements which apply to the flow of text. (<b>..</b>) Nesting can be tricky! http://validator.w3.org/ http://fuzzpault.com/chxhtml/htmlhelp.php 4 / 1

XHtml 1.0 Strict - Structure Structure Elements & Attributes <html>..</html> (R) Root element of document. Req Attr: xmlns="http://www.w3.org/1999/xhtml" <head>..</head> (R) Delimits extra page information <body>..</body> (R) Displayable content. 5 / 1

XHtml 1.0 Strict - Head Head Elements & Attributes <title>..</title> (R) Page title. Used in Window bar and Bookmarks (Favorites) <meta>..</meta> Extra page information, like description, keywords, author. <meta name="keywords" content="chxhtml, Haskell, htmlhelp" /> <style>..</style> Embedded style information. <link>..</link> Link to external document, like a stylesheet. <link rel="stylesheet" type="text/css" href="mystyle.css" /> <script>..</script> Define JavaScript code. 6 / 1

Your first Web Page! 1 Start a new document test.html. 2 Type (or copy paste) this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>my First Web Page!</title> </head> <body> <h1>my First Web Page!</h1> </body></html> 3 Open test.html in browser (Opera, Chrome, Firefox, IE). 7 / 1

XHtml 1.0 Strict - Block (Part I) Block elements can contain block or inline elements. Check CHXHtml! Block Elements <p>..</p> Paragraph. <h1>..</h1> Highest level heading. All the way to <h6>..</h6>. <blockquote>..</blockquote> Quoted block, indented from both margins. <hr /> Horizontal rule. <pre>..</pre> Preformatted text. Displayed exactly as written. 8 / 1

XHtml 1.0 Strict - Inline (Part I) Inline elements can contain inline elements, but not block. Check CHXHtml! Inline Elements <em>..</em> Emphasis (italics). <strong>..</strong> Bold. <br /> Forced line break. <q>..</q> Inline quotation. <a>..</a> Anchor. Attr: href, title, tabindex,... 9 / 1

XHtml 1.0 Strict - Inline A Element <a href="http://cnn.com" title="where?">news Here!</a> Two types of URL in A Element Absolute href="http://yahoo.com/thenews" Relative href="pages/other.html" Relative to the current location, go to pages/other.html Relative (backup) href="../pages/other.html" Relative to the current location, go back one folder, then pages/other.html Using Fragment Identifiers Say some test.html had this tag in it: <p id="news">..</p> A link to that news would be <a href="test.html#news">the news</a> 10 / 1

HTML Special Characters How do you display HTML or special characters? Special Characters & is & Ampersand. " is " Double quote. c Copyright. R Registered. TM Trademark. Non-breaking space, don t line wrap. Others http://www.w3.org/markup/html-spec/html-spec_13.html http://www.utexas.edu/learn/html/spchar.html http://www.webmonkey.com/2010/02/special_characters/ 11 / 1

XHtml 1.0 Strict - Block (Part II) More Block Elements <ul>..</ul> Unordered list. (Requires <li>..</li>) <ol>..</ol> Ordered list. (Requires same) <li>..</li> List item, inside a ul or ol. <dl>..</dl> Definition list. (requires dt or dd) <dt>..</dt> Definition term in dl. <dd>..</dd> Definition of a term in dl. <table>..</table> Table of cells. (Requires tr) <tr>..</tr> Table row.. (Requires th or td) <th>..</th> Table header. <td>..</td> Table data. 12 / 1

Wrap up HTML Part I html head body title meta style link script p h1 pre hr em q a strong em q ul ol li dl dt dd table tr th td 13 / 1

PHP PHP: Hypertext Preprocessor Server Side Scripting Language Evolved from Common Gateway Interface (CGI) Interpreted! Typeless Object oriented from 3 onward, now 5. Part of the LAMP stack Not Secure! Can easily expose security problems! Widely used: Facebook MediaWiki, Joomla, Wordpress, Concrete5, MyBB, and Drupal. Can be compiled to C++: HipHop (Facebook) 50% speedup 14 / 1

Cascading Style Sheets (CSS) Syntax Describes presentation! http://www.w3.org/tr/css21/propidx.html selector { property: value; property2: value2;... } /* comment */ selectors define where to apply the style. properties define what to change. values define what it should be. 15 / 1

Cascading Style Sheets (CSS) - Where? Where can we put style information? Embedded <title>my First Web Page!</title> <style> body { background-color: #f70; color: #000;} h1 { color: #00f;} </style> Inline <body> <h1 style="color: #00f;">My First Web Page!</h1> </body>... External <link href="/mystyle.css" rel="stylesheet" type="text/css" /> 16 / 1

Example <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>my First Web Page!</title> <style> body { background-color: #f70; color: #000;} h1 { color: #00f;}.bla { background-color: #000; color: #fff; margin: 10px;} </style> </head> <body> <h1>my First Web Page!</h1> <p class="bla">more here!<p> </body></html> 17 / 1

What can you change? Text - Size, font, color, shadow, http://www.typetester.org/ http://www.google.com/webfonts Positioning blocks - margins, padding, borders, background color (Week 5) http://www.csszengarden.com/ Lists - Bullet icons Display vs Print settings. <link rel="stylesheet" type="text/css" media="print" href="print.css" /> 18 / 1