INFSCI 1052.  Start with a template base structure  Think about how to structure your document using headers, paragraphs, divs, unordered lists, imgs.

Slides:



Advertisements
Similar presentations
3.02D HTML Overview 3.02 Develop webpages.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Cascading Style Sheets
Cascading Style Sheets
Today CSS HTML A project.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา 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
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.
 Missing (or duplicate) semicolons can make the browser completely ignore the style rule.  You may add extra spaces between the properties/values to.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
INFSCI  Start with a skeleton outline: copy and paste:  Warning sometimes copy and paste of quote marks from PowerPoint doesn’t work correctly.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Cascading style sheets (CSS)
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
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.
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.
Shows the entire path to the file, including the scheme, server name, the complete path, and the file name itself. Same idea of stating your full name,
1 Essential HTML coding By Fadi Safieddine (Week 2)
Doman’s Sections Information in this presentation includes text and images from
 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 
Getting Started with HTML Please use speaker notes for additional information!
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 7.
CSS Basic (cascading style sheets)
HTML: Hyptertext Markup Language Doman’s Sections.
More CSS.
 HTML is hypertext markup language. It is a way for people to display their information with more complex pictures and text displays. Before HTML, messages.
So far, we have looked at CSS selectors that correlate with HTML tags Now, we’ll see how you can define your own selectors using class and ID selectors.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
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.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
Introduction to CSS Layout
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
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.
EXTERNAL STYLESHEETS AND MORE HTML STYLING HTML and CSS part 2.
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,
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
WebD Introduction to CSS By Manik Rastogi.
Introduction to CSS Layout
More CSS.
HTML Basics.
4.01 Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheets (Layout)
Introduction to web design discussing which languages is used for website designing
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Cascading Style Sheets
COMP 101 Review.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets - Building a stylesheet
More CSS.
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
Introduction to Styling
Presentation transcript:

INFSCI 1052

 Start with a template base structure  Think about how to structure your document using headers, paragraphs, divs, unordered lists, imgs.  Typically a page has a header section, a main section and a footer section.  Here is a page that lists some different HTML tags and shows how they can be used. Some of this will be a repeat from before but some will be new.: s.asp s.asp

 Welcome to Pitt  Welcome to Pitt – This is the text the user sees  ……….. - This is the actual opening and closing anchor tag  href=" - This is the full web address  So the page loads and the user sees a link and clicks on it and goes to a new web page associated with the specified web address

 What does your directory structure look like for your homework page?  html directory  is10 52directory  index.html --this is your homework page  webpage.html -- these are homework assignments  javascript.xxx  database.xxx  Because your webpage.html, javascript.xxx and database.xxx all live in the same directory as index.html your anchor tags in the index.html file simply look like What user sees  You don't need the full web address of

 A common directory structure scheme is to put all of your images into an image directory.  html directory  is directory  index.html -- homework page  hw1.html –first homework  image --directory  collie.jpg -- picture  pug.jpg -- picture Path to the pug file from an anchor tag in the hw1.html file: My Lovable Pug html directory i s1052 directory image dir: collie.jpg pug.jpg

 Unix based system are brutal about two things:  Case  Be careful when using lower case and upper case  For ex: these are two different files:  Index.html and index.html  Spaces  Unix does not like spaces in file names  Good: my_web_page.html  Not so good: my web page.html  File extensions – they tell the computer how to interpret your document .html – for web pages .docx – for Word doc .accdb – Access Database .txt – plain text

 Once you have chosen an image right click and choose save as to save the file to your computer. In most cases your image will not be the right size.  You can resize an image by setting the height and width attributes in the img tag. Not good idea.   The measurements are in pixels  Try to keep the height and width proportion equal to the original  There are online image resize websites:   

 ename=tryhtml_hr ename=tryhtml_hr  This page demos adding the tag  It’s a separator  Also, when looking at a web page if you right click you will see a menu option to view source.

 ename=tryhtml_poem ename=tryhtml_poem  This demonstrates that browsers pay attention to the initial space in our html code but ignore multiple spaces.  ename=tryhtml_pre ename=tryhtml_pre  But we have a way of fixing the space problem if we want to.

 Remember that we can create styles and place them in the head section of our document and apply the style to a tag on our page.... styles go here

 A style syntax looks like the following:  selector {property: value;}  The selector is the name of the tag such as div, p, ul  The property represents a list of different things we can affect such as color, font, size  The value is how much do want to affect something  P {color:blue;} – here we made the text color of paragraphs blue.  A list of CSS properties: ties.html ties.html

 Start with simple styles  Change the color of the text–  p{color:blue;}  Specify the size of your h1 or h2 or h3 etc  h2{font-size:10px;}  Pick a web safe font to use for your page  p{font-family:"Times New Roman",Georgia,Serif;}  Center your page  #mainpage{width:800px; margin:0 auto;}  Here is an example of a surrounding all of the html between the body tags.

 Float a div with an image in it to the left or right  div#collie {float:left;}  Here we have a div tag with an id of collie:   Use margins to create space on top, right, bottom or left of a tag  div#collie{margin-left:10px;}  Create a background color for a tag  p {background-color:#33ccee;}  Check out the link for possible colors: 

 When you want to target only one tag then use an id: div#footer {color:blue;} <div id = "footer") stuff………….  When you want to apply a style to multiple tags then use a class p.makebig{ font-size:30px;} I look big I look big too I look regular size Notice a # sign for id and a period. for a class.

 There are many websites dedicated to teaching CSS  W3C Schools is very popular:   Tizag is good too   Code Academy is a little different style   Code school is another site:   They charge after the into sessions(s)  LYNDA.com- Free and Great videos on everything IT: login.html login.html

 Here are some CSS examples to learn from:   This is a good reference list and each week in class we will be learning some of these techniques.  Start with some of the basics before moving onto the more complicated.  Make your own list of techniques and commands that you have begun to master  Success in this class depends upon you taking the time to practice and learn different CSS techniques. .

 Universal Selector  Uses the *  Ex: *{color:red;}  All text in the document will be red unless overridden  Affects all elements  Also acts as the reverse of the child selector  p * em { font-size:12px}  All ems that are NOT a direct child of p. They must at least be a grandchild From Stylin by Charles Wyke-Smith

 Pseudo Classes  Most often used with hyperlinks  They are called pseudo because they don’t have a direct tag they are attached to in the markup.  Four pseudo classes: ▪ Link – waiting to be clicked ▪ Visited – has been clicked ▪ Hover – cursor over link ▪ Active – currently being clicked  Order is important! – Think LoVeHAte.

 Pseudo Classes  You can use elements other than the anchor tag ▪ For example you can make a paragraph change text color or background color when the cursor hovers over it ▪ Caution: IE6 only supports hovers over links  Example: ▪ a:link {color:blue;} ▪ a:visited {color:red;} ▪ a:hover {font-size:22px;} ▪ a:active {color:green;}

 Group Exercise: List, describe and write a style exampleof your top ten CSS techniques.  Ex;  1) Select paragraphs and headers and control the color of the text. p { color:#3344CC;} h1 {color:#445533;} 2) Center a web page First wrap the html tags in a div with an id of mainpage. Then apply the following style div#mainpage { width:800px; margin: 0 auto;} Be ready to justify your choices.