Pengantar Teknologi Web 3 Antonius Rachmat C. Teknologi Web Client Web browser HTML / XML / XHTML Javascript / VBScript CSS Flash player Java Applet ActiveX.

Slides:



Advertisements
Similar presentations
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Advertisements

1 CSC 551: Web Programming Spring 2004 Basic HTML  hypertext  tags & elements  text formatting  lists, hyperlinks, images  tables, frames  cascading.
HTML popo.
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.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS Cascading Style Sheets. What is CSS? CSS stands for Cascading Style Sheets (the page—or sheet—helps you create a style that will cascade across all.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
HTML popo.
Cascading Style Sheets (CSS) “Styles” for short. Pg. 418.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Lecture 5 Use Cases and Style Sheets
Introduction to CSS.
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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
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.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
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.
CSS(Cascading Style Sheets )
กระบวนวิชา 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.
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.
CSC 551: Web Programming Fall 2001 Basic HTML  hypertext  tags & elements  text formatting  hyperlinks  images  style sheets.
1 Lecture #5 Static Web Documents Shimrit Tzur-David HAIT Summer 2005.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Bayu Priyambadha, S.Kom. for long documents, you can even have links to other locations in that same document  … where ident is a variable for identifying.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
HTML 4.0 History and Application By: Marc Mayzes.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
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.
HTML (HyperText Markup Language)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
 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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
1 SEN 910 CSS/HTML Programming Basic HTML  hypertext  tags & elements  text formatting  hyperlinks  images  tables  frames.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
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.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
WebD Introduction to CSS By Manik Rastogi.
LAB Work 01 MBA 61062: E-Commerce
( Cascading style sheet )
HTML Programming Basic HTML text formatting.
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Computers and Scientific Thinking David Reed, Creighton University
CSS Style Sheets: Intro
Cascading Style Sheets™ (CSS)
Presentation transcript:

Pengantar Teknologi Web 3 Antonius Rachmat C

Teknologi Web Client Web browser HTML / XML / XHTML Javascript / VBScript CSS Flash player Java Applet ActiveX / Plugin: program yg terintegrasi dgn browser Helper: program yg terinstall di client

Pengembangan sisi client Local environment (prosesor, browser, memory, vga, dll) Tidak ada kontrol oleh web developer Memberikan saran kepada user –Cth: resolusi 1024 x 768 Memberi pilihan kepada user –Cth: javascript harus aktif Client / user profiling

Pengembangan sisi client

Pilihan client

Pertimbangan Client Kebutuhan dan keinginan user berbeda satu dengan yang lain. Pengaruh gender, umur, pendidikan, hobi, pengalaman, latarbelakang, budaya, dll. User memiliki tujuan, tugas web developer adalah membantu user mencapai tujuannya (download program, akses jadwal, mencetak daftar harga, dll)

Pertimbangan jaringan Bandwidth –Modem = 56KBps; T1 = 1.5MBps Latency: waktu yang diperlukan sebuah paket data untuk menempuh jarak yang menghubungkan dua buah sistem Utilization, lalu lintas data pada suatu jaringan.

Web Browser MS Internet Explorer (Windows) Netscape Navigator/Communicator (Windows & Linux) Mozila Firefox (Windows & Linux) Opera (Windows & Linux) Konqueror (Linux) lynx, berbasis teks (Linux)

HTML Hypertext Markup Language Text based Menggunakan tag (tanda) Tujuannya: untuk tampilan di halaman web Bahasanya baku Ekstensi :.html,.htm

HTML tag Judul Halaman

Tags vs. elements HTML specifies a set of tags that identify structure and content type –tags are enclosed in specifies an image –most tags come in pairs, marking a beginning and ending and enclose the title of a page an HTML element is an object enclosed by a pair of tags My Home Page is a TITLE element This text appears bold. is a BOLD element Part of this text is bold. is a PARAGRAPH element that contains a BOLD element HTML document is a collection of elements (text/media with context)

HTML

Aligning text can specify how elements should be aligned (default is left-justified) –utilize STYLE attribute of tag to justify more than one element as a group, use DIV tags –ell elements enclosed in DIV are formatted similarly Text Alignment Centered Heading Here is some left-justified text (which is the default in HTML). Here is some centered text. Right-justified Heading Here is some right-justified text. view page in browser

Text styles can specify styles for fonts – … specify bold – … specify italics – … specify typewriter- like (fixed-width) font – … increase the size of the font – … decrease the size of the font – … specify a subscript – … a superscript – … for paragraphs – … for inline text Note: if elements are nested, the order of opening/closing is important! (LIFO) Text Styles Text can be emphasized using bold, italics, or even resizing. The typewriter font is good for displaying code: sum = sum + i; And remember: 2 10 = 1024 view page in browser

Font

Lists there are 3 different types of list elements – … specifies an ordered list (using numbers or letters to label each list item) identifies each list item can set type of ordering, start index – … specifies unordered list (using a bullet for each) identifies each list item – … specifies a definition list identifies each term identifies its definition Simple Lists First thing. Second thing. Third thing. HTML HyperText Markup Language HTTP HyperText Transfer Protocol view page in browser

Tabel 1 baris 2 kolom

Tabel 2 baris 2 kolom

URL

Hyperlinks perhaps the most important HTML element is the hyperlink, or ANCHOR – … where URL is the Web address of the page to be displayed when the user clicks on the link if the page is accessed over the Web, must start with if not there, the browser will assume it is the name of a local file – … causes the page to be loaded in a new window Hyperlinks Creighton University Open page07 in a new window view page in browser

Hyperlinks - anchor for long documents, you can even have links to other locations in that document – … where ident is a variable for identifying this location – … will then jump to that location within the file – … can jump into the middle of another file just as easily Internal Links in a Page [ HTML | HTTP | IP | TCP ] Computer acronyms: HTML HyperText Markup Language HTTP HyperText Transfer Protocol IP Internet Protocol TCP Transfer Control Protocol view page in browser

Images can include images using IMG –by default, browsers can display GIF and JPEG files –other image formats may require plug-in applications for display again, if file is to be accessed over the Web, must start with (if not, will assume local file) Images <img src=" alt="Dave Reed" /> Dave Reed view page in browser

Frames frames provide the ability to split the screen into independent pages –must define a FRAMESET that specifies the layout of the pages –actual pages to be displayed must be in separate files can divide vertically or, horizontally * causes the browser to divide the remaining space evenly by default, each frame scrollable can drag the border to resize can hide the border with frameset attribute frameborder=0 view page in browser

Frame controversy frames are probably the most controversial HTML feature –some people love them, some people hate them 2 reasonable uses for frames –as a navigational aid: can divide the screen into a static menu frame and the main frame for navigating a site e.g., – as a means of separating program input from output: can divide the screen into a static man input form frame and the main frame for displaying output e.g.,

Menu frame to create a menu, need to be able to direct links to the main frame –name the frames in the FRAMESET –specify the frame name as TARGET in the link –specify _top as target to return to top level of browser Demo Browser Menu of Demos Links to demo pages <a href="page01.html" target="main">Demo 1 <a href="page02.html" target ="main">Demo 2 <a href="page03.html" target ="main"> Demo 3 <a href="page04.html" target ="main"> Demo 4 <a href="page05.html" target ="main"> Demo 5 <a href="page06.html" target ="main"> Demo 6 <a href=" target="_top" >Creighton view page in browser

Content vs. presentation most HTML tags define content type, independent of presentation –exceptions? style sheets associate presentation formats with HTML elements –CSS1: developed in 1996 by W3C –CSS2: released in 1998, but not fully supported by browsers –HTML style sheets are known as Cascading Style Sheets, since can be defined at three different levels 1.inline style sheets apply to the content of a single HTML element 2.document style sheets apply to the whole BODY of a document 3.external style sheets can be linked and applied to numerous documents lower-level style sheets can override higher-level style sheets

Inline style sheets Using the style attribute, can specify presentation style for a single HTML element –within tag, list sequence of property:value pairs font-family:Courier,monospace font-style:italic font-weight:bold font-size:12pt font-size:large font- size:larger color:red color:# background-color:white text-decoration:underline text-decoration:none text-align:left text-align:center text-align:right text-align:justify vertical-align:top vertical-align:middle vertical-align:bottom text-indent:5em text-indent:0.2in Inline Style Sheets <p style="font-family:Arial,sans-serif; text-align:right">This is a right-justified paragraph in a sans serif font (preferably Arial), with some green text. And <a style="color:red; text-decoration:none; font-size:larger;" href="page01.html">here is a formatted link. view page in browser

Inline style sheets (cont.) more style properties & values margin-left:0.1in margin-right:5% margin:3em padding-top:0.1in padding-bottom:5% padding:3em border-width:thin border-width:thick border-width:5 border-color:red border-style:dashed border-style:dotted border-style:double border-style:none whitespace:pre list-style-type:square list-style-type:decimal list-style-type:lower-alpha list-style-type:upper-roman Inline Style Sheets Here is an image <img src="reed.gif" alt="Dave Reed" style="margin-left:0.3in; margin-right:0.3in; vertical-align:middle; border-style:double; border-color:yellow"> embedded in text. one thing or another <ul style="list-style-type:square; whitespace:pre"> with this or that view page in browser

Document style sheets inline style sheets apply to individual elements in the page –can lead to inconsistencies as similar elements are formatted differently e.g., might like for all H1 elements to be centered –inline definitions mix content & presentation  violates the general philosophy of HTML alternatively, document style sheets allow for a clean separation of content and presentation  style definitions are placed in the HEAD of the page (within STYLE tags)  can apply to all elements, or a subclass of elements, throughout the page

Document style sheets document style sheets ensure that similar elements are formatted similarly –can even define subclasses of elements and specify formatting p.indented defines subclass of paragraphs inherits all defaults of adds new features to specify this newly defined class, place class="ID" attribute in tag note how "clean" the BODY is Document Style Sheets h1 {color:blue; text-align:center} p.indented {text-indent:0.2in} Centered Title This paragraph will have the first line indented, but subsequent lines will be flush. This paragraph will not be indented. The End view page in browser

External style sheets modularity is key to the development and reuse of software –design/implement/test useful routines and classes –package and make available for reuse –saves in development cost & time –central libraries make it possible to make a single change and propogate external style sheets place the style definitions in separate files  multiple pages can link to the same style sheet, consistent look across a site  possible to make a single change and propagate automatically  represents the ultimate in content/representation separation

Modularity & style sheets ideally, the developer(s) of a Web site would place all formatting options in an external style sheet all Web pages link to that same style sheet for a uniform look –simplifies Web pages since only need to specify structure/content tags Title for Page <link rel="stylesheet" type="text/css" href="myStyle.css" title="myStyle"> Centered Title This paragraph will have the first line indented, but subsequent lines will be flush. This paragraph will not be indented. The End view page in browser h1 {color : blue; text-align : center} p.indented {text-indent:0.2in}

Web rules of thumb HTML provides for lots of neat features, but just because you can add a feature doesn't mean you should! –don't add features that distract from the content of the page  use color & fonts sparingly and be careful how elements fit together e.g, no purple text on a pink background, no weird fonts  use images only where appropriate e.g., bright background images can make text hard to read e.g., the use of clickable images instead of buttons or links can slow access  don't rely on window or font size for layout e.g., font size may be adjusted by viewer, window constrained  don’t be annoying e.g., no pop-up windows, excessive advertising, silly music  break large document into smaller or provide a menu (either internal or frame)  stick to standard features and test using both IE and Netscape  utilize style sheets to make changes easy & ensure consistency

NEXT