STILL CHAPTER 4 More Style. Topics How to specify “style” for beautifying your content?  Using tag and style attributes and values Separate file for.css.

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.
Computer Applications II.  A Style Sheet is a web page development tool that allows the developer to make global changes to a web page (or web site)
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
HTML / CSS – Basics Why the heck are we doing this?
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
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.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Creating hyperlinks with the tag Skills: using the tag IT concepts: tag, attribute This work is licensed under a Creative Commons Attribution-Noncommercial-Share.
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Prepared by ackoo Styli n g your page (font type, font size, colors, text decoration, alignment, set margin, table padding, etc.) References: W3Schools.
Made by: Dan Ye. Introduction Basic Last Page ☆ HTML stands for Hyper Text Markup Language; ☆ HTML is not a programming language, it is a markup language;
Including images in Web pages Skills: use the tag IT concepts: none This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike.
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
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.
Accessing CSS THREE WAYS: INLINE, INTERNAL, AND EXTERNAL STYLE SHEET.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
Julien Thibault  HTML is the basic building-blocks of webpages  It is not a language!! (despite its name)  Structure text/media.
CGS3066: Web Programming and Design Summer 2014 Instructor Mir Anamul Hasan.
Define html document byusing Example : Title of the document The content of the document......
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Objectives: 1. Create a Skeleton HTML 2. View a Skeleton File Through a Server and Browser 3. Learn HTML Body Tags for the Display of Text and Graphics.
Cascading Style Sheets Class 1, Lecture 1 Rachel A Ober
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Classes.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
CSS Basic (cascading style sheets)
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Introduction to Cascading Style-sheets (CSS) Basharat Mahm ood, Department of Computer Science, CIIT,Islamabad, Pakistan 1.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
McLean HIGHER COMPUTER NETWORKING Lesson 5 HTML Description of HTML web page Creating a simple HTML web page.
And adding hyperlinks. MyWebpage Everything that we want in our website, including other folders, documents, xhtml files, image files, css files should.
CPSC 203 Introduction to Computers Lab 66 By Jie Gao.
11/23/2015B.Ramamurthy1 Exam1 Review CSE111 B.Ramamurthy.
Colors & Fonts Building a Website Lesson 7. Font Font The tag specifies the font face, font size, and color of text. The tag can have any or all of these.
DIV, Span, CSS.
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.
Cascading Style Sheets
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.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
External Style Sheets Exploring Computer Science – Lesson 3-6.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
Hyperlink ● Anchor tag and its attributes ● Four Types of URL ─ ─ Absolute addressing ─ Relative addressing ─ Intrapage ● Attributes -- link, vlink,
Chapter 5 BIE2313 | Web design. ALL RIGHTS RESERVED No part of this document may be reproduced without written approval from Limkokwing University of.
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
HTML Basic Structure. Page Title My First Heading My first paragraph.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CIS 228 The Internet Day 2, 9/1/11 Hypertext. The Course Instructor: Bowen Alpern Office hour: GI 137-I, 4-5pm Tu.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
Chapter 1: Intro to HTML Section 1: HTML Structure Presentation Section 2: Layout of an HTML File Section 3: Working with Lists & Tables Section 4: HTML.
CM143- WEB CM143-WEB Page Layout live sites HTML Images User Considerations Planning Navigation CSS Architecture File Management Cascading Style Sheets.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
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.
CSS Nick Sims.
Web Basics: HTML/CSS/JavaScript What are they?
Intro to CSS CS 1150 Fall 2016.
My web site..
Intro to CSS CS 1150 Spring 2017.
Exam1 Review CSE111 B.Ramamurthy 1/1/2019 B.Ramamurthy.
HTML Links.
Pertemuan 1b
Exam1 Review CSE111 B.Ramamurthy 4/6/2019 B.Ramamurthy.
One Set of Styles Connected to As Many Pages as You Want!!!
Presentation transcript:

STILL CHAPTER 4 More Style

Topics How to specify “style” for beautifying your content?  Using tag and style attributes and values Separate file for.css How to reference images? Using tag How to separate the style items into another file?  Move only the style attributes to another file that has.css as type  A css file does NOT include tags How to reference files within your computer directory and files out on the web?  Using href, relative pathnames and absolute pathnames We will look at examples for these. Also see Lets look at style issues

Style tag How to specify a style item? In the head section using {attribute: value;} Example tag_name{background-color: orange} There can be more style specification for each tag h1 { color:orange; text-align:center; }

Css within the html file body { background-color:#d0e4fe; } h1 { color:orange; text-align:center; } p { font-family:"Times New Roman"; font-size:20px; font-style: italic; } CSS example! This is a paragraph.

Separate html and css files Lets separate them out File1.html File1.css

body {background-color: lightblue;} CSS example! This is a paragraph.

body { background-color:#d0e4fe; } h1 { color:orange; text-align:center; } p { font-family:"Times New Roman"; font-size:20px; font-style: italic; } The css file

References to other html files Link text My Resume Local link, relative path name. W3C CSE dept Web page.

Summary Lets try all these examples. Also lets discuss Lab 1