New Semantic Elements (Part 3). The Element The official specification for states that it “represents the heading of a section. The element is used to.

Slides:



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

HTML Basics Customizing your site using the basics of HTML.
HTML popo.
Introduction to HTML & CSS
Unit 3 Day 4 FOCS – Web Design. No Journal Entry.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
New Semantic Elements (Part 2)
New Semantic Elements (Part 1). Semantics Explained The textbook definition of "semantics" is the study of the relationship between words and their meanings.
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
Web Page Development Identify elements of a Web Page Start Notepad
Using HTML Tables.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
Define html document byusing Example : Title of the document The content of the document......
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
Cascading style sheets (CSS)
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
CSS Classes.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
INTRODUCTION TO HTML5 Semantic Layout in HTML5.  The new semantic layout in HTML5 refers to a new class of elements that is designed to help you understand.
HTML: Hyptertext Markup Language Doman’s Sections.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
1 HTML Frames
Introduction to CSS. What is CSS? CSS ("Cascading Style Sheets") determines how the elements in our XHTML documents are displayed and formatted. By using.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
Understanding ID and Class in CSS Web Design – Sec 4-9 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
External Style Sheets Exploring Computer Science – Lesson 3-6.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Getting Started with HTML. HTML  Hyper Text Markup Language  HTML isn’t a program language, its known as a markup language  A Markup language has tags.
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
HTML5 Structure. Slide 2 Introduction Introduce the purpose of the new HTML5 semantic tags Introduce the HTML5 outlining mode Using semantic metadata.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
Text Elements. We've already learned about the,,,, and elements. Now let's learn some elements that we'll use to present actual text content on our web.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 02: Enhancing the Web Page.
Cascading Style Sheets Part 1 1 IT 130 – Internet and the Web.
HTML5 Semantic
Cascading Style Sheets for layout
CSS Classes.
INTRODUCTION TO HTML AND CSS
Cascading Style Sheets for layout
Styles and the Box Model
HTML Intro.
Browser Support for HTML5
INTRODUCTION TO HTML AND CSS
New Semantic Elements (Part 3)
New Semantic Elements (Part 2)
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
New Semantic Elements (Part 1)
CSS Classes.
Presentation transcript:

New Semantic Elements (Part 3)

The Element The official specification for states that it “represents the heading of a section. The element is used to group a set of h1–h6 elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines.” The value of is that we can have a prominent headline or title, along with a less-prominent one, and indicate that they belong together. In prior versions of HTML, a browser had no way of making this distinction when encountering through elements. Here are two simple examples: The Hobbit, or There and Back Again My Awesome Blog: Random Thoughts on a Million Topics

Using the Element Let's begin building the second page of our website and make it about book reviews: Some of the CSS: hgroup h3 { font-size: 22px; font-style: italic;... } My First Book Review Frankenstein: or, The Modern Prometheus I had seen the movie Be careful not to place any elements other than through headings inside the tags. Nothing else is permitted.

The Element The specification for states that it “represents a unit of content, optionally with a caption, that is self-contained, that is typically referenced as a single unit from the main flow of the document, and that can be moved away from the main flow of the document without affecting the document’s meaning.” Unlike the element, contains content (e.g. a photo, diagram, or illustration) that is directly relevant to the main content. A should be capable of being moved around on the page without "breaking" the meaning of the page. Many images do not qualify to use the element and should continue to use the basic element. Examples include logos, site graphics, and content that must be placed in a specific location on the page.

Using the Element Let's return to our book review page and add an image of the original book cover: And use CSS to float the image to the right: figure { float: right; }... So far, this has not added much value to us from a web design standpoint. But that all changes once we add a caption to the image.

The Element is an optional element that can be added to a. It provides a caption or legend for an image, illustration, or diagram. The element must be nested within the element and there can be just one instance used within a single. If placed before the element, it will appear above the image. If after the element, it will appear directly below the image. Let's now add a caption to the book cover image we inserted.

Using We have added a caption to appear directly below the book cover image: And used CSS to style the caption: figcaption { font-style: italic; font-size: 16px; } Book Cover...

Multiple images within Though only one may be used, there is no limitation to the number of elements within a element: Prior to HTML5, adding captions to images, especially multiple images like this example, required us to use elements and apply much more CSS styling to position the caption. Book covers from 1818, 1869, and 1981 (left to right)...

Using CSS Classes Throughout these examples - and in many of our class projects - we apply CSS styling directly to elements such as,, and. In the real world, this is rarely done. We might have multiple instances of these elements on a single page and if we style the element directly, that CSS will affect all instances. What if we wanted one to float left and another to float right? The solution is to assign a CSS class to each instance of an element: Now we are free to style each separately by using its specific CSS class.