Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 2: More HTML.

Slides:



Advertisements
Similar presentations
MA foundation Creating webpages using XHTML (part 1) Simon Mahony CCH
Advertisements

HTML popo.
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Introduction to HTML academy.zariba.com 1. Lecture Content 1.What is HTML? 2.The HTML Tag 3.Most popular HTML tags 2.
Session: 3. © Aptech Ltd. 2Formatting Text using Tags / Session 3  Explain the Heading tag  Explain the different tags related to formatting  Explain.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Define html document byusing Example : Title of the document The content of the document......
HTML Tags Basic Tags Doctype or HTML Head Title Body Use the website to find the definitions
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
Introduction to HTML. HTML Hyper Text Markup Language Page Title My First Heading My first paragraph. Page Title My First Heading My first paragraph.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
1 Web Application Programming Presented by: Mehwish Shafiq.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
Introduction to Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
HTML World Wide Web Consortium What does HTML stand for? – – –
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Basic Webpage Design Formatting tags.
INT222 – Internet Fundamentals
Week-11 (Lecture-1) Introduction to HTML programming: A web based markup language for web. Ex.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
HTML Introduction. Lecture 7 What we will cover…  Understanding the first html code…  Tags o two-sided tags o one-sided tags  Block level elements.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Tutorial 1 – Creating Web Pages With HTML
CGS 3066: Lecture 2 Web Development and HTML5
Web Development Part 1.
Web Development & Design Foundations with HTML5 8th Edition
Marking Up with XHTML Tags describe how a web page should look
Introduction to basic HTML
Lecturer (Dept. of Computer Science)
Elements of HTML Web Design – Sec 3-2
Web Development & Design Foundations with HTML5 8th Edition
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
Creating a Web Page.
Web Development & Design Foundations with HTML5 7th Edition
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
HTML Formatting.
CGS 3066: Web Programming and Design Spring 2016
Introduction to Web Site Development
Chapter 1: Introduction to XHTML (part 1)
CS543: WEB APPLICATION PROGRAMMING
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
HTML (HyperText Markup Language)
Essentials of Web Pages
HTML Intro.
Marking Up with XHTML Tags describe how a web page should look
CGS 3066: Lecture 2 Web Development and HTML5
Introduction to HTML- Basics
Introduction to XHTML Cont:.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Basics of Web Design Chapter 2 HTML Basics Key Concepts
WJEC GCSE Computer Science
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Marking Up with XHTML Tags describe how a web page should look
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 2: More HTML

Quick Recap 0 HTML is case insensitive is OK

Quick Recap 1 An HTML page is a tree of HTML elements The beginning and end of each element in an HTML page must be marked by start and end tags Some elements may be declared minus their end tags For example, void elements with no content such as BR Use instead of Some elements may be declared with self-closing tags For example, void elements with no content such as BR Use instead of or

Quick Recap 2 An HTML page always begins with a DOCTYPE header (it is not an HTML element or tag) Required for legacy reasons (XHTML) Next up we place the HTML element Must contain a HEAD element, followed by a BODY element The HEAD element contains metadata, such as the TITLE element

Quick Recap 3 The BODY element contains flow content Flow content is any element that can be used within the BODY element (stuff you want to show up in your webpage) Paragraphs, images, tables, code, etc. Here are the flow content elements we covered in class last week P, BR, H1, H2, H3, H4, H5, H6 B, I, STRONG, EM, SMALL, SUB, SUP

Quick Recap (The P Element) Description Used to mark paragraphs. The P element should always be a part of flow content. Comments Start Tag: Required End Tag: Optional Self-Closing Tag: Works, but not technically legal Example The is paragraph text. Type more here…

Quick Recap (The BR Element) Description Marks a line break within phrasing content (text, video and audio). Comments Start Tag: Required End Tag: Forbidden Self-Closing Tag: Works, but technically illegal Example Steven Emory Atlantic Ave. Beverly Hills, CA 90210

Quick Recap (The H1 - H6 Elements) Description Marks a new heading (H1 largest, H6 smallest). Comments Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example Chapter 1 Section 1.1 Section 1.2 Section 1.2.1

Quick Recap (The B and I Elements) Description Marks bold and italic phrasing content. Comments Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example Sometime long ago, in a land far, far away…

Quick Recap (The STRONG and EM Elements) Description Marks strong and emphatic phrasing content. Comments Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example Sometime long ago, in a land far, far away…

Quick Recap (The STRONG and EM Elements) The STRONG and EM elements by default behave similarly to B and I respectively, but there is a difference We can make STRONG and EM behave differently using CSS Try the code on the next slide! We haven’t covered CSS, but we can make them behave differently!

Quick Recap (The STRONG and EM Elements) STRONG versus B example: Lab strong{color:#FF0000;font-size:xx-large} This is strong text. This is bold text.

Quick Recap (The SMALL Element) Description Marks phrasing content that will be rendered small. Comments Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example *Your results may vary. You will more than likely not experience the same results.

Quick Recap (The SUB and SUP Elements) Description Marks subscript and superscript phrasing content. Comments Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example b b … + b n–1 2 n–1

Comments It is really easy to add a comment in HTML Syntax: Comment text may not contain two double dashes Comment text should not contain either Example:

Global Attributes HTML elements may specify attributes within the start tag Global attributes are attributes common to all HTML elements For now, we are only going to worry about two global attributes TITLE DIR

The TITLE Attribute Description Displays a tooltip when you hover the mouse over an HTML element Values Text content Example When you place the mouse over this text, you will get a tooltip!

The DIR Attribute Description Controls the direction of the content. Values RTL (right-to-left) LTR (left-to-right) Example Hey look, this is really weird!

More HTML Elements The HR Element (Horizontal Rule) The PRE Element (Preformatted Text) The ABBR Element (Abbreviation) The BDO Element (Bidirectional Override) The OL and UL Elements (Lists) The LI Element (List Item) The DL Element (Definition List) The DT Element (Definition Term) The DD Element (Definition Description)

The HR Element Description: Used to render a horizontal rule (line) Comments: Start Tag: Required End Tag: Forbidden Self-Closing Tag: Works, but technically illegal Example:

The PRE Element Description: Used to render preformatted text Comments: Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example: Preformatted text!

The ABBR Element Description: Used to mark an abbreviation or acronym Comments: Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example: AUS

The BDO Element Description: Controls the direction of text You should override the DIR attribute Comments: Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example: Hey look, this is really weird!

The OL Element Description: Defines an ordered list Optional START attribute may be overridden Comments: Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example: 1 2

The UL Element Description: Defines an unordered list Comments: Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden Example: 1 2

The LI Element Description: Defines an ordered or unordered list item You may override the VALUE attribute Comments: Start Tag: Required End Tag: Optional Self-Closing Tag: Works, but technically illegal Example: 1 2

The LI Element Description: Defines an ordered or unordered list item You may set the VALUE attribute to skip numbers in an ordered list (see example on next slide) Comments: Start Tag: Required End Tag: Optional Self-Closing Tag: Works, but technically illegal

The LI Element (Example) Example: Note that START and VALUE are not global attributes. They are attributes specific to OL and LI, respectively.

The DL Element Description: Defines a definition list Useful for things like a list of dictionary entries that have many definitions Must contain zero or more DT elements (terms) Comments: Start Tag: Required End Tag: Required Self-Closing Tag: Forbidden

The DT Element Description: Defines a definition term within a definition list Useful to describe something (a term) that has multiple meanings (definitions) Must contain one or more DD elements (definitions) Comments: Start Tag: Required End Tag: Optional Self-Closing Tag: Works, but technically illegal

The DD Element Description: Defines a definition description for a definition term Comments: Start Tag: Required End Tag: Optional Self-Closing Tag: Works, but technically illegal

DL Element Example Example Steven Old graduate student Funny-looking guy Your CS120 instructor Joe Steven's crazy newphew Silly kid Crazy about fishing