Web Protocols, Technologies and Applications

Slides:



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

CSS Styling CSS Box Model & CS110: Computer Science and the Internet.
Cascading Style Sheets
1 Cascading Style Sheets™ (CSS) Outline 5.1 Introduction 5.2 Inline Styles 5.3 Embedded Style Sheets 5.4 Conflicting Styles 5.5 Linking External Style.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
Adding styles. Three alternatives HIT151 Web 'n' Net Web Page Basics /*stylesheet*/ h1,h2,h3 { font-family: verdana, arial, 'sans serif'; } p,table,li.
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 Basics. Why use Cascading Style Sheets? Allows you to set up a series of rules for all pages in a site. The series may be changed.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
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.
CSS(Cascading Style Sheets )
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.
Unit 20 - Client Side Customisation of Web Pages
4.01 Cascading Style Sheets
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Cascading Style Sheet Basics Pepper. Looking at the HTML See the surrounding tags See head, body, paragraph, header See the ending tags See the list.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
CS 3870/CS 5870 Web Protocols, Technologies and Applications.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
LT: I can use CSS to decorate a web page. Do Now: Get your storyboard, and log in to winhome. Write our a list of colors you want in your website. (Minimum.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
IS1500: Introduction to Web Development
Cascading Style Sheets (CSS)
Cascading Style Sheet.
HTML WITH CSS.
HTML.
CSS Cascading Style Sheets
4.01 Cascading Style Sheets
Introduction to CSS.
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
CX Introduction to Web Programming
Introduction to Web programming
Cascading Style Sheet (CSS)
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Introduction to CSS.
Cascading Style Sheets
DynamicHTML Cascading Style Sheet Internet Technology.
CS134 Web Design & Development
Cascading Style Sheets Color and Font Properties
Web Protocols, Technologies and Applications
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Static and Dynamic Web Pages
DynamicHTML Cascading Style Sheet Internet Technology.
Web Design and Development
Introduction to CSS.
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
Web Design & Development
Cascading Style Sheets
Cascading Style Sheets
4.01 Cascading Style Sheets
Introduction to Cascading Style Sheets (CSS)
Presentation transcript:

Web Protocols, Technologies and Applications CS 3870/CS 5870 Web Protocols, Technologies and Applications

Formatting HTML Pages <h1> CS3870/CS5870: Prog1</h1> <h3> HTML Elements </h3> <ul> <li> Bold face </li> <li> Underline</li> <li> emphasize</li> <li> italics</li> <li> Larger Size</li> <li> small size</li> </ul>

Formatting HTML Pages <ul> <li> <b> Bold face </b></li> <li> <u> Underline</u></li> <li> <em>emphasize</em></li> <li> <i> italics</i></li> <li> <font size=+1>Larger Size</font></li> <li> <font size=-1>small size</font></li> </ul>

Using Style <ol> <li style="font-size:large">Large font size </li> <li style="text-decoration:underline">underlined</li> <li style="font-style:italic">Italics</li> </ol>

Elements Not Supported in VS <center> <ol> <li style="font-size:large">Large font size </li> <li style="text-decoration:underline">underlined</li> <li style="font-style:italic">Italics</li> </ol> </center> -1: using non-supported HTML element

Cascading Style Sheets (CSS) Inline Styles Internal Style Sheets External Style Sheets

Inline Styles <ol> <li style="font-size:large">Large font size </li> <li style="text-decoration:underline">underlined</li> <li style="font-style:italic">Italics</li> </ol>

Internal Style Sheets Web Form Next Tuesday

Creating External Style Sheets in VS Click Solution Explorer Right click the folder you want the CSS file to be Click Add Click Style Sheet Specify CSS file name

External Style Sheets A text file with any name, e.g. myStyleSheet /* This is a comment in CSS file */ /* Notice: body is an HTML element */ /* The style setting applies to the entire body */ /* It will move the entire body to the right by 11em */ body { padding-left: 11em; }

External Style Sheets /* Multi-line comment Notice: navbar is not an HTML element em: the current font size Default font size: 16px Absolute position will put the element using this style class to (2em, 1em) ignoring the position set for body, even it is part of the body */ .navbar { padding: 0; margin: 0; position: absolute; top: 2em; left: 1em; width: 9em }

External Style Sheets /* The title should be the same on all three pages You are required to use an external CSS file */ .CS3870Title { font-family: Century, Arial; color: blue; text-align: center; text-decoration: underline; text-decoration-style: solid }

Using External Style Sheets <head> <link rel="stylesheet" type="text/css" href="StyleSheet.css" /> <title>CS3870/CS5870 - Prog1</title> </head> <body> <h1 class="CS3870Title">Web Protocols, Technologies and Applications</h1> <ul class="navbar"> <li> <a href="http://people.uwplatt.edu/~yangq/">My Home Page </a></li> <li> <a href="http://www.uwplatt.edu/csse/">Absolute link </a></li> <li> <a href="HtmlPage2.html"/>Relative link</a></li> </ul> </body> </html>

CSS Tutorial http://www.w3schools.com/css/default.asp Google!

Prog1 Folder Prog1 under Web Site Develop the pages inside folder Prog1 Publish Web App (Site) to Alpha Use the Grader to check!

Grader https://alpha.ion.uwplatt.edu/CS3870/grader.aspx It goes to the first page of the selected program of the selected student, including my sample program at CS3870.

Browsers Different browsers implement HTML and CSS in different ways. Some browsers may not implement some rules at all. Must make sure your pages work as expected with IE in Lab 206.