Inline Elements Karl Kasischke WCC INP 150 Winter

Similar documents
Certified HTML Designer VS-1027

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Certified HTML5 Developer VS-1029

Tutorial 2 - HTML basics

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

HTML: Parsing Library

ROLE OF WEB BROWSING LAYOUT ENGINE EVALUATION IN DEVELOPMENT

Wireframe :: tistory wireframe tistory.

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett

HTML: Parsing Library

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

How the Internet Works

UNIT II Dynamic HTML and web designing

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

HTML. Based mostly on

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Introduction to HTML5

What is XHTML? XHTML is the language used to create and organize a web page:

Web Designing HTML5 NOTES

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

5-Sep-16 Copyright 2016 by GemTalk Systems LLC 1

Structuring Documents for the Web

Web Publishing Basics I

HTML TUTORIAL ONE. Understanding What XHTML is Not

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

HTML Overview. With an emphasis on XHTML

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

QUICK REFERENCE GUIDE

HTML Hyper Text Markup Language

Implementing a chat button on TECHNICAL PAPER

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

HTML CS 4640 Programming Languages for Web Applications

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Fundamentals: Client/Server

XHTML & CSS CASCADING STYLE SHEETS

Web Site Design and Development Lecture 3. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

HTML. HTML is now very well standardized, but sites are still not getting it right. HTML tags adaptation

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Announcements. Paper due this Wednesday

HTML: The Basics & Block Elements

Canvas & Brush Reference. Source: stock.xchng, Maarten Uilenbroek

Index. CSS directive, # (octothorpe), intrapage links, 26

Chapter 4. Introduction to XHTML: Part 1

Create a cool image gallery using CSS visibility and positioning property

HTML Markup for Accessibility You Never Knew About

CPET 499/ITC 250 Web Systems. Topics

The Structural Layer (Hypertext Markup Language) Webpage Design

CMPT 165 Unit 2 Markup Part 2

Web Development and Design Foundations with HTML5 8th Edition

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Government of Karnataka Department of Technical Education Bengaluru

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

INTRODUCTION TO HTML5! HTML5 Page Structure!

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

Web Design and Application Development

Evaluation of alignment methods for HTML parallel text 1

Introduction to Web Development

Symbols INDEX. !important rule, rule, , 146, , rule,

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

HTML Text Formatting. HTML Session 2 2

Vebra Search Integration Guide

Course Overview. Week 1

CSC Web Programming. Introduction to HTML

Cascading Style Sheet

First, create a web page with a submit button on it (remember from creating forms in html?):

Creating A Web Page. Computer Concepts I and II. Sue Norris

CSCU9B2: Web Tech Lecture 1

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

BACKGROUND. HTTP is a 2-phase protocol used by most web applications and all web browsers. The response is usually an HTML document

Web Publishing Intermediate 2

Micronet International College

c122jan2714.notebook January 27, 2014

CIS 228 (Fall 2011) Exam 1, 9/27/11

Lab 4 CSS CISC1600, Spring 2012

HyperText Markup Language (HTML)

introduction to XHTML

SilkTest 2009 R2. Rules for Object Recognition

Module 2 (III): XHTML

@namespace url( /* set default namespace to HTML */ /* bidi */

Silk Test Object Recognition with the Classic Agent

CIS 228 (Fall 2011) Exam 2, 11/3/11

"utf-8";

Table of Contents. MySource Matrix Content Types Manual

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

CS134 Web Site Design & Development. Quiz1

Display, Overflow, White Space, and Cursor Karl Kasischke WCC INP 150 Winter

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

Basic Web Pages with XHTML (and a bit of CSS) CSE 190 M (Web Programming), Spring 2008 University of Washington Reading: Chapter 1, sections

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Designing and Developing a Website. December Sample Exam Marking Scheme

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.


A Brief Introduction to HTML

Transcription:

Inline Elements 2009 Karl Kasischke WCC INP 150 Winter 2009 1

Inline Elements Emphasizing Text Increasing / Decreasing Text Size Quotes and Citations Code, Variables, and Sample Output Spanning Text Subscripts and Superscripts Teletype Text Inserted and Deleted Text Acronyms and Abbreviations Definitions User Input Deprecated Inline Elements 2009 Karl Kasischke WCC INP 150 Winter 2009 2

Tags that surround text content Extend only as far as their content Do not create extra vertical space on the lines above/below Do not force content that follows to new lines 2009 Karl Kasischke WCC INP 150 Winter 2009 3

Can be nested inside other inline tags Block-level tags cannot be nested inside (</ inline tags (except <br XHTML 1.0 Strict requires all inline tags be inside a block-level container element 2009 Karl Kasischke WCC INP 150 Winter 2009 4

Boldface <b> </b> Presentationally-focused do not use <strong> </strong> Device chooses how best to render content Desktop browsers render as boldface Neither of these is deprecated 2009 Karl Kasischke WCC INP 150 Winter 2009 5

Italic <i> </i> Presentationally-focused do not use <em> </em> Device chooses how best to render content Desktop browsers render as italics Neither of these is deprecated 2009 Karl Kasischke WCC INP 150 Winter 2009 6

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>emphasis in (X)HTML</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <p>some text in this paragraph <strong>shows strong emphasis</strong> and other text is <em>just emphasized</em>.</p> </body> </html> 2009 Karl Kasischke WCC INP 150 Winter 2009 7

( huge ) Sizes range from 1 (tiny) to 7 Default text size is 3 <big> </big> Increases text one size larger than surrounding text <small> </small> Decreases text one size smaller than surrounding text Many sites use the deprecated <font> </font> CSS is always preferred 2009 Karl Kasischke WCC INP 150 Winter 2009 8

Used to mark up quoted material Different than blockquote <q> </q> Short quotations Some browsers add quotation marks Different languages could display differently Has a cite attribute with URL or text value <cite> </cite> person who said it, or other reference document Usually renders in italics 2009 Karl Kasischke WCC INP 150 Winter 2009 9

<p> <cite>jason Withrow</cite> has been known to say: <q>separate structure and presentation in your code!</q></p> <p><cite>jason</cite> also has quoted others: <q>my students usually say <q cite= Karl Kasischke >Web design is fun!</q> and I agree.</q> </p> 2009 Karl Kasischke WCC INP 150 Winter 2009 10

<code> </code> Used to mark up a piece of computer code usually rendered in a monospace font <var> </var> Used for a variable that appears as page content Usually italicized <samp> </samp> sample output from computer code Usually rendered in a monospace font 2009 Karl Kasischke WCC INP 150 Winter 2009 11

<p>the variable <var>x</var> was defined in this Javascript:</p> <code>var x = 'Hello World!';</code> <p>and so the result was:</p> <samp>hello World!</samp> 2009 Karl Kasischke WCC INP 150 Winter 2009 12

<span> </span> Generic inline tags with no browser defaults for appearance Used when no other tag is appropriate and some markup is needed for text Typically styled using CSS 2009 Karl Kasischke WCC INP 150 Winter 2009 13

Some content needs subscripts or superscripts mathematical and scientific information Footnotes Changes vertical spacing a bit <sub> </sub> Subscript: H 2 O <sup> </sup> Superscript: a 2 + b 2 =c 2 2009 Karl Kasischke WCC INP 150 Winter 2009 14

<p>al Gore<sup>4</sup> is a proponent of reducing CO<sub>2</sub> emissions.</p> Al Gore 4 is a proponent of reducing CO 2 emissions. 2009 Karl Kasischke WCC INP 150 Winter 2009 15

<tt> </tt> Rendered in a monospace font Not deprecated, it is presentational in nature Using CSS with <span> is preferable 2009 Karl Kasischke WCC INP 150 Winter 2009 16

Used to show edits in a document <ins> </ins> Generally rendered as underlined text <del> </del> Generally rendered with line through the text 2009 Karl Kasischke WCC INP 150 Winter 2009 17

cite Contains URL for explanation of change Value: text Default: none Not deprecated datetime Date and time the change was made ( YYYY-MM-DD ) Value: date Default: none Not deprecated 2009 Karl Kasischke WCC INP 150 Winter 2009 18

title attribute can also be used to show explanation of change Values for cite and datetime are shown in some browsers by right-clicking and selecting 'Properties 2009 Karl Kasischke WCC INP 150 Winter 2009 19

<p>xhtml is used for <ins cite="http://www.w3.org/markup/" datetime="20060515">structural</ins> <del datetime="20060515"> presentational</del> markup. </p> 2009 Karl Kasischke WCC INP 150 Winter 2009 20

<acronym> </acronym> <abbr> </abbr> Some browsers render with dotted underline Use a title attribute to show full text Helpful for accessibility (e.g. screen readers) Acronym tag deprecated in latest version of XHTML after much debate 2009 Karl Kasischke WCC INP 150 Winter 2009 21

<p><acronym title="washtenaw Community College">WCC</acronym>'s address is: 4800 <abbr title="east">e.</abbr> Huron River <abbr title="drive">dr.</abbr> <abbr title="post Office">P.O.</abbr> Box D- 1 Ann Arbor, <abbr title="michigan">mi</abbr> 48106</p> 2009 Karl Kasischke WCC INP 150 Winter 2009 22

Used for a term the first time it is used in a document <dfn> </dfn> Generally rendered as italicized text Title attribute often used to hold the definition <p><dfn title="cascading Style Sheets">CSS</dfn> stands for Cascading Style Sheets.</p> 2009 Karl Kasischke WCC INP 150 Winter 2009 23

Indicates text to be entered by the user (via ( keyboard the <kbd> </kbd> Generally rendered in a monospaced font <p>to proceed, please enter <kbd>continue</kbd>.</p> 2009 Karl Kasischke WCC INP 150 Winter 2009 24

font basefont strike s u Never use these tags Be aware of them. You might see them in old websites Know how to replace them with better tags 2009 Karl Kasischke WCC INP 150 Winter 2009 25

<font> </font> Sets the font face, size and color Still found in many sites Better approach: CSS applied to a structural tag 2009 Karl Kasischke WCC INP 150 Winter 2009 26

<basefont /> Sets the font appearance for the entire page Uses same attributes as <font> tag Used inside <head> tag Better approach: CSS applied to <body> 2009 Karl Kasischke WCC INP 150 Winter 2009 27

<strike> </strike> Renders text with a line through it Better approach: There is a CSS property that does this 2009 Karl Kasischke WCC INP 150 Winter 2009 28

<s> </s> Renders text with a line through it Better approach: There is a CSS property that does this 2009 Karl Kasischke WCC INP 150 Winter 2009 29

<u> </u> Renders text with an underline Users expect underlined text to be a link Better approach: There is a CSS property that does this 2009 Karl Kasischke WCC INP 150 Winter 2009 30

Practice with Inline Elements 2009 Karl Kasischke WCC INP 150 Winter 2009 31