Presentation is loading. Please wait.

Presentation is loading. Please wait.

Bare boned notes.

Similar presentations


Presentation on theme: "Bare boned notes."— Presentation transcript:

1 Bare boned notes

2 A few review items: Characteristics of web pages The format is text files, with .htm or .html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file names. File names ARE CASE SENSITIVE. Tags are not case sensitive, but the standard is lowercase. The first page in a web site should be named index.htm or index.html REASON: As the default filename, it nicely shortens your URL example: instead of:

3 What is difference? Block elements:  Normally start (and end) with a new line. Eg. p, h1, blockquote, div, etc. Inline elements: Displayed in line with text without creating a new line. Eg. img, meta, span, etc.

4 A few essentials Show file extensions
Notepad++ -- RUN>Launch command HTML Comments View source code See next slides

5 Turn on extensions In Windows 8 or10, click VIEW, Options, Change Folder & Search Options In windows 7, click that Organiz button on the left, then … Mac OS, FINDER, Preferences

6 What are purposes of HTML Comments?
Here’s how: <!--Your comments here --> How to view source codes: CTRL-U in Firefox or Chrome Or right click and choose “Page Source” <!--Your comments here -->

7 …Continue CHAPTER 3 What is CSS?
What is CSS? A style sheet language used to describe the appearance and formatting of a HTML document. As with other types of styles, several formats can be included in one style. Advantages of style More control (more features) Separate from structure Can be re-used (applied to multiple pages; multiple sites) Smaller potentially Easy to edit and maintain

8 Syntax Selector {property: value; property: value; }
h1 {text-align: center; color: #0000ff; } Here is a visual of it:

9 Using Color: There are several ways of applying color. Names: modern browsers support140 including extended names (per w3schools.com) RGB: rgb(0,150,220) (the intensity of rgb from 0 – 255) Hexadecimal: #9400BF -uses base and A-F to specify numeric value. -includes 3 pairs, 2 characters for each RGB  Search “hex colors” or html color names to get chart, or go to Or

10 On day 1, we created only template and index pages
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company. On day 1, we created only template and index pages

11 Let’s take a break and work it out.

12 CSS Selector types 1. HTML element What is difference? 2. class 3. id And finally, what about: descendant selector

13 Mini Review of Cascading Style Sheets
A style is: A group of formats that are setup as a unit and can be applied repeatedly. (generic definition) Advantages of CSS: Easy to edit and maintain More control (more features) Separate appearance from structure Can be stored and associated with web pages Smaller pages, potentially Types of CSS: Inline: Added as an attribute of an HTML tag and only applies to that individual element. Used to override others. Embedded: Defined in the head area between <style> tags. Applies to the body of that document. External: A separate file which is linked in the <head> section. Used for entire website. Syntax & example for inline style: <element style="property: value"> <blockquote style="color: #cc99ee" > Syntax & example for other CSS: selector {property: value";} p { line-height: 140%; color: #ff00ff; } Link to external CSS file: <link rel="stylesheet" href="yourfile.css">

14 Additional color sites
(if you want to choose colors based on a picture)

15 See table on page 85 to see all that we will cover


Download ppt "Bare boned notes."

Similar presentations


Ads by Google