5.2.3 Be able to use HTML and CSS to construct web pages

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

/k/k 1212 Cascading Style Sheets Part one Marko Boon
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
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.
4.01 Cascading Style Sheets
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
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.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
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.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
Cascading Style Sheets
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Your HTML website creating your first html file. Creating an HTML FIle Open note pad from accessories, programs. Write code. Save and view. In 3 Steps.
Using Text Edit. Create Folders to Organize a Site  Identify the location where you are storing your Web sites. Ask your teacher for help if needed.
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.
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
Cascading Style Sheets Using HTML. What are they? A set of style rules that tell the web browser how to present a web page or document. In earlier versions.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
GCSE COMPUTER SCIENCE Communication 3.5 HTML and CSS.
External Style Sheets.
CSS Cascading Style Sheets
Web Development & Design Foundations with XHTML
CSS Nick Sims.
Web Basics: HTML/CSS/JavaScript What are they?
Style Sheets.
4.01 Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Bare boned notes.
( Cascading style sheet )
>> Introduction to CSS
CSS.
From now on you are the Creator,
Madam Hazwani binti Rahmat
CX Introduction to Web Programming
Web Developer & Design Foundations with XHTML
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5
Relative Paths.
Principles of Software Development
Filezilla problems continuing
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Essentials of HTML.
Website Design 3
TOPICS Chrome Dev Tools Process for Building a Static Website
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Essentials of HTML.
5.2.3 Be able to use HTML and CSS to construct web pages
Web Protocols, Technologies and Applications
What are Cascading Stylesheets (CSS)?
The Internet 10/6/11 Cascading Style Sheets
Lesson 4 – Introduction to CSS
Cascading Style Sheets™ (CSS)
Web Development & Design Foundations with H T M L 5
Training & Development
Web Design and Development
HTML & CSS 7 Languages in 7 Days.
Web Design & Development
Johan Ng and Muhammad Hazzry
4.01 Cascading Style Sheets
CS332A Advanced HTML Programming
Presentation transcript:

5.2.3 Be able to use HTML and CSS to construct web pages Learning Objectives: 5.2.3 Be able to use HTML and CSS to construct web pages

Cascading Style Sheets Cascading style sheets (CSS) are used to save work and improve consistency by controlling the formatting of multiple web pages. They are separate files that contain a series of rules that control the formatting of multiple web pages. Complete task 12.3.

Setup Create a new document in Notepad++ and save it as stylesheet.css in your Practice Website folder. Open your index.html and page2.html web pages and add the blue line between the <head> tags on each page. <head> <title>My webpage</title> <link rel="stylesheet" type="text/css" href=“stylesheet.css"> </head>

Save your changes and view your web pages in your browser. Styling Headings Add the style below to your new file, it will change the font of all headings that use the <h1> tag. h1 { font-family: “Arial”; } Save your changes and view your web pages in your browser. Add another style to set the font of the headings that use the <h2> tag.

Hex Colour Codes Hexadecimal numbers are used to represent colours in css. Use this website to choose a suitable colour for your h1 style. Add your chosen colour to your h1 style like the example below. h1 { font-family: “Arial”; color: #3333CC; } Save your changes view the web pages in your browser. Complete tasks 12.5 and 12.11.

Background Colour Add a new style to set the background colour of your pages. body { background-color: #00ff00; } Save your changes view the web pages in your browser. Complete tasks 12.5 and 12.11.

Add a div tag to one of your pages using the example shown below. Div Tags Div tags are containers that allow the formatting of blocks within a web page. Add a div tag to one of your pages using the example shown below. <div id=“mydiv”>This is a div.</div> Complete task 12.16.

Formatting Div Tags Add the following rule to your style sheet and save it. #mydiv { width: 200px; height: 50px; background-color: #00ff00; } Save your changes view the web page in your browser.

Sketching Layouts Alan Turing Welcome In the exam you may be asked to sketch the layout of a web page based on some HTML code. This is a worked example <!DOCTYPE HTML> <html> <head> <title>Alan Turing</title> </head> <body> <h1>Alan Turing</h1> <img src=”alan.jpg”> <hr> <h2>Welcome</h2> <p>Welcome to the Alan Turing website.</p> </body> </html> Alan Turing Alan Turing Image Welcome Welcome to the Alan Turing website. Complete task 12.17.