Step 1- Creating a new XHTML Website (2points)

Similar documents
Three Ways to Use CSS:

Introduction to CSS. Part 1: Simple Text Formatting. Source Files for this Exercise are available on the Course Website DW_CSS intro

CSS: The Basics CISC 282 September 20, 2014

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

Lab Introduction to Cascading Style Sheets

Controlling Appearance the Old Way

Assignments (4) Assessment as per Schedule (2)

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank

ACSC 231 Internet Technologies

In the early days of the Web, designers just had the original 91 HTML tags to work with.

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

DAY 4. Coding External Style Sheets

Lab 2: Movie Review. overview.png background.png rottenbig.png rbg.png fresh.gif rotten.gif critic.gif

Cascading Style Sheets (CSS)

Introduction to HTML and CSS. Arts and Humanities in the Digital Age 2018 CHASE DTP Dr. Paul Gooding

CSS: formatting webpages

2. Write style rules for how you d like certain elements to look.

Multimedia for the Web: Creating Digital Excitement. Multimedia Element Text

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Introduction to CSS. 2 Sep 13. Derek Peacock. An introduction to defining CSS style rules using tags, classes and ids.

What is CSS? NAME: INSERT OPENING GRAPHIC HERE:

CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS

HTMLnotesS15.notebook. January 25, 2015

CSS for Styling CS380

HTML/XML. HTML Continued Introduction to CSS

Module 2 (VII): CSS [Part 4]

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

ITNP43: HTML Lecture 4

CSE 154 LECTURE 3: MORE CSS

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

CSS worksheet. JMC 105 Drake University

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Web Design and Development Tutorial 03

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Beginning HTML. A tag is a command written between angle brackets (the less than and greater than symbols). Ex. <html>

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

Basic CSS Lecture 17

Introduction to WEB PROGRAMMING

RAVASMARTSOLUTIONS - TECH TIPS

Using Dreamweaver CS6

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

CSS how to display to solve a problem External Style Sheets CSS files

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Appendix D CSS Properties and Values

Cascading style sheets, HTML, DOM and Javascript

CSS Cascading Style Sheets

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Styles, Style Sheets, the Box Model and Liquid Layout

CSS. Lecture 16 COMPSCI 111/111G SS 2018

Cascading Style Sheets. Overview and Basic use of CSS

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Using CSS in Web Site Design

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

CASCADING STYLE SHEETS (CSS) BY: RIHAM ALSMARI, PNU. Lab 4

Web Development & Design Foundations with HTML5

CSS Lecture 16 COMPSCI 111/111G SS 2018

Cascading Style Sheets Level 2

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Introduction to Cascading Style Sheets

Introduction to Computer Science Web Development

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Web Development & Design Foundations with HTML5

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

CSS: Cascading Style Sheets

CSc 337 LECTURE 3: CSS

Creating and Building Websites

Web Recruitment Module Customisation

Web Technology. Assignment 3. Notes: This assignment is individual assignment, every student should complete it by himself.

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

Taking Fireworks Template and Applying it to Dreamweaver

UNSW Global Website Branding Guidelines. Website Brand Guidelines

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

Lab 4 CSS CISC1600, Spring 2012

Lesson 5 Introduction to Cascading Style Sheets

CSS. Introduction to. Meganadha Reddy K. Technical Trainer NetCom Learning

Setting a Background Image

Introduction to Web Tech and Programming

ICT IGCSE Practical Revision Presentation Web Authoring

How to create and edit a CSS rule

Html basics Course Outline

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

CSS Scripting and Computer Environment - Lecture 09

c122jan2714.notebook January 27, 2014

Zen Garden. CSS Zen Garden

Tutorial. Activities. Code o o. Editor: Notepad Focus : Text manipulation & webpage skeleton. Open Notepad

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling

Introduction to using HTML to design webpages

Dreamweaver: Portfolio Site

CSS Selectors. Web Authoring and Design. Benjamin Kenwright

CSS Styles Quick Reference Guide

Transcription:

CSS Styles Text Formatting Review Step 1- Creating a new XHTML Website (2points) 1. Download Styles.html and plan_website.do c from the calendar 2. Open Styles.html in your browser. 3. Open Styles.html in Notepad 4. Open plan_website.do c and copy text to web page. 5. Add a title to the page 1. Go to my calendar. Right mouse click on styles.html, choose save target as and save it to your folder. Do the same thing for plan_website.doc. 2. Go to your folder. Double click on Styles.html to open the webpage in a browser. 3. Go to your folder and right mouse-click on styles.html, choose open with, and choose Notepad. 4. Open plan_website.doc document. Copy and paste the content of the MS Word document into your web page between <body> and </body> tags. 5. Add a new title for your new document between <head> and </head> tags. For example: <title>planning a Web Site</title>

Step 2 - Adding Embedded (internal) CSS styles (2 Points) 1. Add background color to the page body 2. Change the font for the entire page Embedded styles must be added to a <head> section of your HTML document using <style></style> tag. Add CSS rule to format the page - <body> tag. <body> tag holds the text, images and content of your Web page. Using embedded CSS styles, set a background-color and fontfamily properties to the body of the document, using embedded styles. Within the <head> portion of the document, right after the closing </title> tag and add the following: <style type="text/css"> body { background-color:#dddddd; font-family:verdana, Arial, sans-serif; </style>

Step 3 - Add and Format Heading level one - <h1> (2 points) 1. Add <h1> tag 2. Change the text alignment to center 3. Change font color to medium blue Within the <body> portion of your document, locate the page heading: Planning and Organizing a Web Site. Surround this text with <h1> and </h1> tags as shown below: <h1>planning and Organizing a Web Site</h1> Go to the <style> block in the <head> section of your document. Add new CSS rule for <h1> (shown in bold) as follows: <style type="text/css"> body { background-color:#dddddd; font-family:verdana, Arial, sans-serif; h1{ text-align:center; color:#336699; </style>

Step 3 - Add Heading level two - <h2> to all the sub-titles on the web page (2 points) 1. Add <h2> tags to all the subtitles Locate all the subtitles, such as Determine your target audience, Consider the purpose of the site, and so forth. Surround the text with <h2> </h2> tags. Example: <h2>sketch a web-site folder layout</h2> <h2>consider the purpose of the site.</h2> <h2>sketch a web-site folder layout</h2> <h2>choose File names</h2> <h2>design a site map</h2>

Step 4 - Adding paragraphs - <p> tags (2 points ) 1. Add paragraph to create blocks of text for better readability. Use <p> tag to create blocks of text for better readability. Your text should be organized in paragraphs to resemble the original Word document structure Example: <p>here are some of the steps you need to follow to create a Web site, such as organizing the content, outlining the site, creating a couple of pages, and adding graphics and links.</p>

Step 5 - Adding inline CSS styles (2 points) 1. Add <p> tag to a word 2. Change the color to red 3. Change the font style Using inline styles. Use style attribute to format the text. Inline CSS styles can be used with any HTML tags. Span tag is used to apply style to a group of words, one word, or even to a character: Locate the text: Note: Keep it simple. Include the word Note: between <p> and </p> tag. Add the following inline style: <p style="font-style:italic; color:red">note:</p>

Step 6 Create a Class to format the 1 st paragraph ( 2 points) 1. Add the class= introduction element to the 1 st paragraph 2. Create a new rule to format the 1 st paragraph to have a left and right margins 15px, font size of 16px, and color red. Add the class= introduction within the paragraph tag at the beginning of the 1 st paragraph. The result is that the first paragraph now begins to the class named introduction and must follow its formatting rules. <p class="introduction">here are some of the steps you need to follow to create a Web site, such as organizing the content, outlining the site, creating a couple of pages, and adding graphics and links.</p> Go to the <style> block in the <head> section of your document. Create a new rule for the class named introduction in the style sheet (shown in bold) as follows: <style type="text/css"> body { background-color:#dddddd; font-family:verdana, Arial, sans-serif; h1{ text-align:center; color:#336699; p.introduction { font-size: 16px; margin-left: 15px; margin-right: 15px; color: red; </style>