Create Webpages using HTML and CSS



Similar documents
Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

ITNP43: HTML Lecture 4

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Web Design and Databases WD: Class 7: HTML and CSS Part 3

ICE: HTML, CSS, and Validation

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Outline of CSS: Cascading Style Sheets

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Creating a Resume Webpage with

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

How to code, test, and validate a web page

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

HTML, CSS, XML, and XSL

Website Development. 2 Text. 2.1 Fonts. Terry Marris September We see how to format text and separate structure from content.

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

CSS - Cascading Style Sheets

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Introduction to Web Design Curriculum Sample

Short notes on webpage programming languages

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Web Development 1 A4 Project Description Web Architecture

Using Style Sheets for Consistency

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Selectors in Action LESSON 3

Website Planning Checklist

CIS 467/602-01: Data Visualization

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots

Advanced Web Design. Zac Van Note.

A send-a-friend application with ASP Smart Mailer

{color:blue; font-size: 12px;}

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Web Design and Development ACS Chapter 9. Page Structure

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Contents. Downloading the Data Files Centering Page Elements... 6

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Responsive Web Design: Media Types/Media Queries/Fluid Images

Cascading Style Sheets (CSS)

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Creating a Web Page Using HTML, XHTML, and CSS: The Basics

Web layout guidelines for daughter sites of Scotland s Environment

Using an external style sheet with Dreamweaver (CS6)

Introduction to Adobe Dreamweaver CC

About webpage creation

Embedding a Data View dynamic report into an existing web-page

Create Your own Company s Design Theme

ICT 6012: Web Programming

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Website Login Integration

Campaign Guidelines and Best Practices

HTML Basics(w3schools.com, 2013)

HTML TIPS FOR DESIGNING

Advanced Drupal Features and Techniques

<script type="text/javascript"> var _gaq = _gaq []; _gaq.push(['_setaccount', 'UA ']); _gaq.push(['_trackpageview']);

MCH Strategic Data Best Practices Review

Designing HTML s for Use in the Advanced Editor

CST 150 Web Design I CSS Review - In-Class Lab

COMMON CUSTOMIZATIONS

Script Handbook for Interactive Scientific Website Building

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

CSS Techniques: Scrolling gradient over a fixed background

Web Authoring CSS. Module Descriptor

Chapter 8 More on Links, Layout, and Mobile Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Creating HTML authored webpages using a text editor

How to Properly Compose HTML Code : 1

Caldes CM2: Marketing s Support Document v1.12

Introduction to XHTML. 2010, Robert K. Moniot 1

KOMPOZER Web Design Software

Interactive Data Visualization for the Web Scott Murray

HTML and CSS. Elliot Davies. April 10th,

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:

Web Design with Dreamweaver Lesson 4 Handout

CSS for Page Layout. Key Concepts

An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.

How to Create an HTML Page

Creating an HTML Document Using Macromedia Dreamweaver

Creating Web Pages with Dreamweaver CS 6 and CSS

JJY s Joomla 1.5 Template Design Tutorial:

Basic Website Maintenance Tutorial*

Creating A Webpage Using HTML & CSS

So we're set? Have your text-editor ready. Be sure you use NotePad, NOT Word or even WordPad. Great, let's get going.

Responsive Design

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Transcription:

KS2 Create Webpages using HTML and CSS 1

Contents Learning Objectives... 3 What is HTML and CSS?... 4 The heading can improve Search Engine results... 4 E-safety Webpage... 5 Creating a Webpage... 6 Creating and Adding the Style Sheet... 7 HyperText Markup Language (HTML) example.... 8 Cascading Style Sheets (CSS) example.... 10 2

Learning Objectives Create a Webpage and a Cascading Style Sheet using Notepad++ and Internet Explorer. Style the webpage using commands such as: H1, H2 Font-family font-size Text-align Color Body P Margin Href P1 - Code competently in at least two programming languages. (Meets some criteria). P3 - Review and assess the quality of code. Find and correct errors in syntax and meaning. P4 - Explain that computers are controlled by a sequence of precise instructions known as programs. P5 - Explain that computers follow instructions blindly; hence the need for care and precision. P8 - Explain how programs can be planned, tested and corrected and documented. P9 - Explain how HTML constructs the rendering of a webpage. I4 - Explain the role of search engines and what happens when a user requests a web page in a browser. (Meets some criteria). 3

Ensure the children know the difference between the internet and the World Wide Web. The Internet is a huge number of computers that are connected together allowing them to communicate with each other. The World Wide Web is a collection of webpages containing vast amounts of information and sits on the internet. What is HTML and CSS? Hypertext MarkUp Language (HTML) is a markup language for describing web pages. A markup language uses tags to set properties on the content it displays. The DOCTYPE declaration defines the document type to be HTML. The text between <html> and </html> describes an HTML document The text between <head> and </head> provides information about the document The text between <title> and </title> provides a title for the document The text between <body> and </body> describes the visible page content The text between <h1> and </h1> describes a heading The text between <p> and </p> describes paragraph Using these descriptions, a web browser can display a document with a heading and a paragraph. Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. The heading can improve Search Engine results The <meta> element is used to specify page description, keywords, author, and other metadata. Search engines use the Meta data (keywords) to find and rank webpages within their search results. For example: <meta name="keywords" content="kidsmart, childnet, chat, chatroom, chatting, im, instant messenger, email, junk mail, smart, smart rules, tips, internet, safety, online, advice, guidelines, strangers, personal details, personal information, reliable, realiability, report, abuse, child, children, kids, music, art, downloads, games, quiz, mobiles, gallery, sns, social networking, file sharing, search" /> 4

E-safety Webpage Explain to the children that this is how their finished webpage will look in Internet Explorer, other browsers display things differently and there are fixes that can be added to ensure your webpage displays correctly across all browsers, this could be used as a progression. Choosing a suitable image brings the opportunity to discuss copyright. 5

Creating a Webpage Open Notepad and save the document as Index.HTML into a folder named E-safety Webpage, all files used for this webpage should be saved in this folder. Build the webpage a step at a time. Remember to save and view in Internet Explorer between changes to see the progress and how the webpage is designed. A programmer always tests their code between each change, this helps with error detection. Define the document type. <!DOCTYPE html> Open the HTML. <html> Close the HTML. </html> Type the following into Notepad between the <html> begin and </html> end. <body> E-Safety </body> Add the heading style 1 to E-Safety. <h1>e-safety</h1> Now add heading style 2. <h2>if you want to stay safe on the World Wide Web you will need to follow these safety tips.</h2> Insert an image between two line breaks. The image needs to be stored in E-safety Webpage folder. <br> <img src="mitre.jpg"> <br> Insert a list. <li> Always ask an adult before using the internet. <li> Always use a nickname. <li> Never give out personal details, including your name, address, phone number, school uniform colour. <li> Never share your password. <li> Never arrange to meet with anyone on the internet. <li> Always be polite. <li> Never use chat rooms. <li> Always ask a trusted adult if you are unsure of anything. </li> 6

Insert a paragraph. <p>not everyone is who they say they are on the internet</p> Insert some links to websites. <a href="http://www.netsafeutah.org./">net Safe</a> <a href="http://www.netsmartzkids.org/adventuregames/">netsmartzkids</a> <a href="http://www.bbc.co.uk/cbbc/topics/stay-safe">cbbc Stay Safe</a> Creating and Adding the Style Sheet Create a new document in Notepad and save it as esafety.css in the folder named E-safety Webpage. Explain to the children that this is where we will add some colour and layout to the webpage index.html. Link the style sheet to index by adding the following at the very beginning to index.html and saving the file. <link rel="stylesheet" type="text/css" href="esafety.css" media="all"> Now in esafety.css add the following h1 {font-family: arial; font-size: 30pt; text-align: center; color: blue; View index.html in Internet Explorer to see the effect. Using the cascading style sheet example, add h1 to li to the file esafety.css, remembering to save and view between each new style entry. Add the class.screenleft,.screenright,.screenbottom to the stylesheet and save. For the class containers to work code needs to be added to index.html. Using the example HyperText Markup Language (HTML) example as a guide add the code for <div class="screenleft"> etc. Save and view for each entry. 7

HyperText Markup Language (HTML) example. <!DOCTYPE html> Defines the document type to be HTML5 <html> <head> Defines information about the document <meta name="description" content="esafety"> Defines metadata <meta name="keywords" content="html,css,e-safety, Kids-safe"> about an HTML <meta name="author" content="helen Greer"> document <title>e-safety</title> </head> Gives the page a title in the title bar. <link rel="stylesheet" type="text/css" href="esafety.css" media="all" /> Link the webpage to style sheet <body> The text between the body will show on screen <h1>e-safety</h1> Heading style 1 <h2>if you want to stay safe on the World Wide Web you will need to follow these safety tips.</h2> <div class="screenleft"> Set the block layout <br> <img src="hector.png"> Insert an image <br> Link to a resource <a href="http://www.thinkuknow.co.uk/">think you Know</a> </div> <div class="screenright"> List <br> Insert line break <li> Always ask an adult before using the internet. <li> Always use a nickname. <li> Never give out personal details, including your name, address, phone number, school uniform colour. <li> Never share your password. <li> Never arrange to meet with anyone on the internet. <li> Always be polite. <li> Never use chat rooms. <li> Always ask a trusted adult if you are unsure of anything. </li> 8

</div> <p>not everyone is who they say they are on the internet</p> <div class="screenbottom"> <a href="http://www.netsafeutah.org./">net Safe</a> <a href="http://http://www.netsmartzkids.org/ AdventureGames/">NetSmartzkids</a> <a href="http://www.bbc.co.uk/cbbc/topics/stay-safe">cbbc Stay Safe</a> </div> </body> </html> 9

Cascading Style Sheets (CSS) example. h1 { font-family: arial; font-size: 30pt; text-align: center; color: blue; The CSS sets all the attributes for the webpages that are linked to it. CSS makes editing webpages a lot easier because it only has to be done in one place. h2 { body { font-family: arial; font-size: 20pt; text-align: center; color: green; font-family: arial; font-size: 13pt; color: orange; text-align: center; margin: 0px; Use a common style of font that most people will have on their computers. Choose a font size. Center the heading Make the colour of the heading blue. Colours are normally presented as a number #0404B4 p { href { font-size: 15pt; line-height: 1.5; margin-right: 5px; margin-left: 5px; text-align: left; color: red; font-family: arial; font-size: 24pt; text-align: center; margin: 0px; li { font-size: 13pt; color: navy; text-align: left; margin-left:10%; 10

.screenleft { position:absolute; top:25%; left:10%; right:65%; border: medium solid grey; height:60%; Create a class to make a box Align it 25% from the top of the screen 10% from the left of the screen 65% from the right of the screen Set the border colour to grey Set the height to be 60% of the screen.screenright { position:absolute; top:25%; left:38%; right:10%; border: medium solid grey; height:60%;.screenbottom { position:absolute; top:87%; left:10%; right:8%; border: medium solid grey; height:10%; width:80%; 11