HTML A brief introduction HTML.

Slides:



Advertisements
Similar presentations
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Advertisements

WeB application development
Website Design.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
XHTML 16-Apr-17.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
CS 299 – Web Programming and Design Introduction to HTML.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
XHTML Introduction to Xtensible HyperText Markup Language Screen Readers – Click the Notes button in the lower right corner.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Lesson 4.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
XML Basics A brief introduction to XML in general 1XML Basics.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
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.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
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.
University of South Asia Course Name: Web Application Prepared By: Md Rezaul Huda Reza
DIGI KNOW? Intro to Web Development Bishoy Riad, Director of Web Development.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML+ CSS PRINCIPLES Getting started with web design the right way.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
HTML Extra Markup CS 1150 Spring 2017.
Fall 2016 CSULA Saloni Chacha
Web Basics: HTML/CSS/JavaScript What are they?
Unit 4 Representing Web Data: XML
Introduction to HTML.
Mansoor Ahmed Bughio.
Coding, Testing and Valdating a Web Page
W3C Web standards and Recommendations
What is XHTML?.
Lecture 8. HTML. Author: Aleksey Semyonov
XHTML 1 by Carsomyr.
Basic HTML Document Structure
Chapter 7 Representing Web Data: XML
XHTML
Digital Design – Copyright Law
Instructor: Charles Moen
Secure Web Programming
Structuring Content in a Web Document
Introduction to HTML5.
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
Web Application Development
CIS 133 mashup Javascript, jQuery and XML
Pertemuan 1 Desain web Pertemuan 1
XHTML 7-May-19.
Lesson 2: HTML5 Coding.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Creating your website and learning HTML
Web Design & Development
Creating Web Documents
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

HTML A brief introduction HTML

HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup Language A markup language is a set of markup elements HTML documents are described by HTML elements Each HTML tag elements different document content http://www.w3schools.com/html/html_intro.asp HTML

HTML, browsers, servers, JavaScript, etc. Browsers receive HTML (and other things) from an HTTP server. The browser renders the HTML JavaScript is a programming language JavaScripts runs in the browser JavaScript can make the browser’s content dynamic HTML

HTML5 HTML5 is the latest HTML version HTML5 includes Markup language CSS Cascading Style Sheets = Colors, sizes, styling etc. JavaScript A programming language executed by the browser W3C makes the HTML standards W3C standards are usually ahead of browsers Most browser implement most of the standards (but not all of the standards) HTML

HTML and XML HTML is an XML language. HTML documents must be well formed HTML documents must have a single root element HTML elements must have a closing tag <h1>My heading</h1> or <br /> Exception: element without body <br>, <img> etc. HTML elements are case sensitive HTML elements must be properly nested HTML attribute values must be quoted HTML documents must be valid Conform to the HTML standard specifying Element names Element attributes Element nesting, etc. The head of the HTML document must refer to actual version the standard Example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN” "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html> refers to HTML5 HTML

Block level vs. inline elements Block level elements are usually rendered in block(!) Space before and after the block Examples <p> <h1> to <h6> <form> <div> Inline elements are usually rendered inline(!) Examples <a> <img> <span> <br /> HTML

HTML validators and the importance of being valid An HTML validator will check an HTML document Well formed Valid, according to the standard mentioned in the DOCTYPE section in the head of the document Common validators W3 https://validator.w3.org/ Validators build in to editors like Adobe Dreamweaver Most browsers will show HTML documents even if the document is not valid Browser will show the document trying to “guess” the missing / illegal parts of the document. Parts of the document might not be shown Different browser might “guess” differently Search engine optimization Search engines (like Google, etc.) have a hard time indexing non-valid HTML documents Maybe the document will simply not be indexed at all. HTML

Document Object Model (DOM) An HTML document has a tree-like structure https://www.w3schools.com/js/js_htmldom.asp The browser reads the HTML document and constructs the tree Called the Document Object Mode (DOM) JavaScript can manipulate the DOM Change elements, including the style (CSS) Add elements Remove elements HTML

Div + span elements Div and span elements are often used as placeholders in HTML Places where JavaScript can add content. Div is a block level element Span is an inline element Div and span elements are usually assigned an id <div id=”content”></div> JavaScript will refer to the id HTML