Semantics vs. Style Importance of Standards Why we follow the rules.

Slides:



Advertisements
Similar presentations
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
Advertisements

It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Rommel Anthony Palomino Summer 2011.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
CSIS-401: Web Design Dr. Breimer. Outline 1.Web Design is a diverse field 2.Standards are really important 3.Web is going “old school” 4.Why is the separation.
Server-Side vs. Client-Side Scripting Languages
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
CSIS-390: Web Application Development Important Background about the field of Web Design Dr. Breimer.
Tutorial 1 Developing a Basic Web Page
MWD1001 – Website Production Web Browsers Week 11.
Developing a Basic Web Page with HTML
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Web Design Basic Concepts.
The Internet as a Publishing Channel Teppo Räisänen LIIKE/OAMK.
Chapter 1 Highlights CSIS-390.  A graduate of Oxford University  wrote the first web client and server in  His specifications of URIs, HTTP and.
And Mobile Web Browsers
Creating a Simple Page: HTML Overview
1 Networks and the Internet A network is a structure linking computers together for the purpose of sharing resources such as printers and files Users typically.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Looking Good Online Design and Presentation of Websites 1.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
Web Browsers And Mobile Web Browsers. Guiding Questions What is a mobile Web browser? Why do Web pages look differently on different Web browsers? What.
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.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
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 & CSS By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
Introduction to HTML Tutorial 1 eXtensible Markup Language (XML)
Web Standards Web Design – Sec 2-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
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.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
Tutorial 1 Developing a Basic Web Page. Objectives Learn the history of the Web and HTML Describe HTML standards and specifications Understand HTML elements.
Cascading Style Sheets
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
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.
Presented by Luke St Jack!.  Web browsers a type of application that are capable of translating html data from websites and other sources into a readable.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Website Design, Development and Maintenance ONLY TAKE DOWN NOTES ON INDICATED SLIDES.
Thực hiện: D3 GVLT: BROWERS. Browser Compatibility I Check the compatibility II Tools III.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
History Before designing web pages it is important to know how it all came about… History Channel – The Invention of the Internet History Channel – The.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Website Design and Construction Services and Standards.
And Mobile Web Browsers
Web Browsers & Mobile Web Browsers.
History Before designing web pages it is important to know how it all came about… History Channel – The Invention of the Internet Start at 17mins.
CSIS-401: Web Design Dr. Breimer.
Chapter 1 HTML, XHTML, and the World Wide Web
Why use Web Standards?.
And Mobile Web Browsers
And Mobile Web Browsers
Presentation transcript:

Semantics vs. Style Importance of Standards Why we follow the rules

Semantic vs Style Semantic  Meaning This is a picture of a tiger A caption is meaningful. Images typically have a caption that describes the image. Style   Appearance This is a picture of a tiger Here, we specify how to display the caption but not the fact that it’s actually a caption.

Semantics + CSS Figure 1 Figure 2 Figure 3 … Figure 99.caption { font-size: 10pt; font-style: italic; }

Problem with Presentational HTML Sub-title 1 Figure 1 Sub-title 2 Figure 2 Figure 3 … Sub-title 99 Figure 999 How would you change the font-size of all the figure captions but not the sub-titles?

History Lesson: The Good Times Standardization was very important in the initial design of HTML HTML was 100% structural/semantic Designers would create style sheets that could be used, but The presentation was determined by the device and the user settings Users could define their own style sheet – Favorite background color – Preferred font type and size

History Lesson: The Bad Times Netscape & Microsoft Internet Explorer supported style tags ( for example) so that web page designers could control the presentation. CSS existed, but presentation HTML was supported for novice designers Eventually, presentation HTML become more commonly used than CSS

History Lesson: Browser Wars Netscape vs. Microsoft Internet Explorer Added many proprietary enhancements to HTML ( ) – Proprietary = Not Open Source – Not standard = Only works in specific browsers Web designers would use HTML tags to control the visual appearance, but these tags were implemented differently on each browsers. Web pages that looked good on one browser would break on other browsers. In 1998, the web development community and W3C said “Enough is enough”

W3C – What is it anyway? The World Wide Web Consortium (W3C)World Wide Web Consortium – international consortium of web developers – sub-organizations, full-time staff, web experts Work together to develop Web standards

HTML5 and WHATWG Web Hypertext Application Technology Working Group – Pioneers of HTML5, which better supports web applications, and the idea of a living standard. founded by individuals of Apple, the Mozilla Foundation, and Opera Software in 2004 who were increasingly concerned about the W3C’s direction with XHTML, lack of interest in HTML and apparent disregard for the needs of real-world authors.

Fixed vs. Living standard Fixed Example HTML 3.0 Once the rules are established, they cannot be changed. After some time, all the good ideas are implemented in a new standard – HTML 4.0 Living Example HTML 5 Initial standard is established based on previous work Good ideas can be immediately adopted into the living standard – progressive improvement rather than incremental.

Fixed standard Pro Companies implement browsers, servers and tools using a specific standard (HTML 4.0) Developers make website and applications using the same specific standard (HTML 4.0). Since everyone is using the same fixed standard, websites and applications are more stable and less buggy. Con Even if the W3C likes a new innovation, they might still want to consider other innovations before they publish a new standard (4.01) Developers end up waiting along time before they can use the innovation in a standard way.

Living standard Pro Companies update browsers based on the current live standard, which is progressively improving. Thus, designers can start using innovations faster. Con Designers and vendors aren’t using the exact same standard, so things are more likely to break It is often unclear if a browser supports a new innovation. Fixed standards were clearer and more transparent.

Why Living may be better than fixed Fixed Web browsers need to be backward compatible with old standards, i.e., HTML 1.0, 2.0, 3.0, etc., otherwise old websites will break. Thus, browsers need to support too many old standards and they get too complex and bloated Old websites should really be updated to the latest standard Living Web browsers only need to support the current living standard. But, the current standard does its best to be backward compatible. If something gets dropped from the standard it is for good reason, and designers should stop using it. Websites may break, but it may be for very good reasons.

Why Standards? Advantages 1.Accessibility 2.Forward Compatibility 3.Simpler and Faster Development 4.Faster Download & Display

Why Standards? 1.Accessibility 2.Forward Compatibility 3.Simpler and Faster Development 4.Faster Download & Display Standardized web pages look good on all browsers. And on all different types of devices. – iPhone, Android – Tablets, watches – Screen readers for the visually impaired

Why Standards? 1.Accessibility 2.Forward Compatibility 3.Simpler and Faster Development 4.Faster Download & Display Future standards are built on top of current standards Thus, Web pages made today should work in the future Unless there is a really good reason to make them break.

Why Standards? 1.Accessibility 2.Forward Compatibility 3.Simpler and Faster Development 4.Faster Download & Display Faster: You don’t have to build separate websites for separate browsers/devices Concurrent Development: Content and style can be developed separately by different teams.

Why Standards? 1.Accessibility 2.Forward Compatibility 3.Simpler and Faster Development 4.Faster Download & Display Style/Appearance tags are bloated Rather than load bloated presentational HTML for every page, just load one style sheet for an entire website

Rendering Engines Some web browsers actually have different rendering engines for parsing different versions of HTML. The and tag can tell a browser which engine to use.

Rendering Engines Standard, validated HTML code can be rendered faster. – Rendering engine doesn’t have to handle special cases and errors Most web browsers can display Non-standard HTML, – The rendering engine must actually try to autocorrect you HTML syntax errors – auto correction slow things down and doesn’t always work

Standards: Big Motivation The devices we use are becoming more diverse Tablets, phones, iPods, watches, huge displays W3C wants WWW to fully work regardless of devices properties. Non-standard websites may NOT display properly on many types of devices. More importantly, non-standard page page may NOT be able to be parsed or process when they are used in larger applications.

Validate Validate Validate It’s a pain but… At least you know that your web page will display properly on hundreds of different browser variations that now support HTML5.

Summary Originally HTML was meant to be a standard structural/semantic language The browser wars lead to the de-standardization of HTML, CSS, and JavaScript. – Proprietary code and technology (Flash for example) became popular. Standardization has made a comeback and HTML5 + CSS + JavaScript is all you need on the client tier to make web applications. There are no standards for the server tier, i.e., you can use whatever you want (PHP, ASP, JSP, Ruby, Python).

Key Question As a web application developer, why is it so important to have standard languages for the client-side, but not the server-side? Seriously, aside for the fact that web servers have to follow the HTTP protocol, there are no standardized languages that must be used on the server-side. You can use whatever ever language you want. Why? Why are standards less important on the server?