Web Technologies Lecture 2 HTML and CSS. HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the.

Slides:



Advertisements
Similar presentations
Introduction to HTML & CSS
Advertisements

Cascading Style Sheets
Today CSS HTML A project.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
History Leading to XHTML
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Developing a Basic Web Page with HTML
HTML, XHTML, CSS, & JAVAScript ~ an introduction ~
Developing a Basic Web Page Posting Files on UMBC
© Ms. Masihi 1.  A web page is created using a language called, Hypertext Markup Language, better known as HTML Code.  HTML is a user friendly language.
Creating Web Pages with HTML
Creating a Simple Page: HTML Overview
School of Computing and Information Systems CS 371 Web Application Programming HTML The language of the Web.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
Principles of Web Design 6 th Edition Chapter 1 – HTML5.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Creating a Basic Web Page
Working with XHTML Creating a Well-Formed Valid Document.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Asstt. Prof Sonia Sharma Computer Dept 1 HTML ( Hypertext MarkUP Language ) HTML is the lingua franca for publishing hypertext on the World Wide Web.
HTML A brief introduction HTML1. HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
© Dr. Graham Rollings Dr. Graham Rollings, 09 June 2016 HTML & CSS A very High-level Introduction.
HTML 5 AND CSS Dr Mohd Soperi Mohd Zahid Semester /16.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
CSS Cascading Style Sheets Prepared By
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
CSS.
Working with Cascading Style Sheets
DHTML.
Creating a Well-Formed Valid Document
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
Web Systems & Technologies
HTML A brief introduction HTML.
Tutorial 9 Working with XHTML
CIS 133 mashup Javascript, jQuery and XML
Presentation transcript:

Web Technologies Lecture 2 HTML and CSS

HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the building blocks of websites Embedded images and objects Interactive web forms Organized content – Each tag describes different document content – Web browsers interpret the tags and display the result on screen

Brief History 1980 – physicist Berners-Lee (CERN) proposed ENQUIRE a system for sharing documents 1989 – Berners-Lee proposed an Internet based hypertext system 1990 – Berners-Lee wrote a browser and server for it 1991 – 1 st publicly available description of HTML – 18 tags inspired from SGMLSquid – 11 are still used in HTML 4

Brief history 1995 – HTML 2.0 specification is created 1996 – World Wide Web Consortium (W3C) takes over the specifications 1999 – HTML 4.01 specification is published 2000 – HTML becomes an international standard (ISO/IEC 15445:2000) 2004 – work on HTML 5 begins 2014 – HTML 5 standard is finalized

Markup language System for annotating a document Idea derives from the marking up of documents by editors Some languages have predefined presentation semantics (HTML) other do not (XML) Classification – Presentational markup Used by traditional word processing editors Markup hidden from users, editors, authors – Procedural markup Embedded in text Provides instructions on how to process the text Latex, PostScript – Descriptive (semantic) markup Label part of the text rather than providing specific instructions, i.e., decouple the structure from the rendering of the document HTML’s tag

HTML 4 SGML application Three flavors – Strict Deprecated elements are forbidden – Transitional Deprecated elements are allowed – Frameset For frame related elements only Major changes – Adopted many browser specific tags and attributed – Began the transition from visual markup tags to Cascading Style Sheets (CSS) Old HTML: – Text in red New CSS: – Text in red

HTML structure Tags/Elements and attributes – content This is a title Hello world!

HTML metadata Allows to insert extra information in the document Placed inside the tag – Character set encoding – Keywords and description – Refresh page – Author info – Etc.

Transitional vs. strict Transitional is a flavor which enables older version HTMLs to be migrated to version 4 Looser content model – Inline elements and direct text allowed in,,, and tags Presentation elements allowed – Underline ( ), strikeout ( ),,, Presentation attributes allowed – Background, align, bgcolor, vspace, hspace, clear, compact, type, width Other elements – Applet, menu, dir, isindex In addition, in the Frameset flavor replaces and contains tags In the Strict flavor the use of CSS is required for cosmetics

HTML 5 28 October 2014 – specification is released Defines a single markup language which combines a series of features introduced by various specifications and browsers Encourages interoperable implementations – What runs on Firefox should run unchanged on IE or Chrome “Living standard”: can be improved but older features cannot be removed 2011 – 34 out of 100 most popular websites used HTML – 153 of Fortune 500 US companies used HTML 5 on their websites

HTML 5 New syntactic features –,,, Removed deprecated tags –, New page structure tags –,,,,,,, Modified existing tags –,, DOM is part of HTML 5 Not based on SGML anymore Includes the Web Forms 2.0

New APIs APIs that can work with Javascript

More differences Simpler doctype declaration – Simpler character encoding – – Default encoding is UTF-8

Cascading Style Sheets First released in 1996 Style sheet language for describing the presentation of a document written in a markup language – Not restricted to HTML Separates the document content from the presentation – CSS: all heading 1 elements should be bold – HTML: this text should be a level 1 heading

CSS syntax Set of rules – Declaration block Specifies the style sheet Property + value – Example: color:red – Selectors Declare which part of the HTML the style sheet applies to – Elements, classes, pseudo-classes, ids – Example: p.myclass { color:red } Colors all p with the class myclass in the red color Red text Not red text Another red text

Inserting CSS Inline – Internal stylesheet (as any HTML element) p { color:red; font-size:14pt; font-weight:bold; } External stylesheet (in a standalone.css file)

Multiple stylesheets If an element has more than one stylesheet – Example: one internal and one in an external file The more specific style will be applied – I.e., The closest to the element: external  internal  inline Example: External: h1 { color: navy; margin-left: 20px; } Internal: h1 { color: orange; } The style will be color: orange; margin-left: 20px;

CSS 3 Work on the standard started in 1998 Split in modules Most modules are W3C Recommendations and many of the new properties are already implemented in modern browsers Old CSS still present Still many debates – Example: “The CSS Working Group has reached an impasse on the issue of percentage margins (and padding) in flex and grid layout, and needs your input to help decide it.” (May 5, 2015 –

New CSS modules New modules – Selectors – Box Model – Backgrounds and Borders – Image Values and Replaced Content – Text Effects – 2D/3D Transformations – Animations – Multiple Column Layout – User Interface

CSS 3 primer Shadow effects CSS 3: h1 { text-shadow: 2px 2px red; } HTML: Test-shadow effect!

What’s next? Web forms XML & XHTML Javascript – State vs. stateless Dynamic HTML manipulation AJAX – Synchronous vs. asynchronous JQUERY