CSS – 8 Step Walk Through! Using HTML. You will use 8 steps to transform this page to…

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
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.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Project 8 Creating Style Sheets.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Controlling Page Style: Cascading Style Sheets (CSS) References: 1.Wang, P.S & Katila, S. (2004). A Introduction to Web Design and Programming. CA: Thomson.
4.01 Cascading Style Sheets
CSSMR.Mostafa badr1. Lesson 3 Creating an Style Sheet Lesson 2 Structure of the Style Lesson 1: What Cascading Style Sheets are?
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Creating Tables in a Web Site Using an External Style Sheet
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
Doman’s Sections Information in this presentation includes text and images from
Introduction to CS520/CS596_026 Lecture One Gordon Tian Fall 2015.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit E Formatting with Cascading Style Sheets.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
FTS: The Perils and Promise of Computing Cascading Style Sheets (CSS) Gustavus Adolphus College Fall 2012.
CO1552 – Web Application Development Cascading Style Sheets.
CSS Basic (cascading style sheets)
By Brieya. What is HTML Hypertext Markup Language, a standardized system for tagging text files to achieve font, colour, graphic, and hyperlink effects.
Computing Theory: HTML Year 11. Lesson Objective You will: o Be able to define what HTML is - ALL o Be able to write HTML code to create your own web.
Cascading Style Sheets. What is CSS? Short for Cascading Style Sheets, a new feature being added to HTML that gives more control over how pages are displayed.
WRT235: Writing in Electronic Environments Basic CSS.
Enhancing Your Web Site—Adding Links Web Page **YOU MUST HAVE COMPLETED THE 1ST 3 WEB PAGES BEFORE YOU CAN DO THIS ONE. **YOU SHOULD HAVE COMPLETED THE.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
IT Introduction to Website Development Welcome!
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.
HTML. Hyper Text Markup Language Markup your text document The markup is the tag Hyper text means you can jump from place to place.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
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.
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Cascading Style Sheets August 25-26, What is CSS? a means for web authors to separate the appearance of web pages from the content of web pages.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
External Style Sheets Exploring Computer Science – Lesson 3-6.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
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.
1 CSS محمد احمدی نیا 2 Of 21 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements 
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 Web Pages with Links, Images, and Embedded Style Sheets
LT: I can use CSS to decorate a web page. Do Now: Get your storyboard, and log in to winhome. Write our a list of colors you want in your website. (Minimum.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Introduction to CS520/CS596_026 Lecture One Gordon Tian Fall 2015.
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.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets (CSS)
Web Basics: HTML/CSS/JavaScript What are they?
CSS HTML and website development.
4.01 Cascading Style Sheets
Lab Styling Tabs with CSS Scott Lydiard
HTML GUIDE Press F5 and then
HTML and Website Development
Cascading Style Sheets (Layout)
Introduction to web design discussing which languages is used for website designing
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
TOPICS Chrome Dev Tools Process for Building a Static Website
5.2.3 Be able to use HTML and CSS to construct web pages
Intro to Web Development
Web Design and Development
Enhancing Your Web Site—Adding Links Web Page
4.01 Cascading Style Sheets
Introduction to Styling
Presentation transcript:

CSS – 8 Step Walk Through! Using HTML

You will use 8 steps to transform this page to…

… this page!

STEP 1 – SET UP 1. Copy from Moodle the file My_First_css.htm to your H:/ drive and ensure you have a copy of pic_web.gif 2. Open Windows Explorer and open the Web Page My_First_css.htm in Notepad 3. Open up the Web page in a browser

Style Tags My first CSS STYLES DECLARED HERE The style tags are placed in the Head section of the web page This will be an internal style applied only to this web page All code from Step’s 2 -7 will be between these two tags

STEP 2 - Add some colours My first CSS body { color:#800000; background-color:#B8BFD8; } Click, File / Save – Go to browser and press F5 to refresh

Should look something like this. What has changed? body { color:#800000; background-color:#B8BFD8; } Click, File / Save – Go to browser and press F5 to refresh

STEP 3 - Format Heading Tag (font) … body { font-family:verdana; font-size:80%; color:#800000; background-color:#B8BFD8; } h1 { font-family:stencil,"courier new"; } … Click, File / Save – Go to browser and press F5 to refresh

STEP 4 - Add a link style … a {text-decoration:none;} a:link {color:#FFFFFF} a:visited {color:purple} a:hover {background-color:#ff3300} Rollover the Links! Click, File / Save – Go to browser and press F5 to refresh

STEP 5 - Horizontal line and help tool tip … hr { color:#b22222; border:thin dotted } acronym { border-bottom:1px dotted #b22222; cursor:help; } Click, File / Save – Go to browser and press F5 to refresh Place your mouse over the CSS! Text – What happens? Why?

STEP 6 - Add an image float … img { float: right; border: 1px solid #b22222; } Click, File / Save – Go to browser and press F5 to refresh

STEP 7 - Style a list … (be careful here, you are adding some extra styles to the a {…} style.) … ul { margin-left:0; list-style-type:none; } a { text-decoration:none; display:block; padding:2px; width:150px; border-bottom:0.1em solid #b22222; } a:link {color:#FFFFFF} Click, File / Save – Go to browser and press F5 to refresh

My first CSS body { font-family:verdana; font-size:80%; color:#800000; background-color:#B8BFD8; } h1 { font-family:stencil,"courier new"; } ul { margin-left:0; list-style-type:none; } a { text-decoration:none; display:block; padding:2px; width:150px; border-bottom:0.1em solid #b22222; } a:link {color:#FFFFFF} a:visited {color:purple} a:hover {background-color:#ff3300} hr { color:#b22222; border:thin dotted } acronym { border-bottom:1px dotted #b22222; cursor:help; } img { float: right; border: 1px solid #b22222; }... Internal Style Sheet - Styles declared on this page only. Web browser interprets code in an order of priority: Priority 1. - Inline Style (inside HTML element) Priority 2. - Internal Style Sheet (inside the tag) Priority 3. - External Style Sheet We will now change this into an external style sheet! External will effect a website not just a webpage.

STEP 8 - External file Copy the style declarations between the style tags (not the style tags!) **** COPY ALL BETWEEN THESE TWO TAGS! **** Open Notepad and create a new file Paste the style declarations in to the new note pad file File Save as… myfirst_css.css (note it is not.htm or.html but a.css file format) Make sure this file is saved in the CSS directory you’ve been working from.

STEP 8 – cont. Open up My_First_CSS.htm in notepad Delete the Style tags and style declarations and replace with the following markup. My first CSS Click, File / Save – Go to browser and press F5 to refresh

To finish… There is no difference in regards to presentation, except, now you can link lots of webpage’s in your website to the.css myfirst_css.css file! Why is this useful?