3 Client-Side Computing Lecture 3
3 Client-Side Computing Lecture 3
A few uncommon ones are: However, we first look at the language that is at the heart of
1. Jscript – hypertext web interfaces/documents – HTML.
A Windows based scripting language that
represents Microsoft’s Active Scripting HTML – An Introduction
implementation of ECMAScript. The Hypertext Markup Language is the major markup language
2. VBScript – that is used in the development of web pages. HTML basically
Visual Basic Scripting Edition. Another Microsoft defines the structure of the content on a given web page by
Active Scripting language. indicating how the various constituents of the content must be
3. Java Applets processed and presented. The language is written in the form of
Client-side, Java driven applications that run in labels/entities denoted by the enclosing “<” and “>” symbols.
the web browser.
4. Ajax (Asynchronous JavaScript and XML) <html>
A Hybrid of two technlologies, JavaScript and <head>
<title>Title of page</title>
XML. Allows web interfaces to function more </head>
like application interfaces by allowing portions of <body>
content to be asynchronously requested from the This is my first homepage. <b>This text is
web and displayed. bold</b>
</body>
</html>
Further categorizing the listed client-side web technologies, we
find that a technology can either be related to a user-agent, such HTML can also include embedded scripting language code
as the web browser, or a client-side web language that defines which adds logical processing capability to the ordinary web
structure and/or logic for the user-agent to process and display. page.
Within the scope of this course, we will take an in-depth look at Since the HTML language must be appropriately interpreted by
HTML, CSS, JavaScript and XHTML in sequence. These all web browsers and all websites must use HTML to structure
technologies are used in designing and developing dynamic and their text-based information, the HTML language is an
highly interactive web interfaces. Additionally, while learning established standard of the web. Particularly, the W3C
these languages to build web interfaces, you will also be (WorldWideWeb Consortium) published the HTML 4.01
enlightened about usability heuristics in web interface design recommendation in 1999 with amendments in 2001.
(Jakob Nielson) to produce practical and usable web interfaces.
HTML Markup
• Presentational markup describes the appearance of the
A typical HTML document (in its source form) can be seen to text, regardless of its function. For example,
have several types of entities that control the structure of the <b>boldface</b> indicates that "boldface" should be
content. These entities are elements, attributes, data types and rendered in bold text.
character references.
• Hypertext markup links parts of the document to other
Elements – documents. The anchor element <a>hyperlink</a> is
used to create a hyperlink in the flow of text. However,
Elements establish the basic structure for HTML markup. usually a URL has to be supplied to the href attribute of
Elements have two basic properties: attributes and content. Each the anchor element in order for it to function as intended,
attribute and each element's content has certain restrictions that e.g. <a href=”http://www.xyz.com”> A Link</a> will
must be followed for an HTML document to be considered valid. render “A Link” as a hyperlink.
An element usually has a start label (eg. <label>) and an end Attributes –
label (eg. </label>). The element's attributes are contained in
the start label and content is located between the labels (eg. Attributes are name-value pairs that describe some information
<label>Content</label>). Some elements, such as <br>, about the element. They are defined within the start tag of an
will never have any content and do not need closing labels. element as one or more whitespace-separated sequences of
Listed below are several types of markup elements used in name=”value” pairs e.g
HTML. <span id="anId" class="aClass"
style="color:red;">HTML</span>
• Structural markup describes the purpose of text. For
example, <h2>Golf</h2> establishes "Golf" as a
second-level heading, which would be rendered in a
browser in a manner similar to the "CSI225 Internet
Computing" title at the start of this lecture. Structural
markup does not denote any specific rendering, but most Reference:
"HTML." Wikipedia, The Free Encyclopedia. 9 Feb 2007, 15:30 UTC. Wikimedia Foundation,
web browsers have standardized methods on how Inc. 12 Feb 2007 <http://en.wikipedia.org/w/index.php?title=HTML&oldid=106848323>.
elements should be formatted. Further styling, however,
is typically done with Cascading Style Sheets (CSS).