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.

Slides:



Advertisements
Similar presentations
Dreamweaver Dr. Kristen Landreville Wed. 09/29/10 – Fri. 10/08/10.
Advertisements

Intro to HTML Basics HTML = Hypertext Mark-up Language HTML = Hypertext Mark-up Language HTML is a plain-text file that can be created using a text editor.
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Designing Websites Using HTML and FrontPage A Typical Webpage View Source A webpage is a text file containing instructions to tell a computer how the.
Cascading Style Sheets
4.01 Cascading Style Sheets
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
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 Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
ITP 104.  While you can do things like this:  Better to use styles instead:
The Characteristics of CSS
INFSCI  Last time we built a doggie web page in class following the instructions in the slide deck: Build Web Page with HTML – see week 3 The topics.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
HTML CSS JAVASCRIPT. HTML - Stands for Hyper Text Markup Language HTML is a ‘language’ that describes web pages. This language is a collection of codes.
Just Enough HTML How to Create Basic HTML Documents.
Last week you should have had something that looked like this.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
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: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
audio video object Options: controls autoplay Need to define height and width Options: controls autoplay.
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.
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
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.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Positioning Objects with CSS and Tables
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
EXTERNAL STYLESHEETS AND MORE HTML STYLING HTML and CSS part 2.
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,
Unit 15 – Web Authoring Web Authoring Project.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Cascading Style Sheets for layout
MIT 511- Web Design & Usability
4.01 Cascading Style Sheets
CSS Layouts: Positioning and Navbars
CSS Layouts: Grouping Elements
Cascading Style Sheets for layout
Writing html for websites and blogs
Cascading Style Sheets (Layout)
Creating a Baseline Grid
Styles and the Box Model
Fixed Positioning.
Controlling Layout with Style Sheets
5.2.3 Be able to use HTML and CSS to construct web pages
Web Development & Design Foundations with H T M L 5
Web Design and Development
Positioning.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Making a website.
Multipage Sites.
4.01 Cascading Style Sheets
One Set of Styles Connected to As Many Pages as You Want!!!
How to add a photo gallery in html/css
Presentation transcript:

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 these to a class within a CSS file, you can change their look and where they appear on the page.

The Layout of a Webpage Use a simple program such as PowerPoint to draw an image which consists of: -a header (or literally a head) -a middle, which should be plain -and a footer (the jaw) Group all the objects, then save this as an image.

The Layout of a Webpage Paste your image back into Powerpoint three times and crop each image to create three distinct sections. Each section must be of equal width. The middle section, must be plain as this will be repeated to make a wider mouth. Save your images as top.png, middle.png and bottom.png

The basic HTML Create a new.html file in WordPad and save it as index.html Any text between is a comment and won’t be seen. A div tag represents a box within the page (a bit like this text box) Divs will automatically appear underneath the one above by default.

DIV Tags A div tag represents a box within the page (a bit like this text box) If you put a div inside another (ie. Top, middle and bottom are all inside container), then they will appear as a box within a box) CONTAINER DIV MIDDLE DIV TOP DIV BOTTOM DIV

Using CSS At the top of your HTML is a link to a css file called style.css This file contains all the code which tells the browser what the page will look like. By linking to the CSS file, each time you update style.css the index html page will change too!

Using CSS In WordPad, create a new file called style.css and save it in the same folder as index.html Add in the following code. Make sure that your ‘top.png’ image is saved in the same file and is the correct number of pixels wide & high.

What the CSS Actually Means A. before a name means that is it a ‘class’ which you have created. This is a name of an html object that you have created such as a Div. Setting the container margins to 0 Auto means that the Div will sit in the middle of the page.

What the CSS Actually Means Setting a background image for the Div means that we can use our images to fill the boxes that we are creating on the page. By adding position:fixed to the style, this attached the div to the top of the webpage and when you scroll down, the image moves down with you!

Using CSS Keeping your WordPad documents open, open up your index.html page in a web browser to check how it looks. When you open up your index.html page in a browser, you should see just the header image in the middle. Don’t worry if your transparent section looks a bit scruffy right now. This will look different soon!

Using CSS Using WordPad, add this new class to your style.css file. This will create a middle div which repeats the plain pattern for the mouth for as long as needed.

Using CSS Keeping your WordPad documents open, open up your index.html page in a web browser to check how it looks. When you open up your index.html page in a browser, you should see the header with a long strip of your middle section repeated over and over. Because you made a plain middle section, you won’t see the repeats. It should look like a single block of colour.

Using CSS Using WordPad, add this new class to your style.css file. This will create a bottom div style which is a fotter for your webpage. With a bottom margin of -15px, this means that your jaw stays firmly at the bottom of the page!

Using CSS Keeping your WordPad documents open, open up your index.html page in a web browser to check how it looks. When you open up your index.html page in a browser and scroll down to the bottom, you should see the header with a long strip of your middle section which eventually meets the bottom ‘jaw’ of your image. To finish the design, all we need to do now is add content to the Webpage.

Adding HTML Content As you did with your first website, use (heading), and (paragraph) tags to add in some content inside the middle Div. To make your page grow with your content, comment out the height attribute in the style sheet for the ‘middle’ class.

Adding HTML Content Keeping your WordPad documents open, open up your index.html page in a web browser to check how it looks. When you open up your index.html page in a browser and scroll down to the bottom, you should see the header with your content in the middle section. As you scroll through your text, it will appear as if it is being eaten… Use this template to create a blog of each theory task that you learn in computing.