Lecture 0
Lecture 0
Lecture 0
INTERNET PROGRAMMING
LABORATORY
Course parameters
• L- T- P : 0-0-2
• Marks Weightage:
– Attendance: 05
– Continuous Assessment (CA): 45
– End Term Practical : 50
Text Books:
•HTML 5 COVERS CSS3, JAVASCRIPT,XML,XHTML,AJAX by KOGENT
LEARNING, DREAMTECH PRESS
Reference Books:
1.WEB ENABLED COMMERCIAL APPLICATION DEVELOPMENT USING
HTML,DHTML,JAVASCRIPT, DHTML AND PHP by IVAN BAYROSS, BPB
PUBLICATIONS
2. BEGINNING HTML, XHTML, CSS AND JAVASCRIPT by JON DICKETT,
WILEY
WEBSITE ?????
The primary function of a web server is to store, process and deliver web
pages to clients.
What we will be studying
⮚ HTML 5
⮚ CSS
⮚ Java Script
COURSE OUTCOME
• Use current techniques, skills, and methods necessary for Web Designing.
• Design and implement responsive web pages with the help of CSS and
Javascript.
• Create personal or business webpages following current industry
standards using HTML5 technologies.
• Apply web programming principles to create an interactive website.
HTML
⮚ HTML stands for Hyper Text Markup Language, which is the most widely
used language on Web to develop web pages.
⮚ HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the
first standard HTML specification which was published in 1995. HTML 4.01
was a major version of HTML and it was published in late 1999. Though
HTML 4.01 version is widely used but currently we are having HTML-5
version which is an extension to HTML 4.01, and this version was published
in 2012.
HTML
⮚ Hypertext refers to the way in which Web pages (HTML documents)
are linked together. Thus the link available on a webpage are called
Hypertext.
⮚ As its name suggests, HTML is a Markup Language which means you
use HTML to simply "mark up" a text document with tags that tell a Web
browser how to structure it to display.
HTML document structure
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Tag Description
<!DOCTYPE...> This tag defines the document type and HTML version.
This tag encloses the complete HTML document and mainly comprises of
<html> document header which is represented by <head>...</head> and document
body which is represented by <body>...</body> tags.
<head> This tag represents the document's header which can keep other HTML tags like
<title>, <link> etc.
<title> The <title> tag is used inside the <head> tag to mention the document title.
This tag represents the document's body which keeps other HTML tags like
<body> <h1>, <div>, <p> etc.
<h1> This tag represents the heading.
<p> This tag represents a paragraph.
HTML element
Whenever you use the <br /> element, anything following it starts from
the next line. This tag is an example of an empty element, where you do
not need opening and closing tags, as there is nothing to go in between
them.
The <br /> tag has a space between the characters br and the forward
slash. If you omit this space, older browsers will have trouble rendering
the line break, while if you miss the forward slash character and just use
<br> it is not valid in XHTML
Example
<!DOCTYPE html>
<html>
<head>
<title>Line Break Example</title>
</head>
<body>
<p>Hello<br />
You delivered your assignment ontime.<br />
Thanks<br />
Mahnaz </p>
</body>
</html>
Centering Content
</body>
</html>
TYPES OF TAGS IN HTML
⮚ Basic HTML
⮚ Formatting
⮚ Forms and Input
⮚ Frames
⮚ Images
⮚ Audio / Video
⮚ Links
⮚ Lists
⮚ Tables
⮚ Styles and Semantics
⮚ Meta Info
⮚ Programming
Basic HTML
Tag Description
<!DOCTYPE> Defines the document type
<html> Defines an HTML document
<title> Defines a title for the document
<body> Defines the document's body
<h1> to <h6> Defines HTML headings
<p> Defines a paragraph
<br> Inserts a single line break
<hr> Defines a thematic change in the content
<!--...--> Defines a comment
Formatting
Tag Description
<abbr> Defines an abbreviation or an acronym
Defines contact information for the
<address> author/owner of a document/article
<b> Defines bold text
Isolates a part of text that might be
<bdi> formatted in a different direction from
other text outside it
<bdo> Overrides the current text direction
Tag Forms and Input
Description
<form> Defines an HTML form for user input
<input> Defines an input control
Tag Description
<img> Defines an image
<map> Defines a client-side image-map
<area> Defines an area inside an image-map
Used to draw graphics, on the fly, via
<canvas> scripting (usually JavaScript)
<figcaption> Defines a caption for a <figure> element
<figure> Specifies self-contained content
Audio / Video
Tag Description
<audio> Defines sound content
Defines multiple media resources for
<source> media elements (<video> and <audio>)
Defines text tracks for media elements
<track> (<video> and <audio>)
<video> Defines a video or movie
Links
Tag Description
<a> Defines a hyperlink
Defines the relationship between a
<link> document and an external resource
(most used to link to style sheets)
<nav> Defines navigation links
Tag
Lists
Description
<ul> Defines an unordered list
<ol> Defines an ordered list
<li> Defines a list item
<dl> Defines a description list
<dt> Defines a term/name in a description list
Defines a description of a term/name in a
<dd> description list
<menu> Defines a list/menu of commands
Defines a command/menu item that the
<menuitem> user can invoke from a popup menu
Tables
Tag Description
<table> Defines a table
<caption> Defines a table caption
<th> Defines a header cell in a table
<tr> Defines a row in a table
<td> Defines a cell in a table
<thead> Groups the header content in a table
<tbody> Groups the body content in a table
<tfoot> Groups the footer content in a table
Specifies column properties for each
<col> column within a <colgroup> element
Specifies a group of one or more columns
<colgroup> in a table for formatting
Styles and Semantics
Tag Description
<style> Defines style information for a document
<div> Defines a section in a document
<span> Defines a section in a document
Defines a header for a document or
<header> section
Defines a footer for a document or
<footer> section
<main> Specifies the main content of a document
<section> Defines a section in a document
<article> Defines an article
Defines content aside from the page
<aside> content
Defines additional details that the user
<details> can view or hide
<dialog> Defines a dialog box or window
Defines a visible heading for a <details>
<summary> element
Meta Info
Tag Description
<head> Defines information about the document
Defines metadata about an HTML
<meta> document
Programming
Tag Description
<script> Defines a client-side script
Defines an alternate content for users
<noscript> that do not support client-side scripts
Defines a container for an external (non-
<embed> HTML) application
<object> Defines an embedded object
<param> Defines a parameter for an object