Working with HTML5 & DIV Structures, CSS, Webfonts and Templates

Slides:



Advertisements
Similar presentations
HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
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.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
Microsoft FrontPage 2003 Illustrated Complete Using a Dynamic Web Template.
Bare bones slide show. The format is text files, with.htm or.html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file.
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.
Project 4: Yosemite CSS Layout
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Louisa Lambregts, Louisa Lambregts
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Text and Cascading Style Sheets.
Project 6: Kayaking HTML5 Site
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
Web Design Part I. Click Menu Site to create a new site root.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
CHAPTER 4 CREATING STYLES AND LAYOUTS WITH CSS. CHAPTER OBJECTIVES Create ID-based styles Position content with CSS Format text with CSS Identify CSS.
Working with DIV Structures, CSS, Webfonts and Templates 9/16/2015Web Development and Interactive Media.
External Style Sheets Exploring Computer Science – Lesson 3-6.
CSU Extension Webpage Template Session 4 February 2010.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Creating a Google Site For a Digital Portfolio Purpose.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
Week 1: Introduction to HTML and Web Design
Fonts.
Web Development & Design Foundations with XHTML
Dreamweaver – Setting up a Site and Page Layouts
Organizing Content with Lists and Tables
Google fonts CSS box model
Concepts for fluid layout
Cascading Style Sheets (CSS)
Intro to CSS CS 1150 Fall 2016.
>> CSS Layouts.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
Styles and the Box Model
Laying out a website using CSS and HTML
Fonts.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Cascading Style Sheets - Building a stylesheet
Concepts for fluid layout
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Session IV Chapter 15 - How Work with Fonts and Printing
Web Programming and Design
Introduction to Styling
One Set of Styles Connected to As Many Pages as You Want!!!
Presentation transcript:

Working with HTML5 & DIV Structures, CSS, Webfonts and Templates 8/18/2016 Web Development and Interactive Media

DIV Structures (used before HTML5) Elements within a webpage are contained in DIVs (divisions) Think of a DIV as a “box” Wireframe indicates layout of all DIVs Identify DIVs by custom-named IDs: eg.: <div id=“logo”>Logo goes here </div> Begin a web project by creating your DIV structure Nest DIVs correctly DIVs appear in your HTML in their layout order – starting from top left

DIV Structures (used before HTML5) <body> <div id="container"> <div id="header"> <div id="nav"> </div> </div> <div id="wrapper"> <div id="content"> <div id="subcontent1"> </div> <div id="subcontent2"> </div> <div id="sidebar"> </div> <div id="footer"> </div> </body>

HTML5 Structures HTML5 replaced the most-used DIVs with semantic elements: Header Nav Section Article Aside Footer You can still assign custom-named IDs: eg.: <section id=“ad1”>Ad1 goes here </section> <section id=“ad2”>Ad2 goes here </section> Use DIVs for all other elements Nest elements correctly

HTML5 Structures <body> <div id="container"> <header> <nav> </nav> </header> <section id=“hero”> <article> <header> </header> <section> </section> </article> </section> <aside> <section id=“ad1”> </section> <section id=“ad2”> </section> </aside> <footer> </footer> </div> </body>

Indenting HTML Tags <body> <div id="container"> <header> <nav> </nav> </header> <section id=“hero”> <article> <header> </header> <section> </section> </article> </section> <aside> <section id=“ad1”> </section> <section id=“ad2”> </section> </aside> <footer> </footer> </div> </body> <body><div id="container"><header><nav> </nav><header> <section id=“hero”><article><header> </header><section> </section> </article></section><aside> <section id=“ad1”> </section><section id=“ad2”> </section></aside><footer> </footer> </div></body> Tabbing/structuring code, and putting line breaks between block elements (eg. on the left) makes it easier to read, easier to locate items, easier to identify nested tags, and easier to spot errors

Using CSS CSS must be in a separate file, external to your HTML , and linked to the HTML using the “Attach stylesheets” dialogue Style each DIV using #id-of-div, or style each HTML5 element Open and close styles with { } Remember semi-colons ; after each style Indent and separate your CSS styles to make it easier to read, find items, and spot errors

Web-safe Fonts (Fonts that are universally installed on every machine across the globe) Limitation of Web-safe Fonts Browsers are dependent on fonts installed on users’ local computers. If you design a webpage using a font not installed on the viewers’ machine, the intended font will not be displayed. Instead, the browser will substitute a font which is installed on the user’s local machine. This is a DESIGN issue since it affects how the website looks and feels. Displaying a webpage in a different, unintended font will change the look that the designer had in mind. There are very few web-safe fonts. Previously, websites were designed with only these web-safe fonts. Having to use only these fonts was a huge limitation on design. COMMON WEB-SAFE FONTS: Arial Georgia Tahoma Times New Roman Verdana Lucida Trebuchet Comic Sans Courier

Font-serving Solution to the issue of Web-safe Fonts Type foundries and others have begun to serve font files off their own web servers. Most charge subscription fees for this service. You can link to these served fonts in your HTML and the browser will display the designated webpage text in those served fonts Google webfonts (google.com/fonts) is a free font-serving service, offering 804 typefaces Instructions for implementing Google webfonts into your HTML and CSS are at google.com/fonts WIX recently gave users the ability to upload fonts to their server for use on their WIX websites

Dreamweaver Templates Provide a standard or guide for page layout Contain editable and uneditable (locked) regions Allow fast, easy creation of multiple HTML pages with the same layout Allow fast, easy editing of HTML elements and DIV structures: If you need to change an element in ALL your HTML pages, simply make the change in the template file, and DW will update all of your HTML pages as long as they were created from the template.

Using Dreamweaver Templates Create templates by defining EDITABLE regions After finishing your HTML5 structure and CSS, but before inserting content into pages: Select the element/ DIV/ content that will be editable on each page Insert> Template Objects> Editable Region Provide a descriptive name for the region Repeat for each editable region Save AS TEMPLATE (DW will automatically store the template file into the “templates” folder which you MUST have previously created in your root. If you haven’t previously created the “templates” folder, you will have errors in your website!) Then create each of your HTML pages from the template: File> New from template