HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

HTML popo.
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.
HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 2 HTML Basics Key Concepts
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
HTML and XHTML Controlling the Display Of Web Content.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Creating a Basic Web Page
Week 1.  Phillip Chee   Ext.1214 
HTML & CSS.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
HTML (HyperText Markup Language)
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
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.
The Internet & Web. Objectives The Internet & Web HTML – Hypertext Markup Language Project portfolio page.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
The Internet & Web. Objectives The Internet & Web HTML/XHTML Project portfolio page.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
Introduction to HTML UWWD. Agenda What do you need? What do you need? What are HTML, CSS, and tags? What are HTML, CSS, and tags? html, head, and body.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
INT222 – Internet Fundamentals
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Week 1: Introduction to HTML and Web Design
HTML CS 4640 Programming Languages for Web Applications
Web Basics: HTML/CSS/JavaScript What are they?
HTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
Organizing Content with Lists and Tables
Elements of HTML Web Design – Sec 3-2
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
Elements of HTML Web Design – Sec 3-2
Basic HTML Document Structure
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
HTML | DOM.
Computer communications
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Lesson 2: HTML5 Coding.
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Web Programming and Design
HTML CS 4640 Programming Languages for Web Applications
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

HTML | DOM

Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML | CSS | Responsive  Assignment

HTML: BACKGROUND

What is Html/Xhtml?  HTML 5 is still a draft  HTML (4.01) is subsumed as XHTML 1.0  Extensible HyperText Markup Language (XHTML) extends HTML - reformulated in XML

What is Html/Xhtml?  XHTML was a cleaner and clearer standard compared to early versions of HTML.  HTML 5 offers new elements for better semantics, structure, drawing, media content, and handling of forms.  NavArticleSectionAsideFooter

HTML 5  Emphasizes semantics.  Removes some presentational elements.  Introduces new elements such as header, footer, article, sections, nav.  Use elements that best describe your content.  Work from the content outward.

HTML Elements  HTML markup divides a document into elements (i.e., paragraphs). This is paragraph one…. Element Content Element

HTML  Each individual markup code is referred to as an element or tag.  Each type of element has a name.  A, P, DIV, ARTICLE, IMG, ETC.  Each element is introduced by a start tag and terminated by an end tag

HTML: Tags  Hypertext MarkUp Language - HTML Beginning Tag Ending Tag Tags generally come in pairs.

HTML Elements Interface design Tech spotlight on trends Interface patterns Beginning Tag Ending Tag

HTML Tags  HTML elements that have no content - empty elements.  Empty elements have start and end tags run together:,,…  Empty elements such as:  Horizontal rule  Line break  Image  Form element

HTML: Attributes  Google.com 

DOCUMENT STRUCTURE HTML

HTML: Getting started - Robbins Robbins suggest beginning with the following steps:  Step 1: Start with Content  Examine content so you can determine appropriate markup  Step 2: Give the Document Structure  Step 3: Identify Text Elements  semantic markup E.g., h1-6, p, em, blockquote, q

Step 2: Give the Document Structure

Registration for W3 App Conference Hello, world!  A DTD – “defines the legal structure, elements, and attributes that are available for use in a document that complies to the DTD."  Definition of what is legal syntax in HTML and what isn't.

Step 2: Give the Document Structure Registration for W3 App Conference! Hello, world! HEAD BODY HTML Basic structure even in complex docs.

Step 3: Identify Text Elements  semantic markup h1-6 p br em blockquote q cite code

INLINE AND BLOCK LEVEL ELEMENTS

Block boxes and inline boxes  Block boxes and inline boxes—that correspond to the two types of tags—block-level and inline tags.

Block boxes and inline boxes  A block-level tag creates a break before and after the element.,,,,, etc.  Inline tags don’t create a break before or after element.,,,,,, See page 85 in Robbins text for list of inline elements

Block boxes and inline boxes  Inline tags don’t create a break before or after element. ”Mapping Temporal Relations of Discussions Software is a powerful tool”(Miller, 2010, p. 45), it can be used on …

Structural: Block-Level Elements p – paragraphs h1, h2,…,h6 – level 1, 2,…,6 headers blockquote – long quotations (not indented paragraphs) section aside article div – arbitrary division ol, ul, dl - list for tabular data

Structural: Paragraph Tag  …  Gives the appearance of paragraphs

In the summer of 2008, I developed Mapping Temporal Relations of Discussions Software (MTRDS) as a tool to analyze the temporal aspects of online course discussions. This Web-based prototype imports discussion files from a course management system and diagrams the temporal aspects of conversations. From the diagrams, one can observe the general time and date of discussion activity and individual patterns of interactivity. I am seeking funds to assist me in further developing an intelligent online tool that provides semantic as well as temporal analyses of online educational conversations.

In the summer of 2008, I developed Mapping Temporal Relations of Discussions Software (MTRDS) as a tool to analyze the temporal aspects of online course discussions. This Web-based prototype imports discussion files from a course management system and diagrams the temporal aspects of conversations. From the diagrams, one can observe the general time and date of discussion activity and individual patterns of interactivity. I am seeking funds to assist me in further developing an intelligent online tool that provides semantic as well as temporal analyses of online educational conversations.

Structural: Heading Levels  Groups information into major points  … Biggest heading level  … Smallest heading level

Structural: Heading Levels Heading Level 1 Heading Level 2 Heading Level 3 Heading Level 4 Heading Level 5 Heading Level 6

In the summer of 2009, I developed Mapping Temporal Relations of Discussions Software (MTRDS) as a tool to analyze the temporal aspects of online course discussions. This Web-based prototype imports discussion files from a course management system and diagrams the temporal aspects of conversations. From the diagrams, one can observe the general time and date of discussion activity and individual patterns of interactivity. I am seeking funds to assist me in further developing an intelligent online tool that provides semantic as well as temporal analyses of online educational conversations. Introduction Educational Conversations

Structural: HTML Lists  ul – unordered list  ol – ordered list  li – list element  dl – definition list Use pairs of dt (term) and dd (definition) elements within dl

Structural: Unordered Lists  Apples  Oranges  Pears Apples Oranges Pears

Structural: Ordered Lists 1. Step 1 2. Step 2 3. Step 3 Step 1 Step 2 Step 3

Structural: HTML Tables  Table elements contain tr (row) elements containing td (data, i.e. cell) elements  Tables are used for tabular data  Tables commonly used for page layout – not recommended Row 1Col 1 Row 2 Col 1

Tables commonly used for page layout – not recommended Proper use of table

Tables commonly used for page layout – not recommended Should not uses tables for layout.

Row 1Col 1 Row 2 Col 1

Row 1 Column 1 Row 2 Column 1

COMMONLY USED ELEMENTS

Tags in Every HTML Document … …. …

Tag  Reminds the browser that the document is a HTML document ….

Tag  Gives the browser information about the document  Comes after the tag ….

Tag  Places information in the title bar of the browser’s window, used by search engines optimization (SEO). ….

Comment Tag  Text that shows up in the HTML source code, but does not show up in the browser window

Tag  All the information between the body tags appears in the browser’s window …

… …. … Common HTML Tags/elements New in HTML 5

Blog site

By the Sea> This is the title… Categories Archives

HTML TREE: RELATIONSHIP OF ONE ELEMENT TO ANOTHER.

HTML Tree My Web Page Description Main Topic A web page about the days of the week, specifically Tuesday.

HTML Tree | DOM

HTML Tree | DOM Ancestor to all tags Ancestor to h1, p, strong Siblings Child of Descendent of Descendent of and

HTML Tree Document Object Model – DOM Markup gives document structure. Underlying document hierarchy is important. Elements follow or nested within one another - creates relationships between elements. Gives browsers cues on how to handle content. Foundation on which we add styles and behaviors with JavaScript.