HTML & CSS.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets Based on Castro, HTML for the WWW, 6 th edition Ron Gerton, Fall 2007.
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.
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.
4.01 Cascading Style Sheets
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
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.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Shows the entire path to the file, including the scheme, server name, the complete path, and the file name itself. Same idea of stating your full name,
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Creating Web Pages with Links, Images, and Embedded Style Sheets
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
Introduction and HTML overview
HTML.
CSS Cascading Style Sheets
Internal Style Sheets External Style Sheets
4.01 Cascading Style Sheets
Bare boned notes.
HTML Tables & CSS Styles
Semester - Review.
Cascading Style Sheets
Cascading Style Sheets
Web Page Introduction.
IS 360 Declaring CSS Styles
Web Developer & Design Foundations with XHTML
Cascading Style Sheets contd: Embedded Styles
Introduction to Web programming
Creating Tables in a Web Site Using an External Style Sheet
Web Programming– UFCFB Lecture 6
Principles of Software Development
CASCADING STYLE SHEET CSS.
Filezilla problems continuing
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Essentials of HTML.
Website Design 3
Cascading Style Sheets 2
CSS.
TOPICS Chrome Dev Tools Process for Building a Static Website
Web Programming A different world! Three main languages/tools No Java
Essentials of HTML.
Computers and Scientific Thinking David Reed, Creighton University
>> Dynamic CSS Selectors
DynamicHTML Cascading Style Sheet Internet Technology.
Cascade Style Sheet Demo W3Schools. com: w3schools
Cheat Sheet CSCI 100 JW Ryder
Web Programming– UFCFB Lecture 11
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
Cascading Style Sheets
Cheat Sheet CSCI 100 JW Ryder
DynamicHTML Cascading Style Sheet Internet Technology.
Web Programming Language
Part 1: Cascading Style Sheets
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Computer communications
Web Design & Development
Cascading Style Sheets
4.01 Cascading Style Sheets
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
4.00 Apply procedures to add content by using Dreamweaver. (22%)
CSS Classes.
Presentation transcript:

HTML & CSS

Other Tags <!doctype HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”> <!-- comment --> comment out <title>page title</title> : html page title

Example HTML

Practice Table Click

Table nested in td

Insert Image Click

Copy and Paste Table 선택후에 Ctrl-C 빈 td를 클릭하고 Ctrl-V

In Dreamweaver Table Toolbar click 

Let’s change <img … style=“border:1px solid #cccccc;”/> Product name color and font-style Lunch box  <span style=“color:#00cc00; font-weight:bold;”>Lunch box</span> Price color $5.75  <span style=“color:#ff0000;”>$5.75</span> Product name and price align <td style=“text-align:center;”>…</td> Add link to image <img …/>  <a href=http://www.google.com><img …/></a> Add border to image Images within <a> tag will have ugly blue border at default <img … style=“border:1px solid #cccccc;”/>

CSS (Cascading Style Sheet) Ok, you must have hard time to repeat the same thing for 8 products. What about more than 100 products? Here comes our rescue hero CSS Remember the 4 most important attributes of html tags id, class, style and type (mainly used in <input> tag) <table id=“tableProduct1”><tr><td><span class=“productname”>lunchbox</span> <span class=“price”>$5.75</span></td></tr></table>

CSS selectors <table id=“tableProduct1”> <tr><td> <img src=“sample.jpg”/> </td></tr> <tr><td class=“productdesc”> <span class=“productname”> lunchbox </span> <span class=“price”> $5.75 </span> </td> </tr> </table> td.productdesc { text-align:center; } .productname { color: #00cc00; font-weight: bold; img { border:1px solid #cccccc; .price { color:#ff0000;

Internal CSS <html> <head> <title>test</title> td.productdesc { text-align:center; } .productname { color: #00cc00; font-weight: bold; img { border:1px solid #cccccc; .price { color:#ff0000; <html> <head> <title>test</title> <style type=“text/css”> … </style> </head> <body> </body> </html>

External CSS Advantage? <html> <head> <title>test</title> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head> <body> … </body> </html> td.productdesc { text-align:center; } .productname { color: #00cc00; font-weight: bold; img { border:1px solid #cccccc; .price { color:#ff0000; Advantage?

DOM (Document Object Model) HTML Document Object Model <html> <head> </head> <body> <table> <tr><td>lunch</td> <td>$5.75</td> </tr> </body> </html> Tag HTML Text HEAD BODY TABLE TR TD TD Lunch $5.75

CSS + DOM + Javascript Fancy effects that was not possible before are now enabled Fade in/out Slide up/down Zoom up/down Other unobtrusive animation

URL Path Relative path Absolute (Full) path <img src=“sample.jpg”/> <a href=“product.html”>product</a> 현재의 웹 페이지가 있는 폴더부터 시작 <img src=“images/sample.jpg”/> Absolute (Full) path <img src=“http://www.mysite.com/images/sample.jpg”/> <a href=“http://www.mysite.com/product.html”> product </a> Required in email (marketing)

Static to Dynamic HTML Let’s assume you have 100 products. Then you will have to make 100 product pages, say, product_1.html, product_2.html, …, product_100.html. Now what happen if you decide to change layout of your product page? Yes! You have to change 100 pages. Are you ok with that? Here comes our another heroes to rescue you. Those are web page scripts and database.

Web site structure (generated) HTML page Script page Web Server http://www.myshop.com/product.aspx?pid=1 Web Server IIS, Apache ProductID ProductName Price 1 Lunch 5.75 2 Breakfast 6.99 … <html> <body> <table> <tr> <td>Lunch</td> <td>$5.75</td> </tr> </table> </body> </html> <html> <body> <table> <tr> <td>%ProductName%</td> <td>%Price%</td> </tr> </table> </body> </html> (generated) HTML page Script page

Prepare second part Facebook account and make friends Mail chimp account HTML practice Zencart practice Visit class website http://www.myweboasis.com/webclass/

Next class E-commerce Payment Shipping Shopping cart (Zen cart) Connecting with Amazon and Ebay