WTP-101 Developing Web Applications with Standards. using W3C org standard technologies such as, HTML, CSS, XML, XSD and XSL
|
|
|
- Adele Crawford
- 10 years ago
- Views:
Transcription
1 WTP-101 Developing Web Applications with Standards using W3C org standard technologies such as, HTML, CSS, XML, XSD and XSL
2 Attributions World Wide Web Consortium Sandra Clark CSS for Better Sites CFUN04
3 Web Standards Module Road Map Web Standards Web Architecture: Resources, URI and HTTP HTML and XHTML XML, XML Schemas and XML Parsing CSS XSLT
4 What are Web Standards Worldwide Web Consortium (W3C) Recommends Standards for Web Development Recommendations: Specifications for the Web's formats and protocols must be compatible with one another and allow (any) hardware and software used to access the Web to work together
5 w3c.org The one web The W3C Technology Stack Figure:
6 What Standards? Standards for the Web means: Structural Languages HTML Publishing Language of the Web XHTML - Extensible Hypertext Markup Language 1.0 and 1.1 XML - Extensible Markup Language 1.0 Transformations XSL - Extensible Stylesheet Language XPath XML Path Language Presentation CSS - Cascading Style Sheets Levels 1 and 2 as well as emerging standards, such as those for television and PDA based User Agents
7 Web standards are important Designing and building with Web standards Simplicity Simplifies and lowers the cost of production Accessibility Delivers sites that are accessible to more people Delivers sites that are accessible more types of Internet devices. Continuity Sites will continue to function correctly as traditional desktop browsers evolve, and as new Internet devices come to market Quoted from mission statement
8 XML, HTML, XHTML, XSL & CSS XML for content Most portable way to share and transfer information HTML/XHTML for publishable document structure Structure does matter XSL for transformation Transform between document types CSS for presentation If it isn t content it doesn t belong in HTML
9 Standards Related CSS HTML doc presentation CSS XML doc XSLT XSLT XSL-FO CSS XML or HTML Figure:
10 Web Architecture Module Road Map Web Standards Web Architecture: Resources, URI and HTTP HTML and XHTML XML, XML Schemas and XML Parsing CSS XSLT
11 Section Goals To learn basic Web architecture To learn how Resources, URI and HTTP are used to access information on web servers 11
12 Simple Web Architecture URI Representation Metadata: Content-type: application/xhtml+xml Data: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html xmlns=" <head> <title>web Tools Platform</title> </head> <body>.. </body> </html> identify http represent WTP 101 Web Application Develeopment Resource 12
13 Http: Protocol of the Web The Internet consists of servers, clients, and routers Servers provide the information Clients use the information on the servers Routers provide the network that allows clients and servers to communicate Clients and servers typically communicate using HyperText Transfer Protocol (HTTP)
14 Simple HTTP URI: The browser connects to the Web Server using a socket The browser sends a GET request Resource: The server resolves the request Standard web pages are produced by the server Representation: The HTML is sent to the browser The socket is closed; the browser renders the document using HTML Browser PC Internet/Intranet 1 GET index.html receive index.html 3 HTTPd Web Server 2 Docs
15 Atomic Requests HTTP requests are non-conversational A different socket is used to satisfy each request Traditional HTTP provides no mechanisms for multiple request relationships with clients Cookies can be used to maintain information about the client s identity
16 What is an URL? Uniform Resource Locator, or an address pointing to an Internet resource Scheme (http, ftp, gopher,...) Port Name of server Resource (name of page to download) If you don t specify a port, 80 is assumed.
17 URLs A URL specifies the identity of the computer as well as the required resource File resources are specified relative to a web root The web root is a directory on the server The resource may include subdirectory information Access the file /stuff/page.html from the server running on port 7001 on the local computer The URL may be shown at the top of your browser as the "location" or "address"
18 Clients Clients access information provided by the servers Web browsers are probably the most common web clients A client requests files by sending a HTTP request to server The request is sent over the internet using sockets The file is specified in the request using a Uniform Resource Locator (URL)
19 HTTP Request The request is formed by the client to inform the server of the request The request header includes: Supported HTTP version, type of the requestor (User-agent), accepted formats (Accept), accepted languages, cookies,... Get /stuff/page.html HTTP/1.1 Accept: text/html Accept-Language: en-us User-Agent: Mozilla/4.0 sent to localhost:8080
20 Servers Web servers provide information to web clients When a request comes in from a client, the server serves a response The response contains header information as well as the content of the page The type is contained in the header This specifies what type of information is being returned in the response (HTML page, an image, sound file,...) The client uses the type to decode the information in the response and present it to the user
21 HTTP Response The server s response includes a header followed by content data The client uses information in the header to determine what to do with the content The response header includes Content type, content length, cookies,... Server: JavaWebServer/1.0 Content-Type: text/html Set-Cookie: id= <HTML> <BODY> Hello World! </BODY> </HTML>
22 What is MIME? Multipurpose Internet Mail Extensions protocol Standard for identifying and encoding binary data for transmission Originally designed for sending attachments HTTP uses MIME Identify the type of object in the response Typically text/html which indicates that the return value is an HTML document Browsers use this information to decide what to do with the content MIME also specifies a number of different encoding schemes for transporting 8-bit data over 7-bit protocols MIME Encoding is not part of this course.
23 Some MIME Types Content types are specified as a type/subtype pair Both the type and subtype are required text/html The content of the message is HTML-formatted text text/plain The content of the message is unformatted text image/jpeg The content of the message is a JPEG image MIME Types are case in-sensitive.
24 Cookies Servers return additional information to the client via cookies Clients return the cookie information on subsequent requests Cookies can be used to maintain a relationship between a browser and the server Cookie s life span can be configured Live until a specified date and time Live until the browser closes
25 Web Pages Web pages consist of text and HTML tags which provide formatting suggestions to web browsers Pages may contain images, movies, sounds, and other types of multimedia Pages may also contain client-side technologies Java applets, JavaScript, ActiveX components which are downloaded and executed on the client Pages can provide links to other pages Links allow a user to move quickly and easily between related web pages A web site is a collection of related web pages.
26 Pages Can Be Static or Dynamic A web page may be an actual file located on a server Static content Web pages may also be dynamically generated by the server Java servlets, Java Server Pages (JSPs) Many, many others!
27 Dynamic Content Servlets and JSPs are accessed using a request with a URL - just like a regular page Unlike a regular page, the content in the response is generated dynamically by the servlet or JSP Servlets don t just generate HTML! Servlets can also be used to generate other MIME Types such as images Servlets are the subject of another course!
28 What You Have Learned The Internet consists of servers, clients, and routers Web clients access information on web servers using HyperText Transfer Protocol (HTTP) Web pages contain text and multimedia Web pages may be static or generated dynamically
29 Hands-On Lab Setup a Preview Server Software is provided with WTP Create a simple page Hello world will suffice Monitor HTTP traffic with TCP-IP Monitor TCPIP Monitor is a proxy between the browser and the server
30 HTML and XHTML Module Road Map Web Standards Web Architecture: Resources, URI and HTTP HTML and XHTML XML, XML Schemas and XML Parsing CSS XSLT
31 Section Goals To learn Web standards for HTML and XHTML To learn the structure of an HTML document To learn how to use basic HTML tags 31
32 HTML Overview HTML stands for HyperText Markup Language HTML files consist of text and tags Text provides the content of the page Tags provide formatting "suggestions" to the client It is up to the client how these suggestions are implemented HTML tags are case-insensitive Whitespaces within HTML files are generally ignored Formatting tags are used instead to specify line breaks, indentation, etc.
33 XHTML XHMTL is an xml compliant version of HTML 4.01 Benefits of using XHTML Easier to validate against Because its more stringent, we are more careful Requires the use of CSS for all presentation. Standard across most User Agents
34 HTML vs. XHTML Element and Attributes HTML <H1></H1> <Input type= Hidden > XHTML must be lowercase <h1></h1> <input type= hidden /> End tags are required HTML <p> XHTML <p></p> Empty Elements HTML <br>, <hr> XHTML <br/>, <hr /> Quotes HTML <input type=hidden value= myvalue > XHTML <input type= hidden value= myvalue /> name/value pairs HTML <input type= checkbox checked> XHTML <input type= checkbox checked= checked />
35 DOCTYPE XHTML Documents must be well formed MUST start with a <!DOCTYPE> User Agents (browsers) use the DOCTYPE Choose what mode to use when rendering your HTML <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html xmlns=" <head> <title>web Tools Platform</title> </head> <body>.. </body> </html>
36 Which mode am I in? To check which Rendering mode your computer is in, use the following: IE6 Opera javascript:alert(document.compatmode); CSS1CompatMode Standards Based Rendering Firefox, Mozilla Netscape CTRL-I for page information.
37 Forcing User Agents Force Standards Mode Example: HTML 4.x Strict <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " Quirks Mode - XML declaration with the DocType You need to use features from browser supports will Force IE6 and Opera into Quirks Mode Avoid using <?xml version="1.0" encoding="utf-8"?> Stay in standards mode More Information:
38 HTML Tags Most tags have a start tag that indicates the start of the formatting and an end tag to specify the end Start tags are of the form <tag> End tags are of the form </tag> The formatting applies to the text between the start and end tag Some tags also have attributes which provide more information within the start tag Attribute values may use single or double quotes Single quotes will make your life easier later... This shows some <b>bold</b> text.
39 Page Structure Tags... Tags used to specify the structure of the page Pages have a head and a body Pages start with a <html> and end with a </html> Tells the browser what type of file it is The <head> tag comes at the top of the page May contain a <title> tag causes the window name to be changed while the page is being displayed The <body> tag follows the <head></head> tags The body contains the content of the page
40 ...Page Structure Tags <html> <head> <title>page title</title> </head> <body> <h1> Header</h1>...Page content... <h2>subtitle</h2>...more content... </body> </html>
41 Basic Formatting Tags... <! > - Comment <b> - Bold text <i> - Italicized text <u> - Underlined text <br/> - Add a line break to the text <hr/> - Add a line break and header rule <p> - Paragraph <p align= right > - Start a new right-justified paragraph <h1> - Text is formatted as a level-1 heading Can also use <h2>, <h3>, <h4>, <h5>, and <h6> <center> - Text contained in these tags is centerjustified By default, text is left-justified
42 ...Basic Formatting Tags <html> <head> <title>eteration!</title> </head> <body> <h1>welcome to Eteration!</h1> <hr /> <p>training<br /> Consulting</p> <p>products</p> <hr /> </body> </html> Paragraph tags should have an end tag!
43 Table Tags A table is specified by providing tags for each row; the columns are specified with each row Tags: <table> - Creates an HTML table <tr> - Starts a new row within a table <td> - Starts a new cell within a table row <th> - A heading cell within a table <table border= 2 > <tr><th>employee</th> <th>id</th> <th>phone#</th></tr> <tr><td>tom Johnson</td><td>45938</td><td> </td></tr> <tr><td>steve Smith</td><td>12450</td><td> </td></tr> <tr><td>dan Jones</td><td>34545</td><td> </td></tr> </table>
44 HTML Lists HTML has tags that output text in a list format <ul> - Unordered (bullet) list <ol> - Ordered (numbered) list <li> - Start a new entry in a list (ordered or unordered) Shopping list: <ul> <li>oranges</li> <li>bananas</li> <li>faux-fu (Tofu substitute)</li> </ul> Things to do: <ol> <li>do groceries</li> <li>get a hair cut</li> <li>clean the house</li> </ol>
45 HTML Links Create a hyperlink using the <a> tag This tag has one attribute call href Used to specify the URL of the location to link to The link can refer to an HTML page, a servlet, an image,... Click <a href=" to go to education pages. White space is ignored by HTML formatters
46 The Image Tag Image tags are used to display graphical images The image tag can have a number of different parameters src The source URL of the image; the browser will use this URL to make a request for the image alt Specifies alternative text to display if the browser can t (or won t) display the graphic height and width Used to customize the size of the image without altering the source file <img src="images/eteration400.gif" alt= Eteration Logo />
47 What You Have Learned How a web page is structured How to use basic HTML tags How to add lists and hyperlinks to your HTML pages
48 Hands-On Lab Create a Web page XHTML Transitional 1.0 Validate XHTML at Use tables for layout Use tables for listing objects Tables are very complex to work with. We will fix some of the problems later
49 XML and XML Schemas Module Road Map Web Standards Web Architecture: Resources, URI and HTTP HTML and XHTML XML and XML Schemas CSS XSLT
50 Section Goals To learn about XML Compare HTML, SGML and XML To learn about DTDs To learn about XSDs To learn basic XML parsing techniques an APIs
51 Common Terms XML: XSD: DTD: extensible Markup Language XML Schema Definition Document Type Definition
52 SGML Background Standard Generalized Markup Language (ISO 8879) Motivated by heavy document processing requirements of large organizations Exchange text without loosing structure Complex failed to gain wide acceptance Both XML and HTML came form SGML SGML ISO HTML 1989 XML 1996
53 Format Markup vs. Structure Markup Meaning comes with structure How can you tell the name of this person? Arial 24pt Bold Lucida 24pt Orange Times Roman 18pt Times Roman Bold 18pt Times Roman Bold 18pt Format Naci Dai eteration a.s. 25 ITU ARI-1 Teknokent Maslak Istanbul Turkey Name Company Address Postal Code Country Structure Markup Identifies Elements of a Document
54 HTML is Limited Simple markup language Not designed for structuring data Result: Not for arbitrary universal custom data Web HTML Evolution Integrate Remote heterogenous Systems Structure Arbitrary Data Multi Channel Delivery different Presentation media
55 What is XML? EXtensible Markup Language XML is a metadata language Data is: Web page Printed Book Product Metadata is: Information about data (data about data) Describing what the data is, identifying content
56 XML is Extensible Define your own tags There is no single set of XML tags Unlike HTML, where there is a core set of tags Comprimising extensibility HTML is easy to learn and use <html> <head> <title>eteration</title> </head> <body> <br /> <h1>hello!</h1> </body> </html> html <address> <name>naci Dai</name> <company>eteration</company> <street>25 ARI-1 ITU Teknokent</street> <zip>34469</zip> <country>turkey</country> </address> <order> <price>10$</price>.. </order> <message> <text>hello</text>.. </message> xml
57 XML is for Markup Markup is identifying disctinct elements of documents Essential for documents to make sense John Smith eteration Suite 25. ITU ARI-1 Teknokent ISTANBUL Turkey Plain text markup <?xml version="1.0" encoding="utf-8"?> <address> <name>naci Dai</name> <company>eteration</company> <suite>25</suite> <street>itu ARI-1 Teknokent</street> <zip>34469</zip> <city>istanbul</city> <country>turkey</country> </address> xml
58 XML is a Language XML is a formal document markup language A document has a physical and logical structure Physical: Composed of units called entities thay may refer to others There is a "root" or document entity Logical Composed of declarations, elements, attributes, comments, character references, and processing instructions XML has syntax Indicated in the document by explicit markup The logical and physical structures must nest properly
59 XML Elements <invoice> <from>abc TELECOM, Inc.</from> <to>john Smith</to> <description>local Phone Service</description> <date type="from">16 May 1999</date> <date type="to">15 Jun 1999</date> <date type="due">15 Jul 1999</date> <amount>$50.00</amount> <taxrate>6</taxrate> <totaldue>$53.00</totaldue> </invoice> Element describes data One can define any element Element can contain other elements An element is terminated by </ >
60 XML Attribute Describes an element One can define any attribute Cannot contain other elements or attributes <?xml version="1.0" encoding="utf-8"?> <invoice type="bill" period="monhly"> <from>abc TELECOM, Inc.</from> <to>john Smith</to> <description>local Phone Service</description> <date type="from">16 May 1999</date> <date type="to">15 Jun. 1999</date> <date type="due">15 Jul. 1999</date> Describe an element <amount currency="usd ">$50.00</amount> Cannot contain other elements or attributes <taxrate>6</taxrate> <totaldue>$53.00</totaldue> </invoice>
61 Grammars for XML Documents Two current standards for constraining XML with grammars DTD (Document Type Definition) XML Schema
62 DTD: Document Type Definition DTD defines document structure makes XML data usable for different programs can be declared inline or as external reference Internal DOCTYPE declaration <!DOCTYPE root-element [element-declarations]> External DOCTYPE declaration <!DOCTYPE root-element SYSTEM "filename"> DTDs originate from SGML and they are not XML-like hint: When possible use XML Schemas
63 DTD Example <?xml version="1.0"?> <!DOCTYPE [ <!ELEMENT (to+, from, subject, message)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)> <!ELEMENT subject (#PCDATA)> <!ELEMENT message(#pcdata)> ]> .dtd <?xml version="1.0"?> <!DOCTYPE SYSTEM .dtd"> < > <to>[email protected]</to> <from>[email protected]</from> <subject>important</subject> <message>hello!!!</message> </ > .xml
64 XSD : XML Schema Definition XSD : XML Schema Definition Is an XML language for describing and constraining the content of XML documents. Alternative to DTD XSD: specifies structure of XML document i.e. elements and attributes in the XML doc XML element hierarchy element data-types and occurrences
65 Types and Elements XSD schemas contain type definitions and elements Type definitions define XML data type address, customer, purchaseorder,... Elements represent items created in the XML file If the XML file contains a PurchaseOrder type, then the XSD file will contain the corresponding element named PurchaseOrder.
66 XSD template <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs=" targetnamespace=" xmlns:tns=" 3 elementformdefault="qualified"> 4 </xs:schema> Elements and data-types used come from here. Prefix these elements with xs 2 Elements defined in this schema have this namespace. 3 Default namespace 4 Must be namespace qualified
67 XML referencing an XSD Corresponding xml references xsd. Validation checks formation and cross checks XML against XSD <?xml version="1.0" encoding="utf-8"?> <m:message xmlns:m=" xmlns:xsi=" xsi:schemalocation=" message.xsd"> <m:to>derya</m:to> <m:from>esma</m:from> <m:subject>please call</m:subject> <m:text>call me ASAP</m:text> </m:message> xsd namespace ref xsd file
68 Namespaces XML Namespaces provide a method to avoid element name conflicts a name conflict will occur when two different documents use the same element names. Every XML Schema uses at least two namespaces targetnamespace XMLSchema namespace
69 Need for Namespaces <?xml version="1.0" encoding="iso " standalone="yes"?> <book> <!-- title of a book --> <title> Eclipse Web Tools Platform</title> Ambigous <figure> <!-- title of a figure --> <title>simple Web Architecture</title> With namespace <ns1:book xmlns:ns1=" <ns1:title>eclipse Web Tools Platform</ns1:title> <ns2:figure xmlns:ns2=" <ns2:title>simple Web Architecture</ns2:title>
70 Namespace Syntax Two parts Namespace declaration Elements and attributes Declaration A prefix is associated with URI The association is defined as an attribute within an element xmlns:prefix xmlns is Namespace keyword, prefix is user-defined <classes xmlns:xmlclass= > <XMLclass:syllabus>... </XMLclass:syllabus> </classes>
71 Namespace Declaration Can be declared in: root element lower level element Multiple different namespaces can be defined Same prefix can be redefined Scope of Namespace declaration is within the element where it is defined
72 Elements and attributes Examples svg:set mathml:set prefix: local part prefix identifies the namespace an element and attribute belongs to local part identifies the particular element or attribute within the namespace Qualified name Naming rules: Prefix can be composed from any legal XML name character except : xml (in any case combination) is reserved so cannot be used as prefix Local part cannot contain :
73 Namespace URI URI cannot be prefix /, %, and ~ are not legal in XML element names URI could be standardized (by industry standard orgs) while prefixes are just convention URI are just identifiers URI does not have to be in http form URI does not have to be resolved It is like a constant value
74 Default Namespace Denoted with xmlns attribute with no prefix Applied only to unprefixed element and its descendant elements Applies only to elements not attributes <?xml version="1.0"?> <html xmlns=" xmlns:xlink=" <head><title>three Namespaces</title></head> <body> <h1 align="center">an Ellipse and a Rectangle</h1> <svg xmlns=" width="12cm" height="10cm"> <ellipse rx="110" ry="130" /> <rect x="4cm" y="1cm" width="3cm" height="6cm" /> </svg>
75 Types of Namespaces target Namespace Namespace for XML Schema document itself source Namespaces Definitions and declarations in a schema can refer to names that may belong to other namespaces <xsd:schema targetnamespace=' xmlns:xsd=' xmlns:acc= ' <xsd:element name='invoiceno' type='xsd:positive-integer'/> <xsd:element name='productid' type='acc:productcode'/> <xsd:simpletype name='productcode' base='xsd:string'> <xsd:pattern value='[a-z]{1}d{6}'/> </xsd:simpletype>
76 targetnamespace The namespace that is assigned to the schema created The names defined in a schema are said to belong to its target namespace The namespace an instance is going to use to access the types it declares Each schema has: One target namespace Possibly many source namespaces
77 Defining Types Types may be simple or complex SimpleTypes cannot contain elements or have attributes are types that are included in the XML Schema definition (boolean, string, date, etc.) ComplexType can contain attributes and elements
78 Common XML Schema Data Types string boolean decimal float double duration datetime time date
79 XSD: SimpleType Example Describes the data allowed in a Simple Field: <simpletype name="name"> <restriction base="string"></restriction> <xs:pattern value="([a-z][a-z])+"/> </simpletype> More Restriction Specs: <xs:restriction base="xs:integer"> <xs:mininclusive value="0"/> <xs:maxinclusive value= 100"/> <xs:pattern value="[0-9][0-9][0-9]"/> </xs:restriction> Constraints: enumeration, length, minlength, whitespace etc.
80 XSD: ComplexType Example Similar to defining a Java class or a Data Structure Can use own types <complextype name="persontype"> <sequence> <element name="name" type="string"/> <element name="surname" type="string"/> <element name="address" type="tns:addresstype"/> <element name="phonenumber" type="tns:phonetype" /> </sequence> </complextype>
81 Type & Element Name the Type if it will be used again <xs:complextype name="addresstype"> <xs:sequence> <xs:element name="street1" type="xs:string" /> <xs:element name="street2" type="xs:string" /> <xs:element name="postcode" type="xs:string" /> <xs:element name="city" type="xs:string" /> </xs:sequence> </xs:complextype> <xs:element name="shippingaddress" type="tns:addresstype" /> <xs:element name="invoiceaddress" type="tns:addresstype" />
82 XSD: Indicators Order all Not ordered choice One of sequence Ordered Multiplicity <xs:choice> <xs:element name="employeename" type="xs:string"/> <xs:element name="employeenum" type="xs:integer"/> </xs:choice> minoccurs / maxoccurs - Use unbounded for open boundary <xs:element name="person" maxoccurs="unbounded"> <xs:complextype> <xs:sequence> <xs:element name="full_name" type="xs:string"/> <xs:element name="child_name" type="xs:string" minoccurs="0" maxoccurs="5" /> </xs:sequence> </xs:complextype> </xs:element>
83 Importing a Schema Reuse and refactor XSD documents Partition namespaces Use existing schemas Import XSD is not same namespace Include XSD is the same namespace <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs=" xmlns:store= " xmlns:catalog=" <xs:import namespace=' schemalocation=' <xs:element name='stickyglue' type='catalog:supergluetype'/>
84 What You Have Learned XML standard for data interchange was designed to describe data and to focus on what data is text-based does not define tags of its own
85 Hands-On Lab Create a Schema for the ObjectShop catalog Use WTP XSD Editor Create Sample Catalogs Validate catalog files using XSD
86 CSS Module Road Map Web Standards Web Architecture: Resources, URI and HTTP HTML and XHTML XML and XML Schemas CSS XSLT
87 What is CSS? CSS: Cascading Style Sheets The method used to divide the content from the presentation on web pages. Styles define how to display HTML elements normally stored in Style Sheets
88 Recall: Standards Related CSS HTML doc presentation CSS XML doc XSLT XSLT XSL-FO CSS XML or HTML Figure:
89 CSS Design Benefits Maintenance and Flexibility Cleaner / Less code Refactor presentation reduce repetitive styling Better document structure Accessible Structure is separated from presentation Ability to present content on multiple devices such as mobile handhelds and formats (printer-friendly etc.) Faster download times and smaller pages Tableless layouts, no repetition, all styles in one place
90 CSS Syntax The CSS syntax is made up of two parts: Pattern Rule Rule is made of property value {property: value} pattern rule p { } text-align: center; color: black; font-family: arial h1,h2,h3 { color: red }
91 CSS Pattern Matching: Selectors Match things in a document to apply a rule Document elements Elements with specific ids Element with specific classes More than one pattern can be associated with a rule Separated with comma h1, h2, h3 { color: red }
92 CSS2 Selector Patterns Pattern matching rules determine which style rules apply to elements in the document tree. Patterns are called selectors that range from simple element names to rich contextual patterns. If all conditions in the pattern are true for a certain element, the selector matches the element. Some examples of selectors Type Selectors Class and ID Selectors Descendant and Child Selector Universal Selector Adjacent Selectors Attribute Selectors See:
93 Type Selectors Matches the name of a document(html) element type The following rule matches all H1 elements in the document tree: h1 { font-family: sans-serif } <style type="text/css"> p{ text-align: left; color:"red"; font-size: 20px; } </style>... <p>this is first paragraph </p> <p>this is second paragraph </p> This is the first paragraph This is the second paragraph
94 Class Selectors Match all elements with the given class attribute Specified with. before the class name Only one class attribute can be specified per HTML element Examples p.article - All paragraphs with a class of article.error - Any element with a class of error. p.first{ text-align: left; color:"red"; font-size: 20px; } p.second{ text-align:left; color:"blue"; font-size: 16px; }... <p class="first">this is first paragraph </p> <p class="second">this is second paragraph </p> This is the first paragraph This is the second paragraph
95 ID Selectors Matches the given id attribute An id must be unique in a page. Use a # in the selector Examples div#menu - selects the div element with the id of menu #header - selects the element with the id of header. #redtext{ text-align: left; color:"red"; font-size: 20px; } This is the first paragraph <p id="redtext">this is first paragraph </p> Another page... <h1 id="redtext">this is a header This is a header
96 Descendant Selectors Match an element that is the descendant of another element in the document tree html head body h1 Examples: body p {font-weight:bold;} Any paragraph text which is a descendant of body tr td p {color: red;} table tr td p tr td p
97 Child Selector Matches when an element is the child of another element html head body h1 tr > td > p { color: green; } table tr td p tr td p
98 Adjacent Selectors Selects an element that follows another element Text between tags have no effect Example: h1 + table { width: 100%; } html head body h1 table tr td p tr td p
99 Universal Selectors Matches an element that is a grandchild or later descendant of another element. Selects paragraphs that are at least one selector removed Note spaces before and after * div * p p element that is a grandchild or later descendant of a div
100 Attribute Selectors Attribute selectors may match in four ways: [att] The "att" attribute is set, whatever the value of the attribute. [att=val] "att" attribute value is exactly "val" [att~=val] "att" attribute value is a space-separated list of "words", one of which is exactly "val" [att =val] "att" attribute value is a hyphen-separated list of "words", beginning with "val" This is primarily intended to allow language subcode matches (e.g., the "lang" attribute in HTML)
101 Getting documents ready for CSS CSS is case sensitive: HTML names should match match the name of the selector exactly. <p class= red /> does not match p.red{} Use ids and class attributes to mark elements No spaces <input id= first-name /> <input id= last-name />
102 Inserting a style sheet Three ways of inserting a style sheet External Style Sheet Internal Style Sheet Inline Styles
103 External Style Sheet An external style sheet is ideal when the style is applied to many pages Link to the style sheet using the <link> tag. The <link> tag goes inside the head section Style sheet file should be saved with a.css extension should not contain any html tags <head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head> <body> <p class="first">this is first paragraph</p> <p class="second">this is second paragraph</p> </body>
104 Internal Style Sheet Internal Styles should be used when a single document has a unique style Is defined by using <style> tag in the head section <head> <meta http-equiv="content-type" content="text/html; charset=iso /> <style type="text/css"> p {color: white; } body {background-color: black; } </style> </head>
105 Inline Styles Placing CSS in the HTML code This method should be used sparingly For example, when a style is applied to a single occurrence of an element. <p style="background: black; color: white;"> This is new background and font color with inline CSS </p>
106 Cascading Order Styles will "cascade" by the following rules Browser default External Style Sheet Internal Style Sheet Inline Style lowest priority highest priority
107 CSS Background Defines the background effects on an element background all background properties in one declaration. background-attachment sets whether a background image is fixed or scrolls with the rest of the page. background-color background color of an element background-image Sets an image as the background background-position sets the starting position of a background image background-repeat sets if/how a background image will be repeated
108 CSS Background Examples h4 { background-color: white; } body { background-image: url(point.gif); background-repeat: repeat-x } p { background-image: url(smallpic.jpg); } body { background-image: url(stars.gif); background-attachment: scroll }
109 CSS Text Defines the spacing, decoration, and alignment of text Properties color direction letter-spacing text-align text-indent text-decoration white-space word-spacing h2{ text-decoration: underline; } p { text-indent: 20px; }
110 CSS Font Defines the font in text Properties font font-family font-size font-style font-weight... p { font: italic small-caps bold 12px arial } p { font-size: 12px; } ol{ font-size: 10px; } p { font-style: italic; } ul{ font-weight: bolder; }
111 CSS Border Allows for complete customization of the border that appear around HTML elements Properties border border-color border-style border-bottom border-bottom-color border-bottom-style border-bottom-width... table { td { p { border-width: 7px; border-style: outset; } border-width: medium; border-style: outset; } border-width: thick; border-style: solid; }
112 CSS Margin Defines the space around the elements Properties h5{ margin-top: 0px; margin margin-right: 10px; margin-bottom: 10px; margin-bottom margin-left: 10px; margin-left border: 3px solid blue; } margin-right margin-top
113 CSS and Tableless Layouts You can use CSS to do tableless layouts float Position: fixed (position absolute) HTML <div> tags
114 DIV Based Page Layout with CSS Table-based layouts are common Use div tags and CSS Reduces markup code Separates content from its visual presentation DIV tag Used as a container within our Web page Creating sections or divisions Sidebar Header Middle Footer
115 Div Example Header Sidebar Middle <body> <div id="headerregion"></div> <div id="middleregion"> <div id="sidebar"></div> <div id="middle"></div> </div> <div id="footerregion"></div> </body> Footer
116 Liquid Page Designs Fixed Locations (position) div#headerregion { position: absolute; width: 100%; top: 0; left: 0; height: 50px; } /* position:fixed for modern browsers (IE 7 / Firefox) NO scroll */ body > div#headerregion { position: fixed; } Flow around (float) div#sidebar { width: 180px; float: left; }
117 What You Have Learned Cascading Style Sheets are a way to control the look and feel of your HTML documents in an organized and efficient manner. With CSS you will be able to Add new looks to your old HTML Completely restyle a web site with only a few changes to CSS code
118 Hands-On Lab Create a CSS to manage look-and-feel of a site Manage Layout using <div> regions instead of tables
119 XSLT Module Road Map Web Standards Web Architecture: Resources, URI and HTTP HTML and XHTML XML and XML Schemas CSS XSLT
120 XSLT Extensible Stylesheet Language Transformations Transform XML documents into: XML, XHTML, HTML,.. Generate an output from two input files: Content: An XML document Transformation: An XSL document that contains the template and XSL transformations to insert content from XML XSL is a programming language NOT a simple one Debugging your XSL
121 XSL - Hello World XML: helloworld.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="helloworld.xsl"?> <message>hello World!</message> XSL: helloworld.xsl: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <!-- one rule, to transform the input root (/) --> <xsl:output method= html /> <xsl:template match="/"> <html> <body> <h1> <xsl:value-of select="message" /> </h1> </body> </html> </xsl:template> </xsl:stylesheet> Result file: <html> <body> <h1> Hello World! </h1> </body> </html>
122 Anatomy of the XSL file <?xml version="1.0"?> Start <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:output method= html /> <xsl:template match="/"> <html> <body> <h1> <xsl:value-of select="message" /> </h1> </body> </html> </xsl:template> </xsl:stylesheet> End Content-type of output Contains multiple templates
123 How did we get to text in the message? Templates <xsl:template match="/"> write to output <html> <body> <h1> <xsl:value-of select="message" /> </h1> </body> </html> </xsl:template> write to output Alternative select statements./message with XPath functions /message/text()./message/text() Select the root node in XML Select the message child and write
124 Inside the XSLT Transformation 1. Read the XML document and store it as a Tree of nodes 3. Match templates to parts of the tree <xsl:template match="/"> select the entire tree <xsl:template match=..."> use it to select subsets 4. Apply the rules in each the template to create a new structure <xsl:apply-templates/> Call additional templates from the root template 5. Unmatched parts of the XML tree are not changed 7. Write the transformed tree as a text document
125 XSL can run on the server and the client Server: Xalan, Saxon, Xerces, etc. can be used to read and write files Use XSLT to change XML files into HTML files before sending them to the client More portable (Less to expect from a browser) Client A modern browser can use XSLT to change XML into HTML on the client side Internet Explorer 6+ Netscape 6+ Mozilla, Firefox 1+, Opera 8+,..
126 xsl:value-of <xsl:value-of select="xpath expression"/> selects the contents of an element and adds it to the output stream The select attribute is required Notice that xsl:value-of is not a container, hence it needs to end with a slash Example: <h1> <xsl:value-of select="message"/> </h1>
127 xsl:for-each Loop statement <xsl:for-each select="xpath expression"> Text to insert and rules to apply </xsl:for-each> Example: Select all books (//book) and list the titles (title): <ul> <xsl:for-each select="//book"> <li><xsl:value-of select="title"/></li> </xsl:for-each> </ul>
128 Filtering output Filter output with a criterion title[../genre='mystery'] Legal filter operators are: =!= < > Example: Select all school books (//book) and list the titles (title): <ul> <xsl:for-each select="//book"> <li> <xsl:value-of select="title[../genre='mystery']"/> </li> </xsl:for-each> </ul> title and genre are at the same level of the XML tree (they are both inside the book).../ takes us to the level of the book and we select genre There is a catch! Other items will also show in the list as empty items
129 But it doesn t work right! <xsl:for-each select="//book"> <li> <xsl:value-of select="title[../genre='mystery']" /> </li> </xsl:for-each> outputs for every book, Empty bullets for other books Do not use xsl:value-of to filter Alternative Filter: <xsl:for-each select="//book[./genre='mystery']"> <li> <xsl:value-of select="title" /> </li> </xsl:for-each> OR
130 xsl:if Include content when condition is true Example: <xsl:for-each select="//book"> <xsl:if test="genre='mystery'" > <li> <xsl:value-of select="title" /> </li> </xsl:if> </xsl:for-each>
131 xsl:choose XSL switch... case... default statement The syntax is: <xsl:choose> <xsl:when test="some condition">... some code... </xsl:when> <xsl:otherwise>... some code... </xsl:otherwise> </xsl:choose>
132 xsl:sort Sorting inside an xsl:for-each Attribute of the sort tells what field to sort on Example: <ul> <xsl:for-each select="//book"> <xsl:sort select="author"/> <li> <xsl:value-of select="title"/> by <xsl:value-of select="author"/> </li> </xsl:for-each> </ul>
133 xsl:text <xsl:text>...</xsl:text> helps with: Whitespaces and special characters <xsl:text disable-output-escaping="yes"> </xsl:text>
134 Creating tags from XML data XML <label>eteration A.S.</label> <url> Desired Result <a href=" Eteration A.S.</a> We cannot use invalid XML within XSL <xsl-valueof> does not work inside a tag Same with <img /> tags
135 Solutions Using: <xsl:attribute name="..."> <a> <xsl:attribute name="href"> <xsl:value-of select="url"/> </xsl:attribute> <xsl:value-of select="label"/> </a> Using attribute value template: {...} <a href= {url}"> <xsl:value-of select="label"/> </a>
136 Modularization with Templates XSL can be divided into multiple templates using: Call by name <xsl:call-template name= template_name"/> By using XML tree select statements: <xsl:apply-templates select= book"/> <xsl:template match="/"> <html> <body> <xsl:apply-templates /> </body> </html> </xsl:template> <xsl:template match= book"> <h1>book Information</h1> <xsl:apply-templates select= title" /> </xsl:template>
137 xsl:apply-templates Apply template rule current element current element s child nodes Optional: select attribute, Applies the template rule only to the child that matches Multiple <xsl:apply-templates> Select attributes the child nodes are processed in the same order as the <xsl:apply-templates> elements
138 When templates are ignored A template is skipped if it does not apply Use select="/ to always process If it didn t, nothing would ever happen Warning: If a template applies to an element, templates are not automatically applied to its children
139 Applying templates to children <book> <title>les Miserables</title> <author>victor Hugo</author> </book> <xsl:template match="/"> <html> <head></head> <body> <b><xsl:value-of select="/book/title" /> </b> <xsl:apply-templates select="/book/author" /> </body> </html> </xsl:template> With apply-template line: Les Miserables by Victor Hugo Without apply-template line: Les Miserables <xsl:template match="/book/author"> by <i><xsl:value-of select="." /></i> </xsl:template>
140 Calling named templates You can name a template, then call it, similar to the way you would call a method in Java The named template: <xsl:template name="mytemplatename">...body of template... </xsl:template> A call to the template: <xsl:call-template name="mytemplatename"/> Or: <xsl:call-template name="mytemplatename">...parameters... </xsl:call-template>
141 Templates with parameters <xsl:call-template name="showpeople"> <xsl:with-param name= title" select="/project/title'"/> <xsl:with-param name= people" select="/project/team/members"/> </xsl:call-template> Parameterized template: <xsl:template name="showpeople"> <xsl:param name="title"/> <xsl:param name="people"/>...template body...refer to parameters as "$title" and "$people" </xsl:template> Parameters are matched up by name, not by position
142 Generating XSL output with Java Basic procedure for XSL transformation with Xalan: 2. Instantiate a TransformerFactory Use the TransformerFactory static newinstance() 3. Generate a Transformer from XSLT source TransformerFactory newtransformer(source stylesheet) Template 4. Apply transformation transform(source xmlsource, Result transformresult) The Templates object to the XML Source
143 What You Have Learned XSL and XSL constructs Transforming XML document into different types of documents
144 Hands-On Lab Create an XSLT to create the Web page from XML objectshop.xml objectshop.xsl Use CSS to create the presentation objectshop.css
Contents. Downloading the Data Files... 2. Centering Page Elements... 6
Creating a Web Page Using HTML Part 1: Creating the Basic Structure of the Web Site INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 2.0 Winter 2010 Contents Introduction...
Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence
Web Development Owen Sacco ICS2205/ICS2230 Web Intelligence Introduction Client-Side scripting involves using programming technologies to build web pages and applications that are run on the client (i.e.
WTP-101 Developing Rich Internet Applications with Java Web Frameworks
WTP-101 Developing Rich Internet Applications with Java Web Frameworks Hands on Exercises Copyright eteration a.s. 2008 ITU Teknokent ARI-1 No:25 34469 Istanbul Turkey Except for third party materials
Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc. 949-654-3890 [email protected] www.luminys.com
Essential HTML & CSS for WordPress Mark Raymond Luminys, Inc. 949-654-3890 [email protected] www.luminys.com HTML: Hypertext Markup Language HTML is a specification that defines how pages are created
Web Authoring CSS. www.fetac.ie. Module Descriptor
The Further Education and Training Awards Council (FETAC) was set up as a statutory body on 11 June 2001 by the Minister for Education and Science. Under the Qualifications (Education & Training) Act,
JJY s Joomla 1.5 Template Design Tutorial:
JJY s Joomla 1.5 Template Design Tutorial: Joomla 1.5 templates are relatively simple to construct, once you know a few details on how Joomla manages them. This tutorial assumes that you have a good understanding
Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University
Web Design Basics Cindy Royal, Ph.D. Associate Professor Texas State University HTML and CSS HTML stands for Hypertext Markup Language. It is the main language of the Web. While there are other languages
Introduction to Web Development
Introduction to Web Development Week 2 - HTML, CSS and PHP Dr. Paul Talaga 487 Rhodes [email protected] ACM Lecture Series University of Cincinnati, OH October 16, 2012 1 / 1 HTML Syntax For Example:
Fast track to HTML & CSS 101 (Web Design)
Fast track to HTML & CSS 101 (Web Design) Level: Introduction Duration: 5 Days Time: 9:30 AM - 4:30 PM Cost: 997.00 Overview Fast Track your HTML and CSS Skills HTML and CSS are the very fundamentals of
XSL - Introduction and guided tour
Concepts and Technologies of XML 6.1 XSL - Introduction and guided tour CT-XML 2014/2015 Warning! Authors " João Moura Pires ([email protected]) " With contributions of Carlos Damásio ([email protected])
XML WEB TECHNOLOGIES
XML WEB TECHNOLOGIES Chakib Chraibi, Barry University, [email protected] ABSTRACT The Extensible Markup Language (XML) provides a simple, extendable, well-structured, platform independent and easily
WEB DEVELOPMENT IA & IB (893 & 894)
DESCRIPTION Web Development is a course designed to guide students in a project-based environment in the development of up-to-date concepts and skills that are used in the development of today s websites.
Introduction to Web Technologies
Introduction to Web Technologies Tara Murphy 17th February, 2011 The Internet CGI Web services HTML and CSS 2 The Internet is a network of networks ˆ The Internet is the descendant of ARPANET (Advanced
How To Create A Web Page On A Windows 7.1.1 (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (
CREATING WEB PAGE WITH NOTEPAD USING HTML AND CSS The following exercises illustrate the process of creating and publishing Web pages with Notepad, which is the plain text editor that ships as part of
Introduction to Adobe Dreamweaver CC
Introduction to Adobe Dreamweaver CC What is Dreamweaver? Dreamweaver is the program that we will be programming our websites into all semester. We will be slicing our designs out of Fireworks and assembling
Web Design and Databases WD: Class 7: HTML and CSS Part 3
Web Design and Databases WD: Class 7: HTML and CSS Part 3 Dr Helen Hastie Dept of Computer Science Heriot-Watt University Some contributions from Head First HTML with CSS and XHTML, O Reilly Recap! HTML
Simply download Beepip from http://beepip.com and run the file when it arrives at your computer.
Beepip User Guide How To's: How do I install Beepip? Simply download Beepip from http://beepip.com and run the file when it arrives at your computer. How do I set up Beepip? Once you've opened up Beepip,
Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates
Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates What is a DIV tag? First, let s recall that HTML is a markup language. Markup provides structure and order to a page. For example,
CST 150 Web Design I CSS Review - In-Class Lab
CST 150 Web Design I CSS Review - In-Class Lab The purpose of this lab assignment is to review utilizing Cascading Style Sheets (CSS) to enhance the layout and formatting of web pages. For Parts 1 and
Module 6 Web Page Concept and Design: Getting a Web Page Up and Running
Module 6 Web Page Concept and Design: Getting a Web Page Up and Running Lesson 3 Creating Web Pages Using HTML UNESCO EIPICT M6. LESSON 3 1 Rationale Librarians need to learn how to plan, design and create
WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007
WWW World Wide Web Aka The Internet dr. C. P. J. Koymans Informatics Institute Universiteit van Amsterdam November 30, 2007 dr. C. P. J. Koymans (UvA) WWW November 30, 2007 1 / 36 WWW history (1) 1968
How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)
ITS Training Introduction to Web Development with Dreamweaver In this Workshop In this workshop you will be introduced to HTML basics and using Dreamweaver to create and edit web files. You will learn
ITNP43: HTML Lecture 4
ITNP43: HTML Lecture 4 1 Style versus Content HTML purists insist that style should be separate from content and structure HTML was only designed to specify the structure and content of a document Style
Web Development I & II*
Web Development I & II* Career Cluster Information Technology Course Code 10161 Prerequisite(s) Computer Applications Introduction to Information Technology (recommended) Computer Information Technology
Further web design: Cascading Style Sheets Practical workbook
Further web design: Cascading Style Sheets Practical workbook Aims and Learning Objectives This document gives an introduction to the use of Cascading Style Sheets in HTML. When you have completed these
CIS 467/602-01: Data Visualization
CIS 467/602-01: Data Visualization HTML, CSS, SVG, (& JavaScript) Dr. David Koop Assignment 1 Posted on the course web site Due Friday, Feb. 13 Get started soon! Submission information will be posted Useful
T XML in 2 lessons! %! " #$& $ "#& ) ' */,: -.,0+(. ". "'- (. 1
XML in 2 lessons! :.. 1 Lets start This presentation will answer the fundamental questions: What is XML? How do I use XML? How does it work? What can I use it for, anyway? 2 World Wide Web Consortium (W3C)
Appendix H: Cascading Style Sheets (CSS)
Appendix H: Cascading Style Sheets (CSS) Cascading Style Sheets offer Web designers two key advantages in managing complex Web sites: Separation of content and design. CSS gives developers the best of
What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure
CSS Peter Cho 161A Notes from Jennifer Niederst: Web Design in a Nutshell and Thomas A. Powell: HTML & XHTML, Fourth Edition Based on a tutorials by Prof. Daniel Sauter / Prof. Casey Reas What is CSS?
HTML and CSS. Elliot Davies. April 10th, 2013. [email protected]
HTML and CSS Elliot Davies [email protected] April 10th, 2013 In this talk An introduction to HTML, the language of web development Using HTML to create simple web pages Styling web pages using CSS
{color:blue; font-size: 12px;}
CSS stands for cascading style sheets. Styles define how to display a web page. Styles remove the formatting of a document from the content of the document. There are 3 ways that styles can be applied:
Introduction to web development and JavaScript
Objectives Chapter 1 Introduction to web development and JavaScript Applied Load a web page from the Internet or an intranet into a web browser. View the source code for a web page in a web browser. Knowledge
Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS
Web Design Lesson 2 Development Perspective: DIV/CSS Why tables have been tabled Tables are a cell based layout tool used in HTML development. Traditionally they have been the primary tool used by web
Developers Guide. Designs and Layouts HOW TO IMPLEMENT WEBSITE DESIGNS IN DYNAMICWEB. Version: 1.3 2013.10.04 English
Developers Guide Designs and Layouts HOW TO IMPLEMENT WEBSITE DESIGNS IN DYNAMICWEB Version: 1.3 2013.10.04 English Designs and Layouts, How to implement website designs in Dynamicweb LEGAL INFORMATION
CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28
CSS CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo ADI css 1/28 Cascaded Style Sheets Por ordem de prioridade: Inline
LabVIEW Internet Toolkit User Guide
LabVIEW Internet Toolkit User Guide Version 6.0 Contents The LabVIEW Internet Toolkit provides you with the ability to incorporate Internet capabilities into VIs. You can use LabVIEW to work with XML documents,
Advanced Editor User s Guide
Advanced Editor User s Guide 1601 Trapelo Road Suite 329 Waltham, MA 02451 www.constantcontact.com Constant Contact, Inc. reserves the right to make any changes to the information contained in this publication
CSS for Page Layout. Key Concepts
CSS for Page Layout Key Concepts CSS Page Layout Advantages Greater typography control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control
By Nabil ADOUI, member of the 4D Technical Support team
XSLT with PHP By Nabil ADOUI, member of the 4D Technical Support team Contents Summary... 3 Introduction... 3 Important elements... 3 The PHP XSL library... 4 The PHP XSL API... 5 XSLTProcessor:: construct...
Web Design with CSS and CSS3. Dr. Jan Stelovsky
Web Design with CSS and CSS3 Dr. Jan Stelovsky CSS Cascading Style Sheets Separate the formatting from the structure Best practice external CSS in a separate file link to a styles from numerous pages Style
DTD Tutorial. About the tutorial. Tutorial
About the tutorial Tutorial Simply Easy Learning 2 About the tutorial DTD Tutorial XML Document Type Declaration commonly known as DTD is a way to describe precisely the XML language. DTDs check the validity
Web layout guidelines for daughter sites of Scotland s Environment
Web layout guidelines for daughter sites of Scotland s Environment Current homepage layout of Scotland s Aquaculture and Scotland s Soils (September 2014) Design styles A daughter site of Scotland s Environment
Using Adobe Dreamweaver CS4 (10.0)
Getting Started Before you begin create a folder on your desktop called DreamweaverTraining This is where you will save your pages. Inside of the DreamweaverTraining folder, create another folder called
Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1
Contents Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1 Time for action - Viewing the mobile sample site 2 What just happened 4 Time for Action - Mobile device redirection
Introduction to XML Applications
EMC White Paper Introduction to XML Applications Umair Nauman Abstract: This document provides an overview of XML Applications. This is not a comprehensive guide to XML Applications and is intended for
04 XML Schemas. Software Technology 2. MSc in Communication Sciences 2009-10 Program in Technologies for Human Communication Davide Eynard
MSc in Communication Sciences 2009-10 Program in Technologies for Human Communication Davide Eynard Software Technology 2 04 XML Schemas 2 XML: recap and evaluation During last lesson we saw the basics
Introduction to web development using XHTML and CSS. Lars Larsson. Today. Course introduction and information XHTML. CSS crash course.
using CSS using CSS 1 using CSS 2 3 4 Lecture #1 5 6 using CSS Material using CSS literature During this, we will cover server side web with JavaServer Pages. JSP is an exciting technology that lets developers
JISIS and Web Technologies
27 November 2012 Status: Draft Author: Jean-Claude Dauphin JISIS and Web Technologies I. Introduction This document does aspire to explain how J-ISIS is related to Web technologies and how to use J-ISIS
Website Development Komodo Editor and HTML Intro
Website Development Komodo Editor and HTML Intro Introduction In this Assignment we will cover: o Use of the editor that will be used for the Website Development and Javascript Programming sections of
Lesson Overview. Getting Started. The Internet WWW
Lesson Overview Getting Started Learning Web Design: Chapter 1 and Chapter 2 What is the Internet? History of the Internet Anatomy of a Web Page What is the Web Made Of? Careers in Web Development Web-Related
Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design
Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design Contents HTML Quiz Design CSS basics CSS examples CV update What, why, who? Before you start to create a site, it s
Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation
Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation Credit-By-Assessment (CBA) Competency List Written Assessment Competency List Introduction to the Internet
Microsoft Expression Web Quickstart Guide
Microsoft Expression Web Quickstart Guide Expression Web Quickstart Guide (20-Minute Training) Welcome to Expression Web. When you first launch the program, you ll find a number of task panes, toolbars,
Getting Started with KompoZer
Getting Started with KompoZer Contents Web Publishing with KompoZer... 1 Objectives... 1 UNIX computer account... 1 Resources for learning more about WWW and HTML... 1 Introduction... 2 Publishing files
Introduction to Web Services
Department of Computer Science Imperial College London CERN School of Computing (icsc), 2005 Geneva, Switzerland 1 Fundamental Concepts Architectures & escience example 2 Distributed Computing Technologies
Last Week. XML (extensible Markup Language) HTML Deficiencies. XML Advantages. Syntax of XML DHTML. Applets. Modifying DOM Event bubbling
XML (extensible Markup Language) Nan Niu ([email protected]) CSC309 -- Fall 2008 DHTML Modifying DOM Event bubbling Applets Last Week 2 HTML Deficiencies Fixed set of tags No standard way to create new
Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY
Advanced Web Development Duration: 6 Months SCOPE OF WEB DEVELOPMENT INDUSTRY Web development jobs have taken thе hot seat when it comes to career opportunities and positions as a Web developer, as every
EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING
EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING The European Computer Driving Licence Foundation Ltd. Portview House Thorncastle Street Dublin 4 Ireland Tel: + 353
Creating Web Pages with Dreamweaver CS 6 and CSS
Table of Contents Overview... 3 Getting Started... 3 Web Page Creation Tips... 3 Creating a Basic Web Page Exercise... 4 Create a New Page... 4 Using a Table for the Layout... 5 Adding Text... 6 Adding
Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission
Web Design for Programmers Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission Quick Disclaimers This is a crash course! Many topics are simplified
HTML, CSS, XML, and XSL
APPENDIX C HTML, CSS, XML, and XSL T his appendix is a very brief introduction to two markup languages and their style counterparts. The appendix is intended to give a high-level introduction to these
Creating a Resume Webpage with
Creating a Resume Webpage with 6 Cascading Style Sheet Code In this chapter, we will learn the following to World Class CAD standards: Using a Storyboard to Create a Resume Webpage Starting a HTML Resume
XML and Data Management
XML and Data Management XML standards XML DTD, XML Schema DOM, SAX, XPath XSL XQuery,... Databases and Information Systems 1 - WS 2005 / 06 - Prof. Dr. Stefan Böttcher XML / 1 Overview of internet technologies
We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.
Creative Specs Gmail Sponsored Promotions Overview The GSP creative asset will be a ZIP folder, containing four components: 1. Teaser text file 2. Teaser logo image 3. HTML file with the fully expanded
Introduction to XHTML. 2010, Robert K. Moniot 1
Chapter 4 Introduction to XHTML 2010, Robert K. Moniot 1 OBJECTIVES In this chapter, you will learn: Characteristics of XHTML vs. older HTML. How to write XHTML to create web pages: Controlling document
4.2 Understand Microsoft ASP.NET Web Application Development
L E S S O N 4 4.1 Understand Web Page Development 4.2 Understand Microsoft ASP.NET Web Application Development 4.3 Understand Web Hosting 4.4 Understand Web Services MTA Software Fundamentals 4 Test L
Web Development CSE2WD Final Examination June 2012. (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?
Question 1. (a) Which organisation is primarily responsible for HTML, CSS and DOM standards? (b) Briefly identify the primary purpose of the flowing inside the body section of an HTML document: (i) HTML
Web Programming. Robert M. Dondero, Ph.D. Princeton University
Web Programming Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn: The fundamentals of web programming... The hypertext markup language (HTML) Uniform resource locators (URLs) The
CHAPTER 10. When you complete this chapter, you will be able to:
Data Tables CHAPTER 10 When you complete this chapter, you will be able to: Use table elements Use table headers and footers Group columns Style table borders Apply padding, margins, and fl oats to tables
Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D
Chapter 7 Page Layout Basics Key Concepts Copyright 2013 Terry Ann Morris, Ed.D 1 Learning Outcomes float fixed positioning relative positioning absolute positioning two-column page layouts vertical navigation
Building A Very Simple Website
Sitecore CMS 6.5 Building A Very Simple Web Site Rev 110715 Sitecore CMS 6.5 Building A Very Simple Website A Self-Study Guide for Developers Table of Contents Chapter 1 Introduction... 3 Chapter 2 Creating
Interactive Data Visualization for the Web Scott Murray
Interactive Data Visualization for the Web Scott Murray Technology Foundations Web technologies HTML CSS SVG Javascript HTML (Hypertext Markup Language) Used to mark up the content of a web page by adding
CREATING WEB PAGES USING HTML INTRODUCTION
CREATING WEB PAGES USING HTML INTRODUCTION Web Page Creation Using HTML: Introduction 1. Getting Ready What Software is Needed FourSteps to Follow 2. What Will Be On a Page Technical, Content, & Visual
The Web Web page Links 16-3
Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML documents Describe several specific HTML tags and their purposes 16-1 Chapter Goals
HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL
HTML CSS Basic Structure HTML [Hypertext Markup Language] is the code read by a browser and defines the overall page structure. The HTML file or web page [.html] is made up of a head and a body. The head
Intro to Web Design. ACM Webmonkeys @ UIUC
Intro to Web Design ACM Webmonkeys @ UIUC How do websites work? Note that a similar procedure is used to load images, etc. What is HTML? An HTML file is just a plain text file. You can write all your HTML
Web Portal User Guide. Version 6.0
Web Portal User Guide Version 6.0 2013 Pitney Bowes Software Inc. All rights reserved. This document may contain confidential and proprietary information belonging to Pitney Bowes Inc. and/or its subsidiaries
Mobile Web Design with HTML5, CSS3, JavaScript and JQuery Mobile Training BSP-2256 Length: 5 days Price: $ 2,895.00
Course Page - Page 1 of 12 Mobile Web Design with HTML5, CSS3, JavaScript and JQuery Mobile Training BSP-2256 Length: 5 days Price: $ 2,895.00 Course Description Responsive Mobile Web Development is more
10CS73:Web Programming
10CS73:Web Programming Question Bank Fundamentals of Web: 1.What is WWW? 2. What are domain names? Explain domain name conversion with diagram 3.What are the difference between web browser and web server
The Essential Guide to HTML Email Design
The Essential Guide to HTML Email Design Index Introduction... 3 Layout... 4 Best Practice HTML Email Example... 5 Images... 6 CSS (Cascading Style Sheets)... 7 Animation and Scripting... 8 How Spam Filters
Introduction to Web Design Curriculum Sample
Introduction to Web Design Curriculum Sample Thank you for evaluating our curriculum pack for your school! We have assembled what we believe to be the finest collection of materials anywhere to teach basic
San Joaquin County Office of Education Career & Technical Education Web Design ~ Course Outline CBEDS#: 4601
Web Design Course Outline I II 1 Course Content 5 5 Student Evaluation Employment Opportunities 2 XHTML 10 10 Creating an HTML Document Formatting Text with HTML Adding Graphics with Multimedia Using forms
Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17
Web Design Revision AQA AS-Level Computing COMP2 204 39 minutes 39 marks Page of 7 Q. (a) (i) What does HTML stand for?... () (ii) What does CSS stand for?... () (b) Figure shows a web page that has been
Differences between HTML and HTML 5
Differences between HTML and HTML 5 1 T.N.Sharma, 2 Priyanka Bhardwaj, 3 Manish Bhardwaj Abstract: Web technology is a standard that allow developing web applications with the help of predefined sets of
Internet Technologies_1. Doc. Ing. František Huňka, CSc.
1 Internet Technologies_1 Doc. Ing. František Huňka, CSc. Outline of the Course 2 Internet and www history. Markup languages. Software tools. HTTP protocol. Basic architecture of the web systems. XHTML
Designing HTML Emails for Use in the Advanced Editor
Designing HTML Emails for Use in the Advanced Editor For years, we at Swiftpage have heard a recurring request from our customers: wouldn t it be great if you could create an HTML document, import it into
Contents. Introduction... 2. Downloading the Data Files... 2
Creating a Web Page Using HTML Part 3: Multi-page Management and Uploading INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.1 Summer 2009 Contents Introduction... 2 Downloading
CS134 Web Site Design & Development. Quiz1
CS134 Web Site Design & Development Quiz1 Name: Score: Email: I Multiple Choice Questions (2 points each, total 20 points) 1. Which of the following is an example of an IP address? [Answer: d] a. www.whitehouse.gov
Web Server Logs Analyze Using the XML Technologies
Web Server Logs Analyze Using the XML Technologies Author: Tayeb L. E-mail: [email protected] July 2002. We introduce here an approach to write and analyze server logs using the XML technology.
Short notes on webpage programming languages
Short notes on webpage programming languages What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of
Dreamweaver CS3 THE MISSING MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLY 8 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo
Dreamweaver CS3 THE MISSING MANUAL David Sawyer McFarland POGUE PRESS" O'REILLY 8 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo Table of Contents The Missing Credits Introduction 1 Part
GUIDE TO CODE KILLER RESPONSIVE EMAILS
GUIDE TO CODE KILLER RESPONSIVE EMAILS THAT WILL MAKE YOUR EMAILS BEAUTIFUL 3 Create flawless emails with the proper use of HTML, CSS, and Media Queries. But this is only possible if you keep attention
BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING
BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING Wednesday 26 th March 2014 - Morning Answer any THREE questions out
Coding HTML Email: Tips, Tricks and Best Practices
Before you begin reading PRINT the report out on paper. I assure you that you ll receive much more benefit from studying over the information, rather than simply browsing through it on your computer screen.
Chapter 1 Introduction to web development and PHP
Chapter 1 Introduction to web development and PHP Murach's PHP and MySQL, C1 2010, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Use the XAMPP control panel to start or stop Apache or MySQL
This document will describe how you can create your own, fully responsive. drag and drop email template to use in the email creator.
1 Introduction This document will describe how you can create your own, fully responsive drag and drop email template to use in the email creator. It includes ready-made HTML code that will allow you to
Using Style Sheets for Consistency
Cascading Style Sheets enable you to easily maintain a consistent look across all the pages of a web site. In addition, they extend the power of HTML. For example, style sheets permit specifying point
Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development
Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development By Kenji Uchida Software Engineer IBM Corporation Level: Intermediate
