HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.

Slides:



Advertisements
Similar presentations
Wordpress Training with Sarah Sibert. How To... Removing elements from your theme – search bar/dates on posts/comments Change the styling of headings.
Advertisements

1 © Netskills Quality Internet Training, University of Newcastle Introducing Cascading Style Sheets © Netskills, Quality Internet.
Table, List, Blocks, Inline Style
The University of Adelaide HTML Basics: Getting your code to work Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
Dr. Alexandra I. Cristea CSS Dr. Alexandra I. Cristea Source:
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
CSS Styling CSS Box Model & CS110: Computer Science and the Internet.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Cascading Style Sheets
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Today CSS HTML A project.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
Today’s Goals What is HTML?
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.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
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.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
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.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
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.
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.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
4.01 Cascading Style Sheets
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
CSS Fun damentals The Document Hierarchy Element Relationships The Box Model.
Cascading Style Sheets I Embedded Style Sheets. Page Design ICSS 2Instructor: Sean Griffin What is a Style Sheet? A style sheet is a text file that contains.
Designing Web Pages The case for CSS. The Power of CSS css Zen Garden
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
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.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
CSS.
Web Basics: HTML/CSS/JavaScript What are they?
Creating Your Own Webpage
CSS Rule Selector Declaration Block Value Attribute Name body {
CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Web Authoring Task 1– Create Style Sheet List – LI { Table Body
The Internet 10/13/11 The Box Model
The Internet 10/6/11 Cascading Style Sheets
How to use the CSS box model for spacing, borders, and backgrounds
Training & Development
Johan Ng and Muhammad Hazzry
Web Programming and Design
Introduction to Cascading Style Sheets (CSS)
Presentation transcript:

HTML and CSS

HTML Hyper Text Markup Language Tells browser how to display text and images

Tags Each text item goes within opening and closing tags text goes here

Example This is a heading Here’s a paragraph

Basic HTML page – html and body tags My heading This is a paragraph

Page structure

HTML tags

Headers Heading 1 Heading 2 Heading 3

Link Google

Image

Lists – Ordered and Unordered Item 1 Item 2 Item 3 Item 1 Item 2 Item 3

HTML head Title of the document The content of the document

CSS Cascading style sheets Define how the HTML elements look style.css body { background-color: #d0e4fe; } p { color: blue; background-color: yellow; }

Connecting HTML and CSS Title of the document The content of the document

Syntax

Properties: background background-color: #ff0000; background-image: url(‘

Properties: text color: blue; font-family: “Times New Roman”, Times, serif; font-family: “Arial”, sans-serif; font-size: 40px; text-align: center;

Box Model

Properties: box model/sizing width: 200px; padding: 10px; margin: 4px; margin-left: 20px; margin-right: 10px; margin-top: 10px; margin-bottom: 0px; border: 1px solid blue; border: 2px dashed green;

Selectors Which HTML elements does this CSS apply to?

Selectors: type Selects all elements of that type HTML: one two CSS: li { color:blue; }

Selectors: id Only one element can have a given id HTML: … CSS: #name { color:blue; }

Selectors: class Multiple elements can have the same class Elements can have multiple classes HTML: … CSS:.alert { color:red; font-size:14px; }

Lab: HTML and CSS Make 2 HTML pages: homepage and blog post page Draw ideas on back of lab See me if you haven’t finished Friday’s lab