Docsity

HTML: Developing Portals using Hyper Text Markup Language, Slides of Computer Science

Partial preview of the text

Download HTML: Developing Portals using Hyper Text Markup Language and more Slides Computer Science in PDF only on Docsity!

Developing portals using HTML

Introduction To HTML^ ļ‚—

HTMLstands for

H

yper

T

ext

M

arkup

L

anguage

ļ‚—

A markup language for describing web pages. ļ‚—

It is the language interpreted by the web browser ļ‚—

Hypertext:

ļ‚—

It is the ordinary text that has been dressed up withextra features such as formatting, images, multimediaand links to other documents.

ļ‚—

Markup

ļ‚—

The process of annotating the ordinary text by addingextra symbols to it.

Creating, saving & viewing HTMLdocuments

ļ‚—

HTML documents can be created using a simpleASCII editor such as Notepad and ļ‚—

Saved as an HTML file using either

.htm

or

.html

extension ļ‚—

HTML can also be edited by using a professionalHTML editor like:

ļ‚—

Adobe Dreamweaver ļ‚—

Microsoft Front Page ļ‚—

CoffeeCup HTML Editor

ļ‚—

For viewing the HTML document, open the file in aweb browser.

HTML Versions^ ļ‚—

HTML 2.

ļ‚—

HTML

was

developed

by

the

Internet

Engineering Task Force HTML Working Groupin 1996. ļ‚—

HTML 2.0 is an outdated version of HTML. Fora Web developer there is no need to study theHTML 2.0 standard.

ļ‚—

HTML 3.

(January 1997)

ļ‚—

HTML 3.2 added new features such as fonts,tables,

applets,

superscripts,

subscripts

and

more, to the existing HTML 2.0 standard.

ļ‚—

HTML 4.

(December 1999)

ļ‚—

HTML 4.01 was a minor update of correctionsand bug-fixes from HTML 4.0.

ļ‚—

XHTML 1.

(January 2000)

ļ‚—

XHTML 1.0 reformulates HTML 4.01 in XML.

ļ‚—

HTML 5

ļ‚—

HTML 5 improves interoperability, and reducesdevelopment costs, by making precise ruleson how to handle all HTML elements, and howto recover from errors.

ļ‚—

Some

of

the

new

features

in

HTML

are

functions for embedding audio, video, graphics,client-side

data

storage,

and

interactive

documents. ļ‚—

HTML 5 also contains new elements like ,, , and .

ļ‚—

The end tag is written like the start tag, witha

forward slash

before the tag name Start tag:

End tag:

ļ‚—

Start tag activates or begins an effect. ļ‚—

End tag turns the effect off. ļ‚—

Singular tag or empty tag:

ļ‚—

A tag that does not have companion tag. ļ‚—

It has only start tag, no closing tag.

HTML Elements^ ļ‚—

An HTML element is everything from the start tagto the end tag HTML Attributes ļ‚—

Attributes

provide

additional

information

about

HTML elements. ļ‚—

Attributes are always specified in

the start tag

ļ‚—

Attributes come in name/value pairs like: ****

ļ‚—

BODY: Contains the actual content of thedocument

ļ‚§

This is the part that will be displayed in thebrowser window

HTML document structure

Sample HTML Document My web page Content of the document

ļ‚—



ļ‚—

Container

for

processing

information

and

metadata for an HTML document.

ļ‚—


ļ‚—

provides

additional

information

about

HTML

document, such as its author, publication date,expiration date, page description, keywords. ļ‚—

Metadata will not be displayed on the page,but will be machine parsable. ļ‚—

The metadata can be used by browsers (howto

display

content

or

reload

page),

search

engines (keywords), or other web services.

ļ‚—

….^ ļ‚—

It provides title of the page which appears atthe top of the browser window.

ļ‚—



ļ‚—

Container

for

the

displayable

content

of

an

HTML document.

ļ‚—

Always Quote Attribute Values

ļ‚—

Double style quotes are the most common, butsingle style quotes are also allowed. ļ‚—

In

some

rare

situations,

when

the

attribute

value itself contains quotes, it is necessary touse single quotes:

name='John "ShotGun" Nelson'

ļ‚—

HTML tags are

not case sensitive

HTML tags ordered by function^ ļ‚—

Basic ļ‚—

Formatting ļ‚—

Images ļ‚—

Links ļ‚—

Lists ļ‚—

Tables

ļ‚—

Frames ļ‚—

Audio/Video ļ‚—

Style/Sections ļ‚—

Forms ļ‚—

Meta Info ļ‚—

Programming