Wdm-Unit-1 Notes
Wdm-Unit-1 Notes
1
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
• Default files :
• When a server receives a request for a directory name rather than a specific file, it
looks in that directory for a default document, typically named index.html.
❖ The moment you enter this address in your browser and you hit ENTER, a lot of
different things happen:
❖ The URL gets resolved
❖ A Request is sent to the server of the website
❖ The response of the server is parsed
❖ The page is rendered and displayed
2
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
❖ Actually, every single step could be split up in multiple other steps, but for a good
overview of how it all works, that's something we can ignore here. Let's have a look at
all four steps.
❖ Step 1 - URL Gets Resolved
❖ The website code is obviously not stored on your machine and hence needs to be
fetched from another computer where it is stored. This "other computer" is called a
"server". Because it serves some purpose, in our case, it serves the website.
❖ You enter "academind.com" (that is called "a domain") but actually, the server which
hosts the source code of a website, is identified via IP (= Internet Protocol) addresses.
The browser sends a "request" (see step 2) to the server with the IP address you
entered (indirectly - you of course entered "academind.com").
❖ In reality, you also often enter "academind.com/learn" or anything like
that. "academind.com" is the domain, "/learn" is the so-called path. Together, they
make up the "URL" ("Uniform Resource Locator").
❖ In addition, you can visit most websites via "www.academind.com" or
just "academind.com". Technically, "www" is a subdomain but most websites simply
redirect traffic to "www" to the main page.
❖ An IP address typically looks like this: 172.56.180.5 (though there also is a more
"modern" form called IPv6 - but let's ignore that for now). You can learn more about
IP addresses on Wikipedia.
❖ How is the domain "academind.com" translated to its IP address?
❖ There's a special type of server out there in the internet - not just one but many servers
of that type. A so called "name server" or "DNS server" (where DNS = "Domain
Name System").
❖ The job of these DNS servers is to translate domains to IP addresses. You can imagine
those servers as huge dictionaries that store translation tables: Domain => IP
address.
❖ When you enter "academind.com", the browser therefore first fetches the IP address
from such a DNS server.
3
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
❖ In case you're wondering: The browser knows the addresses of these domain servers
by heart, they're programmed into the browser so to say.
❖ Once the IP address is known, we advanced to step 2.
❖ Step 2 - Request Is Sent
❖ With the IP address resolved, the browser goes ahead and makes a request to the
server with that IP address.
Clients and servers
Computers connected to the web are called clients and servers. A simplified diagram of how
they interact might look like this:
4
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
• Clients are the typical web user's internet-connected devices (for example, your
computer connected to your Wi-Fi, or your phone connected to your mobile network)
and web-accessing software available on those devices (usually a web browser like
Firefox or Chrome).
• Servers are computers that store webpages, sites, or apps. When a client device wants
to access a webpage, a copy of the webpage is downloaded from the server onto the
client machine to be displayed in the user's web browser.
In addition to the client and the server, we also need :
• Your internet connection: Allows you to send and receive data on the web. It's
basically like the street between your house and the shop.
• TCP/IP: Transmission Control Protocol and Internet Protocol are communication
protocols that define how data should travel across the internet. This is like the
transport mechanisms that let you place an order, go to the shop, and buy your goods.
In our example, this is like a car or a bike (or however else you might get around).
• DNS: Domain Name Servers are like an address book for websites. When you type a
web address in your browser, the browser looks at the DNS to find the website's real
address before it can retrieve the website. The browser needs to find out which server
the website lives on, so it can send HTTP messages to the right place (see below).
This is like looking up the address of the shop so you can access it.
• HTTP: Hypertext Transfer Protocol is an application protocol that defines a language
for clients and servers to speak to each other. This is like the language you use to
order your goods.
• Component files: A website is made up of many different files, which are like the
different parts of the goods you buy from the shop. These files come in two main
types:
o Code files: Websites are built primarily from HTML, CSS, and JavaScript,
though you'll meet other technologies a bit later.
o Assets: This is a collective name for all the other stuff that makes up a
website, such as images, music, video, Word documents, and PDFs.
5
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
instead. And the browser tries to pick the best handling mechanism for any data type
it detects.
❖ Step 4 - Page Is Displayed
❖ As mentioned, the browser goes through the HTML data returned by the server and
builds a website based on that.
❖ Though it is important to know, that HTML does not include any instructions
regarding what the site should look like (i.e. how it should be styled). It really only
defines the structure and tells the browser which content is a heading, which content
is an image, which content is a paragraph etc. This is especially important for
accessibility - screen readers get all the useful information out of the HTML structure
Step 1: Start with content - write up raw text content and see what browsers do with it.
Step 2: Give the document structure- HTML element syntax and the elements that give a
document its structure
Step 3: Identify text elements - describe the content using the appropriate text elements.
Step 5: Change the page appearance with a style sheet. formatting content with
Cascading Style Sheets
❖ HTML:
HTML stands for the HyperText Markup Language. HTML code is the major language
of the Internet's World Wide Web. Web sites and web pages are written in HTML code.
HTML is a language for designing and describing static web pages. HTML is not a
programming language, it is a markup language. A markup language is a set of markup
tags. HTML uses markup tags to describe web pages . A tag is a method of formatting
HTML documents.
6
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Words to Know :
➢ Tag - Used to specify ("mark-up") regions of HTML documents for the web browser
to interpret. Tags look like this: <tag>
➢ Element - A complete tag, having an opening <tag> and a closing </tag>.
➢ Attribute - Used to modify the value of the HTML element. Elements will often have
multiple attributes.
Example of basic HTML document Structure...
<html>
<head><title>Title goes here</title></head>
<body>Body goes here</body>
</html>
Where The text between <html> and </html> describes the web page , The text between
<body> and </body> is the visible page content.
HTML Element Syntax :
❖ An HTML element starts with a start tag / opening tag
❖ An HTML element ends with an end tag / closing tag
❖ The element content is everything between the start and the end tag
❖ Some HTML elements have empty content
❖ Empty elements are closed in the start tag
❖ Most HTML elements can have attributes
7
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
For example ,
<pre> Pre formatted Text
Roses are Red,
Violets are blue,
</pre>
Tag Description
8
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
9
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
If height and width not specified for image, then browser may need to rearrange the
client area after downloading the image. Default units for height and width are “picture
elements” (pixels).
Links : The <a> or anchor element
Hyperlinks are produced by the anchor element <a>. The <a> tag defines an anchor. An
anchor can be used in two ways:
1. To create a link to another document, by using the href attribute
2. To create a bookmark inside a document, by using the name attribute
The a element is usually referred to as a link or a hyperlink.
For example,
10
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
HTML Comments :
A comments begin with string of characters <!-- , which must contain no white space.
A comment ends with the string --> , again with no spaces.
For example ,
<!--Here is the comment text-->
Nesting Elements :
If one element is nested within another element, then the content of the inner element
is also content of the outer element is called nesting elements.
< tt> <strong> Horizontal rule </strong> </tt>
Most HTML elements are either block or inline
◼ Block: browser automatically generates line breaks before and after the
element content
⚫ Ex: p,div
◼ Inline: element content is added to the “flow”
⚫ Ex: span, tt, strong, a
Relative URL :
URLs that are not complete but inherit pieces(protocol,hostname,path of the parent
document) from their parent are called Relative URL. For Example,
<a href=”javafaq.html”>
If the relative link begins with a / , then it is relative to the document root instead of relative to
the current file.
Advantages :
1. Save a little typing.
2. It allow single document tree to served by multiple protocol. (eg. Both FTP and
HTTP)
3. It allow entire trees of HTML document to be moved or copied from one site to
another without breaking all the internal links.
11
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
A link has two ends, called anchors. The link starts at the source anchor and points to the
destination anchor, which may be any web resource, for example, an image, an audio or
video clip, a PDF file, an HTML document or an element within the document itself, and so
on.
Anything between the opening <a> tag and the closing </a> tag becomes the part of the link
that the user sees and clicks in a browser. Here are some examples of the links:
Example:
<a href="https://www.google.com/">Google Search</a>
<a href="https://www.tutorialrepublic.com/">Tutorial Republic</a>
<a href="images/kites.jpg">
<img src="kites-thumb.jpg" alt="kites">
</a>
The href attribute specifies the target of the link. Its value can be an absolute or relative URL.
An absolute URL is the URL that includes every part of the URL format, such as protocol, host
name, and path of the document,
e.g., https://www.google.com/, https://www.example.com/form.php, etc. While, relative
URLs are page-relative paths, e.g., contact.html, images/smiley.png, and so on. A relative URL
never includes the http:// or https:// prefix.
12
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Example:
<!DOCTYPE html>
<html>
<head>
<title>links</title>
</head>
<body>
<a href="https://www.w3schools.com/">Visit W3Schools.com!</a><br><hr>
<a href="https://www.w3schools.com/" target="_blank">Visit W3Schools!</a><br><hr>
<h2>Absolute URLs</h2>
<p><a href="https://www.w3.org/">W3C</a></p>
<p><a href="https://www.google.com/">Google</a></p><br>
<h2>Relative URLs</h2>
<p><a href="html_images.asp">HTML Images</a></p>
<p><a href="/css/default.asp">CSS Tutorial</a></p><br>
<a href="mailto:[email protected]">Send email</a><br><hr>
<a href="https://www.w3schools.com/html/" title="Go to W3Schools HTML section">Visit
our HTML Tutorial</a>
</body>
</html>
OUTPUT:
Visit W3Schools.com!
Visit W3Schools!
Absolute URLs
W3C
Google
Relative URLs
HTML Images
CSS Tutorial
Send email
13
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
14
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
A second format that has been introduced in the WWW and supported by most browsers
(including the Explorer and Navigator) is JPEG. This format is especially useful for pictures
and can compress this type of image, so they take up to 4 times less than the GIF format images.
The files that contain photos JPEG format have the extension “. jpg”.
To add an image to an HTML document, you need to include the <img> tag concerning the
desired image. The <img> tag is an empty element i.e., it does not require a closing tag, and
you can use it to include small icons to large Images. The syntax of the <img> tag can be given
below:
15
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Every image needs to carry at least two attributes: the src attribute and an alt attribute.
Src: The letters “src” stand for “source”. It defines the URL of the image. It identifies the
specific image to use with its type, i.e., it not only specifies what image; it also specifies the
URL of the image file. The commonly used image file types are GIF (Graphics Interchange
Format), JPEG (Joint Photographic Experts Group).
Alt: The “alt” attribute stands for “alternative”. Whereas, the alt attribute gives a text
description of the image inserted. This attribute is useful in text-only browsers, where images
turned off to load files faster. With this attribute, visitors will get the image’s text description
if it cannot be displayed for some reason.
For graphical browsers (Internet Explorer, Netscape Navigator, etc.), the alternative text
appears as the pop-up text i.e., whenever the visitor hovers the mouse over the image, the
alternative text appears within a rectangular box. The following lines of code describe how to
include an image with alternative text on a web page.
Various Attributes Used With <img> Tag
Height and Width: These attributes are used to set the dimensions of an image. The values
of these attributes are interpreted in pixels by default. The value from 1 to 100 percent. You
are specifying dimensions of an image decrease the loading time and improve the overall
appearance of the page. You first decide the image size, which will be most appropriate for
your web page, and then include that image.
In most of the browsers, these attributes get precedence over the actual image size. When a
browser starts loading a page, it first notes these attributes and leaves that much space for the
image before it displays the remaining text. Ultimately it goes back and fills in the image.
In the absence of these attributes, the browser first loads enough of the image to know how
much space that image requires, and tell then the rest of the page might not be displayed. To
specify the dimensions to make your page load faster because it becomes easier for the
browser.
Syntax: <img src="/images/dogs.jpg" height="pixels" width="pixels">
16
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Another use of “height” and “width” attributes would be to size images. It is rarely a good
idea, as the image may end up distorted. One way to avoid distortion is to shrink images
proportionally. Shrinking the image with these attributes does not affect the file size while
resizing the image beforehand will shrink the file and reduce the download time. However,
these are two drawbacks to specifying the “height” and “width”.
• These are presentational attributes. So they ideally belong in a style sheet instead of in your
<img> tag.
• If you have a small image and specify its height and width, the Navigator
and Internet Explorer, won’t fit the alternate text inside the small image box for those users
not displaying images.
The speed advantage of setting the “width” & “height” attributes may out weight the two
drawbacks, especially if you are not using small images with a lot of alternate text.
You might also use the style attribute to define width and height for those images. It prevents
style sheets from altering the image size unintentionally since the inline style has the
maximum priority.
Align: HTML provides another appearance attribute called the “align” attribute using which
you can position your image on the web page. This attribute offers both horizontal and vertical
alignment options. It can take any of the five values left, right, top, middle, and bottom.
Syntax: <img src=“url” align=“left | right | top | middle | bottom”>
Horizontal Alignment: Horizontally image can align to the left or right of the window.
Left: Images by default align to the left, with any text following the image appearing on the
same line. However, if the text is long, then it wraps to the bottom of the image. Specifying
align = “left” forces the image to the current left margin and any accompanying text appears
on the same line around the image’s right margin. Its interpretations also depend on whether
any images or other material with left alignment appear earlier or not. In that case, former
material will get preference, and later image will appear on the former one’s right. Any text
preceding the image forces it to appear on the next line.
Right: It is similar to left except that image is forced to the right margin, and any
accompanying text appears on the same line around the image’s left margin. In the following
example, you will see how the “to align” attribute works. Here the same image is included
thrice to show you all the possible horizontal alignments.
As you can see in the output, the first image has default alignment, which forces the long
surrounding text to appear at the bottom of the image, whereas specifying the alignment lets
the surrounding text appear beside the image.
Vertical Alignment: Vertically image can align to the top, middle, and bottom of the window.
Top: Aligns the top of the image with the top of the current text, and the remainder of the
image hangs below the text line.
Middle: Aligns the vertical mid-line of the image to the current baseline of the surrounding
text.
Bottom: This is the default vertical alignment that aligns the bottom of the image with the
accompanying text’s baseline. The remainder of the image remains higher than the
surrounding text setting.
17
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Border: By default, no border appears around an image unless that image is a link. However,
you can specify a border for an image using the “border attribute in <img> tag.
Syntax: <img src=“url” border=“pixels”>
The width of the border is specified in pixels. If you use the border = “1” attribute in <img>
tag, then a thin border will appear around the image. Also, you can increase the border width
by increasing the value in the border attribute.You can hide the border by specifying border
=” 0″ to the <img> tag.
To add a border to the image, simply add this attribute in <img> tag.
Syntax: <img src=“d:\dog.jpg” alt=“A dog sitting on the grass” border=“10”>
An image’s border
width does not count towards determining. an image’s height or width. So if you specify an
image to be 100pixels wide (width = “100”) and have a border width of 10 (Border=” 10″)
then the image will take 120 pixels of horizontal space (because the border appears on both
the left and right sides of the image).
The image will also take a few pixels more than 120 because browsers will put a small amount
of space between an image and text. The amount of space allocated is determined by the
HSpace and VSpace attributes.
4. VSpace and HSpace: Internet Explorer and Navigator do not place images right next to
the text. Instead, they put a small margin of a few pixels in between text and an image. You
can control the amount of horizontal space with the HSPACE attribute and the vertical space
with the VSpace attribute.
These spaces also referred to as white space. White space doesn’t need to be white; it just
means space has color, which depends on the background. Including white space around
images makes the page’s overall appearance better.
Syntax: <img src=“drl” hspace=“pixels”vspace=“pixels”>
The “HSpace” attribute used to insert a buffer of horizontal space on the left and right of an
image while the “VSpace” attribute is used to insert a buffer of vertical space between the top
and bottom of the image and other objects.
The value of both attributes should be a positive number of pixels. Simultaneously, under
18
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
some browsers, it may be possible to set the attribute values to percentage values. It is
inadvisable because very high values may produce strange results. By default, these attribute
values are small, non-zero numbers, which provide just enough space to keep the surrounding
text away from the image.
As you can see, there is a text written before the <img> tag, and it forces the image to appear
in a new line. Specifying white space keeps the surrounding text away from the image.
Using the HTML5 Picture Element
Scaling an image up or down to match various devices (or display sizes) does not function as
expected. Additionally, reducing the image dimension using the width and height attribute or
property does not lower the initial file size. To tackle these issues, HTML5 has introduced the
<picture> tag, which lets you specify several images to target unique devices.
The <picture> element includes zero or more <source> elements, each referring to different
image source, and one <img> element at the end. Additionally, each <source> element has
the media attribute, which defines a media requirement (similar to the media query) that can
be utilized by the browser to determine when a specific source should use. Let us try an
illustration:
1 <picture>
2 <source media="(min-width: 1040px)" src set="smalllogo.png">
3 <source media="(max-width: 800px)" src set="mainlogo.png">
4 <img src="logo.png" alt="website logo">
5 </picture>
19
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
The title attribute of this <map> tag is used to mention the map in the <img> tag with its use
map attribute. The <area>tag is used within the <map> element to specify the clickable areas
within an image. You may specify some of clickable areas in an image.
2.4. HTML Forms:
HTML forms are used to allow a user input data on a webpage and pass data to a
server. A form can contain input elements like text fields, checkboxes, and radio-buttons,
submit buttons and more. A form can also contain select lists, text area, field set, legend, and
label elements.
Forms are a vital tool for the webmaster to receive information from the web surfer,
such as: their name, email address, credit card, etc. A form will take input from the viewer and
depending on your needs, you may store that data into a file, place an order, gather user
statistics, register the person to your web forum, or maybe subscribe them to your weekly
newsletter.
Input fields are going to be the meat of your form's sandwich. The <input> has a few attributes
that you should be aware of.
➢ type - Determines what kind of input field it will be. Possible choices are text, submit,
and password.
➢ name - Assigns a name to the given field so that you may reference it later.
➢ size - Sets the horizontal width of the field. The unit of measurement is in blank spaces.
➢ maxlength - Dictates the maximum number of characters that can be entered.
HTML - Password Fields:
Password fields are a special type of <input /> tag. All that we need to do is change the
type attribute from text to password.
HTML – Checkbox Forms:
Checkboxes are another type of <input /> form. We set the type attribute to check and
we also must set a name and value attribute for them to be at all helpful.
HTML - Radio Forms :
Radios are types of input forms that allow a user to pick an either/or type of selection.
In order to achieve this, we must properly name each radio button selection accordingly. These
types of forms must be named.
HTML – Textareas :
Textareas retrieve "blog" type information from the user. Paragraphs, essays, or memos
can by cut and pasted into textareas and submitted. Textareas have an opening and a closing
tag, any words placed between them will appear inside your text area.
20
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
<tr>
<td height="30">Name of student</td>
<td><input type="text"></td>
</tr>
<tr>
<td height="30">Name of father</td>
<td><input type="text"></td>
</tr>
<tr>
<td height="30">Age</td>
<td><input type="number" min="1" max="65"></td>
</tr>
<tr>
<td height="30">Date ofb birth</td>
<td><input type="date"></td>
</tr>
<tr>
<td>gender</td>
<td>
<input type="radio" name="gender" value="male">
<label>male</label>
<input type="radio" name="gender" value="female">
<label>female</label>
</td>
</tr>
<tr>
<td>city</td>
<td>
<select>
<option selected>chennai</option>
<option>canada</option>
<option>mumbai</option>
</select>
</td>
22
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
</tr>
<tr>
<td>languages known</td>
<td>
<input type="checkbox" name="l1">
<label>English</label>
<input type="checkbox" name="l2">
<label>hindi</label>
<input type="checkbox" name="l3">
<label>tamil</label>
</td>
</tr>
<tr>
<td height="50" align="center">
<input type="button" value="submit">
</td>
</tr>
<table>
<hr width="400" align="left">
</body>
</html>
OUTPUT:
23
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
EXAMPLE 2 :
<form method="post" action=mailto:[email protected]>
Name: <input type="text" size="10" maxlength="40" name="name"><br>
Password: <input type="password" size="10" maxlength="10" name="password
Soccer: <input type="checkbox" name="sports" value="soccer" checked="yes” />
Italian<input type="radio" name="food" checked="yes" />
<textarea cols="20" rows="5" wrap="hard/soft/off"> hello welcome</textarea>
<input type=”hidden” name=”MAX_FILE_SIZE” value=”500”>
<input type=”file”> // for upload a file
<select size=3>
<option selected=”yes”>Colorred -- CO</option>
<option>Colorblue -- CO</option>
<option>Colorgreen -- CO</option>
</select>
24
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
EXAMPLE 2:
<form method="post" action=mailto:[email protected]>
Name: <input type="text" size="10" maxlength="40" name="name"><br>
Password: <input type="password" size="10" maxlength="10" name="password
Soccer: <input type="checkbox" name="sports" value="soccer" checked="yes” />
Italian<input type="radio" name="food" checked="yes" />
<textarea cols="20" rows="5" wrap="hard/soft/off"> hello welcome</textarea>
<input type=”hidden” name=”MAX_FILE_SIZE” value=”500”>
<input type=”file”> // for upload a file
<select size=3>
<option selected=”yes”>Colorred -- CO</option>
<option>Colorblue -- CO</option>
<option>Colorgreen -- CO</option>
</select>
<select multiple=”yes” size=3>
<option> California</option>
<option> America</option>
<option> Canada</option>
</select>
<input type="submit" value="Submit" />
<input type="reset" value="Clear" />
<input type="hidden" id="age" name="age" value="23" />
2.5. TABLES
HTML Tables :
The <table> tag is used to begin a table. Within a table element are the <tr> (table rows)
and <td> (table columns) tags. Tables are a handy way to create a site's layout, but it does take
some getting used to. Here's how to make a table.
This table uses the basic three tags all tables must have:
<TABLE ...>
<TABLE ...> creates the table. Most of the overall properties of the table are defined
here, such as if it has borders and what is the table's background color.
<TR ...>
25
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Month Savings
January $100
February $50
27
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Name Telephone
28
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
555 77 854
Telephone:
555 77 855
Example 5:
<!DOCTYPE html>
<html>
<head>
<title>hello</title>
</head>
<body>
<h2>HTML Table</h2>
<table border="3">
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
29
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
</tr>
<tr>
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
</tr>
<tr>
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>UK</td>
</tr>
<tr>
<td>Laughing Bacchus Winecellars</td>
<td>Yoshi Tannamuri</td>
<td>Canada</td>
</tr>
<tr>
<td>Magazzini Alimentari Riuniti</td>
<td>Giovanni Rovelli</td>
<td>Italy</td>
</tr>
</table>
</body>
</html>
3. HTML5 Introduction
New HTML5 Elements
The new HTML5 elements are:
New semantic elements like <header>, <footer>, <article>, and <section>.
New attributes of form elements like number, date, time, calendar, and range.
New graphic elements: <svg> and <canvas>.
New multimedia elements: <audio> and <video>.
New HTML5 API's (Application Programming Interfaces)
30
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
31
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
• Canvas
<!DOCTYPE html>
<html>
<head><title>senthamil</title>
</head>
<body>
</video>
</body>
</html>
32
IT8078- WEB DESIGN AND MANAGEMENT-UNIT-1-IV YEAR IT-PIT
Output:
<!DOCTYPE html>
<html>
<head><title>senthamil</title>
</head>
<body>
</audio>
</body>
</html>
Output:
33