Unit-II-Web-Technologies
Unit-II-Web-Technologies
XHTML 2000
HTML 5 2014
Elements and Tag: HTML uses predefined tags and elements which tells the browser about
content display property. If a tag is not closed then browser applies that effect till end of page.
HTML page structure: The Basic structure of HTML page is given below. It contain some
elements like head, title, body, … etc. These elements are used to build the blocks of web pages.
<DOCTYPE! html>: This tag is used to tells the HTML version. This currently tells that the
version is HTML 5.
<html>: This is called HTML root element and used to wrap all the code.
<head>: Head tag contains metadata, title, page CSS etc. All the HTML elements that can be
used inside the <head> element are:
<style>
<title>
<base>
<noscript>
<script>
<meta>
<title>
<body>: Body tag is used to enclosed all the data which a web page has from texts to links. All
of the content that you see rendered in the browser is contained within this element.
Features of HTML:
It is easy to learn and easy to use.
It is platform independent.
Images, video and audio can be added to a web page.
Hypertext can be added to text.
It is a markup language.
Why learn HTML?
It is a simple markup language. Its implementation is easy.
It is used to create a website.
Helps in developing fundamentals about web programming.
Boost professional career.
Advantages:
HTML is used to build a websites.
It is supported by all browsers.
It can be integrated with other languages like CSS, JavaScript etc.
Disadvantages:
HTML can create only static webpages so for dynamic web page other languages have to be used.
Large amount of code has to be written to create a simple web page.
Security feature is not good.
XML
XML stands for eXtensible Markup Language
XML is a markup language much like HTML
XML was designed to store and transport data
XML was designed to be self-descriptive
XML is a W3C Recommendation
XML is Extensible
Most XML applications will work as expected even if new data
is added (or removed).
Imagine an application designed to display the original version
of note.xml (<to> <from> <heading> <body>).
Then imagine a newer version of note.xml with added <date>
and <hour> elements, and a removed <heading>.
XML Simplifies Things
It simplifies data sharing
It simplifies data transport
It simplifies platform changes
It simplifies data availability
Many computer systems contain data in incompatible formats.
Exchanging data between incompatible systems (or upgraded
systems) is a time-consuming task for web developers. Large
amounts of data must be converted, and incompatible data is
often lost.
XML stores data in plain text format. This provides a software-
and hardware-independent way of storing, transporting, and
sharing data.
XML also makes it easier to expand or upgrade to new
operating systems, new applications, or new browsers, without
losing data.
With XML, data can be available to all kinds of "reading
machines" like people, computers, voice machines, news feeds,
etc.
INTRODUCTION OF CSS
CSS saves time : You can write CSS once and reuse same
sheet in multiple HTML pages.
Easy Maintainence : To make a global change simply
change the style, and all elements in all the webpages will be
updated automatically.
Search Engines : CSS is considered as clean coding
technique, which means search engines won’t have to struggle to
“read” its content.
Superior styles to HTML : CSS has a much wider array of
attributes than HTML, so you can give a far better look to your
HTML page in comparison to HTML attributes.
Offline Browsing : CSS can store web applications locally
with the help of offline catche.Using of this we can view offline
websites.
CSS Syntax
A CSS comprises of style rules that are interpreted by the
browser and then applied to the corresponding elements in your
document.
A style rule set consists of a selector and declaration block.
The selector points to the HTML element you want to style.
The declaration block contains one or more
declarations separated by semicolons.
Each declaration includes a CSS property name and a
value, separated by a colon.
For Example:
-> color is property and blue is value.
-> font size is property and 12px is value.
A CSS declaration always ends with a semicolon, and
declaration blocks are surrounded by curly braces.
The CSS specifications are maintained by the World
Wide Web Consortium (W3C). Internet media type (MIME
type) text/css is registered for use with CSS by RFC
2318 (March 1998). The W3C operates a free CSS validation
service for CSS documents.
In addition to HTML, other markup languages support the use of CSS including XHTML, plain XML,
SVG, and XUL.
The data is typically indexed across rows, columns and tables that
make workload processing and data querying efficient. There are
different types of databases: Object-oriented, Relational, Distributed,
Hierarchical, Network and others. In enterprise applications, databases
involve mission-critical, security-sensitive and compliance-focused
record items that have complicated logical relationships with other
datasets and grow exponentially over time as the userbase increases. As
a result, these organizations require technology solutions to maintain,
secure, manage and process the data stored in databases. This is where
Database Management System come into play.
MS Access Database:
Microsoft Access is a database management system from Microsoft
that combines the relational Microsoft Jet Database Engine with a
graphical user interface and software-development tools. It is a member
of the Microsoft Office suite of applications, included in the Professional
and higher editions or sold separately.
Database objects are the main players in an Access database.
Altogether, we have six different types of database objects. From these
we'll use Table to create database Tables store information. Tables are
the heart of any database, and you can create as many tables as you need
to store different types of information. A fitness database could track
your daily running log, your inventory of exercise equipment, and the
number of high-protein whey milkshakes you down each day, as three
separate tables.
Important point to remember
You can customize a table in two ways:
Design view lets you precisely define all aspects of a table before
you start using it.
Datasheet view is where you enter data into a table. Datasheet view
also lets you build a table on the fly as you insert new information.
MySQL Database
MySQL is a fast, easy-to-use RDBMS being used for many small and
big businesses. MySQL is developed, marketed and supported by
MySQL AB, which is a Swedish company. MySQL is becoming so
popular because of many good reasons −