Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN 6710 - Section A – TR 9:30-10:45 CRN 10570 – Section B – TR 5:30-6:45.

Slides:



Advertisements
Similar presentations
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Advertisements

กระบวนวิชา 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.
Chapter 6 Web Typography
CASCADING STYLE SHEETS CSS. 2 What CSS means?  CSS is an extension to basic HTML that allows you to style your web pages.  It separates the part that.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
Design, Formatting, CSS, & Colors 27 February, 2011.
CSS Pertemuan 12 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
4.01 Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Cascading Style Sheets CS3505. What are CSS? Method for adding style attributes consistently to HML tags Cascading because styles are applied in order.
CSS Dvijesh Bhatt.
Cascading style sheets (CSS)
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
HTML & CSS.
Cascading Style Sheet (CSS)
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
 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.
MCS 270 Cascading Style Sheets (CSS) Gustavus Adolphus College.
CSS: Cascading Style Sheets. 2 What are Style Sheets A style sheet is a mechanism that allows to specify how HTML (/XHTML/XML) pages should look The style.
Cascading Style Sheets
ITP 104.  Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
CS 142 Lecture Notes: CSSSlide 1 CSS Rule body { font-family: Tahoma, Arial, sans-serif; color: black; background: white; margin: 8px; } Selector Declaration.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
A really fairly simple guide to: mobile browser-based application development (part 2, CSS) Chris Greenhalgh G54UBI / Chris Greenhalgh
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.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
Developing Web Applications with HTML and CSS “Selectors and Properties”
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CSS: Cascading Style Sheets Part II. Style Syntax.
CSS Cascading Style Sheets *referenced from
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
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.
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
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.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
4.01 Cascading Style Sheets
CSS Layouts: Grouping Elements
Training & Development
4.01 Cascading Style Sheets
Web Programming and Design
Presentation transcript:

Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45

Review Name a self closing HTML tag What is the most recent version of HTML? What is a good site to look up information about individual HTML tags? What are the primary tags used in almost every HTML file? What are the various tags used in creating a table, and what does each one stand for/control?

Review Besides the tag name, what else can go inside the angle brackets in an HTML tag? What are some attributes that are unique to the tag? What are some attributes that are common to almost every HTML tag?

Review What are the three places styles can be added? What is the recommended place to put styles the majority of the time? What are the three basic CSS selectors?

CSS Last time we looked at the three basic CSS selectors Tag Name, Class, ID Today we are going to cover the following CSS colors CSS sizes Common CSS properties Advanced CSS selectors

CSS Colors CSS colors are defined by a hexadecimal representation RGB – Red, Green, Blue (or 00-FF in hex) This is the intensity of each color light #FF0000 (255, 0, 0) = Red (red turned all the way on, others off) # (85, 85, 85) = Gray Color Picker:

CSS Colors There are also several color keywords that can be used There are several online resources to help you build a set of complimentary colors

CSS Sizes When determining the size of elements, often you will see: px – Pixels % - Percentage em – Relative to font-size The full list is available here: We see less ‘px’ used, because ‘%’ and ‘em’ can be better manipulated as a page is resized for responsive designs, which we will talk about in a few weeks

Common CSS Properties background-color border-width border-style border-color height/width margin padding letter-spacing word-spacing line-height text-align vertical-align text-transform text-decoration

Common CSS Properties font-family font-size font-weight float clear display max/min height/width position top/left/right/bottom

Advanced CSS Selectors As a note, I will be using mostly tag names in the following examples, but they could be replaced with any of the basic selectors

Advanced CSS Selectors We can start by just combining the basic selectors div table{} selects tables inside of div tags space = contained within div.class{} selects div tags that have the given class this can be useful when you use the same class on several different types of tags td, th{} all td’s and th’s this makes it easier to style multiple tags the same way

Advanced CSS Selectors div table{} can select a table inside of a div, even if the table is also inside of other elements (div doesn’t have the be the direct parent) div > table{} requires that div be the direct parent of table div + table{} selects tables positioned directly after div tags div ~ table{} selects tables that are preceded by a div tag (does not have to be directly preceded)

Advanced CSS Selectors Square brackets can be used to specify that we want to look at attributes on a given tag to determine which tags to select [target] – selects tags with the target attribute applied [target=_blank] – target attribute equals _blank a[href^=“https”] – a tag with href that begins with https a[href$=“.pdf”] – a tag with href that ends with.pdf a[href*=“text”] – a tag with href that contains “text”

Advanced CSS Selectors td:first-child – selects the first td in every row, where the td is the first-child td:nth-child(2) – selects the second td in every row td:last-child – selects the last td in every row There are several other advanced CSS selectors, and most of these can be mixed and matched to select just the elements you want to on the page More often than not, in this course, you will be able to just put unique classes on whatever you want to style, but sometimes these come in handy

Basic Layout Now that we have some HTML and CSS tools, let’s put together a very simple page layout using tags, widths/heights/float

Next Week Next time we will begin looking at JavaScript

Lab 1 At this point, we have gone over everything you need to complete Lab 1 If you have not already acquired your web space/domain name, go ahead and take some time and do that now If you already have your web space, go ahead and work on Lab 1

Lab 1 For your first lab, you need to get your web space/domain name purchased/set up Create a single page that contains the following: HTML: div, table(full structure), h# (use a few), p, br, img, a, list(ul or ol) CSS: text color, background color, text alignment, float (don’t forget to use clear after float), margin, padding, height, width, use all 3 basic css selectors, use at least 1 advanced css selector Submit a link to the page on D2L