SlideShare a Scribd company logo
What the following term mean:
1. Web server: a system on the
internet containing one or more
web site
2. Web site: a collection of one or
more web pages
3. Web pages: single disk file with a
single file name
4 .Home pages: first page in
website
WEB DESIGN
Dr.R.SUGANYA
Head & Assistant Professor
Department of Information Technology
Bon Secours College for Women
Thanjavur-613 006.
History of HTML
• HTML is a method where ordinary text can be
converted into hypertext.
• HTML is not a Programming Language.
• It combines instructions within data to tell a
display program called browser.
• Html is the character based method for
describing and expressing the content like
pictures, text, sound and video clips.
• It delivers the contents to multiple platforms.
• It links documents or components together to
compose compound documents.
• Tim Berners-Lee developed HTML in early
1990 @ CERN.
• HTML is a public domain and not owned by
anybody.
HTML Generations
• HTML 1.0 was first introduced in 1989 by Tim Berners-Lee.
• In November 1995 the first draft of HTML 2.0 was published.
• January 1997: HTML 3.2 was published as a W3C (World Wide
Web Consortium) recommendation.
• May 2000: HTML 4.0 was published as a W3C
Recommendation.
• January 2008: HTML 5.0 is published as a Working Draft by
W3C.
Creating a HTML File
1. Open Notepad
2. Click on File -> Save as…
3. In the File name pull-down box, type in
webpage.html
4. Click on Save
5. Type in content for your file
6. Once you finished the content, click on
File -> Save
What is HTML?
• Hyper Text Markup Language
• A markup language designed for the creation
of web pages and other information viewable
in a browser
• The basic language used to write web pages
• File extension: .htm, .html
What is HTML?
Telling the browser what to do, and what props to use.
A series of tags that are integrated into a text document.
• HTML files
– Text files
– Contain mark-up tags
– Tags direct how page is to be displayed by browser
– Can be created from a simple text editor
– File extension “.htm” or “.html”
Creating an HTML file
• Notepad or Wordpad (PC) or SimpleText (Mac)
• First tag: <html>
– Indicates that you are starting an HTML document
• Last tag: </html>
– Indicates that you are ending an HTML document
– *Note* the open & close structure to HTML
– Fictional example: <sleep> and </sleep>
• Save file as “index.html”
– This is a typical default title for home pages
– Windows may seem to prefer “.htm” but “.html” will also
work just fine.
HTML Documents
<html>
</html>
HTML Document Structure
<html>
<head>
<title> Page Title Goes Here </title>
</head>
<body>
content goes here
</body>
</html>
Creating an HTML file (cont.)
• Header information
– <head> to begin, and </head> to end
– Gives information about the page
• Page Title
– <title> to begin, and </title> to end
– Example: <title>Transcriptions Studio</title>
Creating Text in HTML
• Body Tags
– <body> and </body>
– *Note* that all text that appears on the page must be
encapsulated within the body tags
• Text headings
– <h1> and </h1>
– There are six defined heading sizes
– <h1> (largest) through <h6> (smallest)
• Paragraphs
– <p> and </p>
Text Example
<html>
<header>
<title>Transcriptions Studio</title>
</header>
<body>
<h1>This is a big heading!</h1>
<h2>This is a smaller heading</h2>
<p>This is an example of a paragraph.</p>
</body>
</html>
Text Example (cont.)
This is a big heading!
This is a smaller heading!
This is an example of a paragraph.
Prologue
• A Prologue is only a comment for preparing
the document.
Syntax : <! Doctype HTML 3.0>
HTML Organization
• Spacing
– Spacing organizes your work!
– Spacing makes your files easy to read!
– Spacing makes no functional difference to your web
browser
• Comments
– Comments are notes in your HTML file
– The Comment will not appear in the web page.
– Comments make no functional difference to your
web browser
– “<!--” begins a comment, and “ -->” ends it
Comments Example
<html>
<header>
<title>Transcriptions Studio</title>
</header>
<body>
<h1>This is a big header!</h1>
<h2>This is a smaller heading</h2>
<p>This is an example of a paragraph.</p>
</body>
</html>
<!-- This is an example of a comment.-->
HTML Tags
• For example: <b>, <font>,<title>, <p> etc.
• Tag usually goes with pair: an open tag (<b>) and
an end tag (<b>)
• Single tag: <hr>,<br>
• Tags are NOT case sensitive
Effect Code Code Used What It Does
Bold B <B>Bold</B> Bold
Italic I <I>Italic</I> Italic
HTML Tags
• Banner:
- A Banner is a fixed part of the page that will
stay on the screen when we scroll the text on the
page.
Ex: College logo
<link REL=Banner href=“logo.html”>
• Base Element:
-A Base element in the head section informs
the browser the location where all the base
documents are available.
Ex: http://www.bonsecourscollege.org
Anchor Tag
A source anchor is created in an HTML document (webpage)
by adding an anchor element <a> with a hypertext
reference href containing a uniform resource identifier
(URI)
Hyperlink Element Destination anchor
code
Source anchor code
Page top <a> <a
name="pagetop"></
a>
<a href="#pagetop">
Page top </a>
Content <a> <a
name="content"></a
>
<a href="#content">
Content </a>
Destination anchors <h2> <h2
id="destination">
Destination anchors
</h2>
<a
href="#destination"
> Destination
anchors </a>
Eg : <a href=“”>
<li><a href="a001">Jump to a001</a></li>
<li><a href="#a002">Jump to a002</a></li>
<li><a href="#a003">Jump to a003</a></li>
COLORFUL WEB PAGE
• A Web page can also be made colorful by
using three attributes in the <body> tag.
They are,
1. background design
2. background color
3. text color
• Bgcolor
• Specifies a background-color
for a HTML page.
<body bgcolor="#000000">
<body bgcolor="rgb(0,0,0)">
<body bgcolor="black">
• Background
• Specifies a background-image for
a HTML page
<body background="clouds.gif">
<body
background="http://www.w3scho
ols.com/clouds.gif">
<body src=“hills.bmp">
In HTML, each colors has a degree from
00 to FF in the hexadecimal forms.
So each permits 256 colors (0 to 255)
Text
• Put text on a webpage
– <p>Today is my first day at my new job, I’m so excited!</p>
– Output: Today is my first day at my new job, I’m so excited!
• Put text in center of a page
– <center>Hello</center>
– Output: Hello
• Put text on the right of a page
– <p align=“right”>Hello</p>
– Output: Hello
Font color
• To change text size
– <font size=“3”>Hello</font>
– Output: Hello
• To change text color
– <font color=“red”>Hello</font>
– Output: Hello
• Using both
– <font size=“3” color=“red”>Hello</font>
– Output: Hello
Base font: The default font size in entire page
<basefont face=“Arial” size=“16”>
Tag attribute
The Link color
• The link will appear in a different color. When we open a web
page several links may appear in a page.
• Ex:
<body bgcolor=“#FF0000” text=“#00FF00” link=“#AAAA00”
vlink=“#AA00AA” alink=“#FF0000”>
Contains:
The background color is # FF0000
The Text color is #00FF00
The link color is #AAAA00
The visited link color is #AA00AA
The active link is #FF0000
Commonly Used Character Entities
Result Description Entity Name
Non-breaking space &nbsp;
< Less than &lt;
> Greater than &gt;
& Ampersand &amp;
“ Quotation mark &quot;
© Copyright &copy;
Headings
• There are 6 heading commands.
<H1>This is Heading 1</H1>
<H2>This is Heading 2</H2>
<H3>This is Heading 3</H3>
<H4>This is Heading 4</H4>
<H5>This is Heading 5</H5>
<H6>This is Heading 6</H6>
Aligning the Headings
• There are four types of Alignments.
1. Left
2. Right
3. Center
4. Justified
Text Formatting Tags
• <b> Defines bold text
• <big> Defines big text
• <em> Defines emphasized text
• <i> Defines italic text
• <small> Defines small text
• <strong> Defines strong text
• <sub> Defines subscripted text
• <sup> Defines superscripted text
• <ins> Defines inserted text
• <del> Defines deleted text
Formatting and Tables Example
Horizontal Ruler
• A Horizontal Rule can be created using the
<hr> tag.
Example
<h1> Department of CA<h1>
<hr>
Output
Department of CA
___________________________
• There are four attributes to the <hr> tag, all of
which are optional. They are:
• Size
• Width
• Alignment
• Source
1. Size
• The size attribute has an integer value. If size=1,
a thin line is drawn horizontally, If size=5, The
line is thicker. <hr size=1>
2. Width
• The width attribute tells the width of the
window in which the horizontal line has to be
drawn. The default value of the width will be
100 percent. <hr width=50%>
3. Alignment
The default alignment is always LEFT.
There are three options for the align tag;
1. Left 2. right 3. center
<hr size=5 width=25% align=right>
4. Source
• When we filled with any design, available in a
graphics file in GIF format.
• <a href=“http://www.bdu.ac.in”>
<img src=“image.gif”></a>
Binding Spaces
• HTML automatically adjusts the intermediate
spaces and aligns the test as per the given
format. Such spaces are called soft spaces.
• soft spaces may go realigning the text.
• The space inserted by the user are called
hard spaces
Example of Binding spaces
• <h1> Bon secours &nbsp college &nbsp for
&nbsp women</h1>
Lists
Presentation is an art. It is very effective when the
concerned information is presented in the form of LIST.
Two types of list available.
1. Ordered List (OL) 2. UnOrdered List (UL)
Ordered List defines a sequentially numbered list of items.
It is used in conjunction with the LI (List Item) tag,
which is used to tag the individual list items in a list.
UnOrdered List defines a bullet list of items. The LI tag is
nested inside the UL tag and defines each item within
the list.
List
• Unordered list
– Code:
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
– Output:
• Coffee
• Milk
• Ordered list
– Code:
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
– Output:
1. Coffee
2. Milk
Ordered List
• <ol type=B>
<li>This is item one.
<li>This is item two.
<li>This is item three.
</ol>
• <ol start=“5”>
<li>This is item one.
<li>This is item two.
<li>This is item three.
</ol>
Unordered List
• <ul type=“circle”>
<li>This is item one.
<li>This is item two.
<li>This is item three.
</ul>
Plain attribute:
if we do not have any
bullets, we can use the
plain attribute in the
<ul> tag
• <ul type=“square”>
<li>This is item one.
<li>This is item two.
<li>This is item three.
</ul>
Ex: <ul plain>
Definition Lists
• The DL (definition list) tag allows you to create
glossaries or list of terms and definitions.
• It consists of three tag elements – a tag to
define the list (DL), a tag to define the term
(DT), and a tag to define the definitions (DD).
Definition Lists
• Example
<html>
<head> <title>Definitions Lists</title> </head>
<body>
<dl>
<dt>Hardware
<dd>Is defined as physical or tangible equipments associated with
computer systems. Examples of hardware are CPU,I/O devices and
Secondary Storage Devices.
<dt>Software
<dd>Is a set of Programs.
<dt>Peripherals
<dd>Equipments connected around the CPU.
</body>
</html>
Nested List
A List within another type of list is called
nested list.
Example:
<ol>
<li> BCA
<li>MCA
</ol>
<ul>
<li> This courses are the best and first course is IT Field.
</ul>
Tables
Tables are very efficient means of displaying
information in a correct form.
• The TABLE tag needs to bracket your table. All
other tags or text included in your table
should nest inside the TABLE tag.
• <html>
<head>
<title>Tables</title>
</head>
<body>
<table>
…………
</table></body></html>
Creating Columns and Rows
There are three following components in a table
1. Table caption
2. table Heading row
3. Rows and columns
• The TR (table row) and TD (table data)tags are used to create a grid of rows and columns.
• <table>
<tr>
<td>1</td>
<td>Aarthi</td>
<td>Thanjai</td>
</tr>
<tr>
<td>2</td>
<td>Anandhi</td>
<td>Thanjai</td>
</tr>
</table>
Adding a Border
• By default , the table does not contain a border, To include a border to the
table, specify a BORDER attribute inside the Table tag.
• <table border=“3”>
<tr>
<td>1</td>
<td>Aarthi</td>
<td>Thanjai</td>
</tr>
<tr>
<td>2</td>
<td>Anandhi</td>
<td>Thanjai</td>
</tr>
</table>
Adding Column Headings
• The TH(table heading) tag is used to define a
“cell” as a heading cell rather than as an
ordinary data cell.
• To create the column headings at the top of
the table, first create a row using the TR tag
and then, use the TH tag to define the cells
instead of using the TD tags.
Examples
• <table border=“3”>
<tr>
<th>Roll no</th>
<th>First Name</th>
<th>City</th>
</tr>
<tr>
<td>1</td>
<td>Aarthi</td>
<td>Thanjai</td>
</tr>
<tr>
<td>2</td>
<td>Anandhi</td>
<td>Thanjai</td>
</tr>
</table>
Adding Spacing , Padding and Caption
• The Cellspacing attribute adds space between the
cells, whereas the Cellpadding attribute adds
space within each cell.
• <Table border=“1” cellspacing=“6”
cellpadding=“6”> The cellspacing attribute
increases the thickness of the border of each cell.
• The Caption tag is used to insert a caption for the
table.
• <Table border=“1” cellspacing=“6”
cellpadding=“6”>
<caption>Student Table</caption>
Setting the table height and width
• It can be used to specify the size of your table.
You can use either absolute value(number of
pixels) or relative values (Percentages).
• <Table border=“1” cellspacing=“6”
cellpadding=“6” width=“80%”>
Table
<table border=“1">
<tr>
<th>Heading</th>
<th>Another Heading</th>
</tr>
<tr>
<td>Row 1, cell 1</td>
<td>Row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td></td>
</tr>
</table>
Heading Another Heading
Row 1, cell 1 Row 1, cell 2
Row 2, cell 1
Create Links
• A Hypertext link
– < a href=“http://www.iusb.edu”>IUSB Home</a>
– Output: IUSB Home
• A Email link
– <a href=“mailto:vkwong@iusb.edu”>
Email me</a>
– Output: Email me
Image Formats
Image can be stored in any one these formats
• .gif
– Graphics Interchange Format
• .jpeg or .jpg
– Joint Photographic Experts Group
• .bmp
– bitmap
Inserting Image
• Place all images in the same directory/folder
where you web pages are
• <img src> is a single tag
• <img src=“image.gif”>
– Output:
• Turn an image into a hyerlink
– <a href=“http://www.iusb.edu”><img
src=“image.gif”></a>
– Output:
Image Size
• Computer images are made up of “pixels”
• <IMG HEIGHT=“100" WIDTH=“150"
SRC=“flag.gif">
Width
Height
THANK YOU

More Related Content

Similar to Web Design.ppt

Similar to Web Design.ppt (20)

HTML
HTMLHTML
HTML
 
html
htmlhtml
html
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2
 
Slides 2 - HTML
Slides 2 - HTMLSlides 2 - HTML
Slides 2 - HTML
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Web+html
Web+htmlWeb+html
Web+html
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Html full
Html fullHtml full
Html full
 
HyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.pptHyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.ppt
 
HTML Basics.pdf
HTML Basics.pdfHTML Basics.pdf
HTML Basics.pdf
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html cia
Html ciaHtml cia
Html cia
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Html
HtmlHtml
Html
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Java script and html new
Java script and html newJava script and html new
Java script and html new
 
Java script and html
Java script and htmlJava script and html
Java script and html
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.ppt
 

More from Dr.R.SUGANYA RENGARAJ (7)

GSM WITH SATELLITE.pptx
GSM WITH SATELLITE.pptxGSM WITH SATELLITE.pptx
GSM WITH SATELLITE.pptx
 
GSM ARCHITECTURE-Mobile Communication.pptx
GSM ARCHITECTURE-Mobile  Communication.pptxGSM ARCHITECTURE-Mobile  Communication.pptx
GSM ARCHITECTURE-Mobile Communication.pptx
 
Basics of Mobile COmmunication.pptx
Basics of Mobile COmmunication.pptxBasics of Mobile COmmunication.pptx
Basics of Mobile COmmunication.pptx
 
BASIC OF WEB DESIGN.pptx
BASIC OF WEB DESIGN.pptxBASIC OF WEB DESIGN.pptx
BASIC OF WEB DESIGN.pptx
 
DHTML.ppt
DHTML.pptDHTML.ppt
DHTML.ppt
 
HTML & AJAX.ppt
HTML & AJAX.pptHTML & AJAX.ppt
HTML & AJAX.ppt
 
Frames.ppt
Frames.pptFrames.ppt
Frames.ppt
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 

Web Design.ppt

  • 1. What the following term mean: 1. Web server: a system on the internet containing one or more web site 2. Web site: a collection of one or more web pages 3. Web pages: single disk file with a single file name 4 .Home pages: first page in website
  • 2. WEB DESIGN Dr.R.SUGANYA Head & Assistant Professor Department of Information Technology Bon Secours College for Women Thanjavur-613 006.
  • 3. History of HTML • HTML is a method where ordinary text can be converted into hypertext. • HTML is not a Programming Language. • It combines instructions within data to tell a display program called browser. • Html is the character based method for describing and expressing the content like pictures, text, sound and video clips.
  • 4. • It delivers the contents to multiple platforms. • It links documents or components together to compose compound documents. • Tim Berners-Lee developed HTML in early 1990 @ CERN. • HTML is a public domain and not owned by anybody.
  • 5. HTML Generations • HTML 1.0 was first introduced in 1989 by Tim Berners-Lee. • In November 1995 the first draft of HTML 2.0 was published. • January 1997: HTML 3.2 was published as a W3C (World Wide Web Consortium) recommendation. • May 2000: HTML 4.0 was published as a W3C Recommendation. • January 2008: HTML 5.0 is published as a Working Draft by W3C.
  • 6. Creating a HTML File 1. Open Notepad 2. Click on File -> Save as… 3. In the File name pull-down box, type in webpage.html 4. Click on Save 5. Type in content for your file 6. Once you finished the content, click on File -> Save
  • 7. What is HTML? • Hyper Text Markup Language • A markup language designed for the creation of web pages and other information viewable in a browser • The basic language used to write web pages • File extension: .htm, .html
  • 8. What is HTML? Telling the browser what to do, and what props to use. A series of tags that are integrated into a text document. • HTML files – Text files – Contain mark-up tags – Tags direct how page is to be displayed by browser – Can be created from a simple text editor – File extension “.htm” or “.html”
  • 9. Creating an HTML file • Notepad or Wordpad (PC) or SimpleText (Mac) • First tag: <html> – Indicates that you are starting an HTML document • Last tag: </html> – Indicates that you are ending an HTML document – *Note* the open & close structure to HTML – Fictional example: <sleep> and </sleep> • Save file as “index.html” – This is a typical default title for home pages – Windows may seem to prefer “.htm” but “.html” will also work just fine.
  • 11. HTML Document Structure <html> <head> <title> Page Title Goes Here </title> </head> <body> content goes here </body> </html>
  • 12. Creating an HTML file (cont.) • Header information – <head> to begin, and </head> to end – Gives information about the page • Page Title – <title> to begin, and </title> to end – Example: <title>Transcriptions Studio</title>
  • 13. Creating Text in HTML • Body Tags – <body> and </body> – *Note* that all text that appears on the page must be encapsulated within the body tags • Text headings – <h1> and </h1> – There are six defined heading sizes – <h1> (largest) through <h6> (smallest) • Paragraphs – <p> and </p>
  • 14. Text Example <html> <header> <title>Transcriptions Studio</title> </header> <body> <h1>This is a big heading!</h1> <h2>This is a smaller heading</h2> <p>This is an example of a paragraph.</p> </body> </html>
  • 15. Text Example (cont.) This is a big heading! This is a smaller heading! This is an example of a paragraph.
  • 16. Prologue • A Prologue is only a comment for preparing the document. Syntax : <! Doctype HTML 3.0>
  • 17. HTML Organization • Spacing – Spacing organizes your work! – Spacing makes your files easy to read! – Spacing makes no functional difference to your web browser • Comments – Comments are notes in your HTML file – The Comment will not appear in the web page. – Comments make no functional difference to your web browser – “<!--” begins a comment, and “ -->” ends it
  • 18. Comments Example <html> <header> <title>Transcriptions Studio</title> </header> <body> <h1>This is a big header!</h1> <h2>This is a smaller heading</h2> <p>This is an example of a paragraph.</p> </body> </html> <!-- This is an example of a comment.-->
  • 19. HTML Tags • For example: <b>, <font>,<title>, <p> etc. • Tag usually goes with pair: an open tag (<b>) and an end tag (<b>) • Single tag: <hr>,<br> • Tags are NOT case sensitive Effect Code Code Used What It Does Bold B <B>Bold</B> Bold Italic I <I>Italic</I> Italic
  • 20. HTML Tags • Banner: - A Banner is a fixed part of the page that will stay on the screen when we scroll the text on the page. Ex: College logo <link REL=Banner href=“logo.html”> • Base Element: -A Base element in the head section informs the browser the location where all the base documents are available. Ex: http://www.bonsecourscollege.org
  • 21. Anchor Tag A source anchor is created in an HTML document (webpage) by adding an anchor element <a> with a hypertext reference href containing a uniform resource identifier (URI) Hyperlink Element Destination anchor code Source anchor code Page top <a> <a name="pagetop"></ a> <a href="#pagetop"> Page top </a> Content <a> <a name="content"></a > <a href="#content"> Content </a> Destination anchors <h2> <h2 id="destination"> Destination anchors </h2> <a href="#destination" > Destination anchors </a>
  • 22. Eg : <a href=“”> <li><a href="a001">Jump to a001</a></li> <li><a href="#a002">Jump to a002</a></li> <li><a href="#a003">Jump to a003</a></li>
  • 23. COLORFUL WEB PAGE • A Web page can also be made colorful by using three attributes in the <body> tag. They are, 1. background design 2. background color 3. text color
  • 24. • Bgcolor • Specifies a background-color for a HTML page. <body bgcolor="#000000"> <body bgcolor="rgb(0,0,0)"> <body bgcolor="black"> • Background • Specifies a background-image for a HTML page <body background="clouds.gif"> <body background="http://www.w3scho ols.com/clouds.gif"> <body src=“hills.bmp"> In HTML, each colors has a degree from 00 to FF in the hexadecimal forms. So each permits 256 colors (0 to 255)
  • 25. Text • Put text on a webpage – <p>Today is my first day at my new job, I’m so excited!</p> – Output: Today is my first day at my new job, I’m so excited! • Put text in center of a page – <center>Hello</center> – Output: Hello • Put text on the right of a page – <p align=“right”>Hello</p> – Output: Hello
  • 26. Font color • To change text size – <font size=“3”>Hello</font> – Output: Hello • To change text color – <font color=“red”>Hello</font> – Output: Hello • Using both – <font size=“3” color=“red”>Hello</font> – Output: Hello Base font: The default font size in entire page <basefont face=“Arial” size=“16”> Tag attribute
  • 27. The Link color • The link will appear in a different color. When we open a web page several links may appear in a page. • Ex: <body bgcolor=“#FF0000” text=“#00FF00” link=“#AAAA00” vlink=“#AA00AA” alink=“#FF0000”> Contains: The background color is # FF0000 The Text color is #00FF00 The link color is #AAAA00 The visited link color is #AA00AA The active link is #FF0000
  • 28. Commonly Used Character Entities Result Description Entity Name Non-breaking space &nbsp; < Less than &lt; > Greater than &gt; & Ampersand &amp; “ Quotation mark &quot; © Copyright &copy;
  • 29. Headings • There are 6 heading commands. <H1>This is Heading 1</H1> <H2>This is Heading 2</H2> <H3>This is Heading 3</H3> <H4>This is Heading 4</H4> <H5>This is Heading 5</H5> <H6>This is Heading 6</H6>
  • 30. Aligning the Headings • There are four types of Alignments. 1. Left 2. Right 3. Center 4. Justified
  • 31. Text Formatting Tags • <b> Defines bold text • <big> Defines big text • <em> Defines emphasized text • <i> Defines italic text • <small> Defines small text • <strong> Defines strong text • <sub> Defines subscripted text • <sup> Defines superscripted text • <ins> Defines inserted text • <del> Defines deleted text
  • 33. Horizontal Ruler • A Horizontal Rule can be created using the <hr> tag. Example <h1> Department of CA<h1> <hr> Output Department of CA ___________________________
  • 34. • There are four attributes to the <hr> tag, all of which are optional. They are: • Size • Width • Alignment • Source 1. Size • The size attribute has an integer value. If size=1, a thin line is drawn horizontally, If size=5, The line is thicker. <hr size=1>
  • 35. 2. Width • The width attribute tells the width of the window in which the horizontal line has to be drawn. The default value of the width will be 100 percent. <hr width=50%> 3. Alignment The default alignment is always LEFT. There are three options for the align tag; 1. Left 2. right 3. center <hr size=5 width=25% align=right>
  • 36. 4. Source • When we filled with any design, available in a graphics file in GIF format. • <a href=“http://www.bdu.ac.in”> <img src=“image.gif”></a>
  • 37. Binding Spaces • HTML automatically adjusts the intermediate spaces and aligns the test as per the given format. Such spaces are called soft spaces. • soft spaces may go realigning the text. • The space inserted by the user are called hard spaces
  • 38. Example of Binding spaces • <h1> Bon secours &nbsp college &nbsp for &nbsp women</h1>
  • 39. Lists Presentation is an art. It is very effective when the concerned information is presented in the form of LIST. Two types of list available. 1. Ordered List (OL) 2. UnOrdered List (UL) Ordered List defines a sequentially numbered list of items. It is used in conjunction with the LI (List Item) tag, which is used to tag the individual list items in a list. UnOrdered List defines a bullet list of items. The LI tag is nested inside the UL tag and defines each item within the list.
  • 40. List • Unordered list – Code: <ul> <li>Coffee</li> <li>Milk</li> </ul> – Output: • Coffee • Milk • Ordered list – Code: <ol> <li>Coffee</li> <li>Milk</li> </ol> – Output: 1. Coffee 2. Milk
  • 41. Ordered List • <ol type=B> <li>This is item one. <li>This is item two. <li>This is item three. </ol> • <ol start=“5”> <li>This is item one. <li>This is item two. <li>This is item three. </ol>
  • 42. Unordered List • <ul type=“circle”> <li>This is item one. <li>This is item two. <li>This is item three. </ul> Plain attribute: if we do not have any bullets, we can use the plain attribute in the <ul> tag • <ul type=“square”> <li>This is item one. <li>This is item two. <li>This is item three. </ul> Ex: <ul plain>
  • 43. Definition Lists • The DL (definition list) tag allows you to create glossaries or list of terms and definitions. • It consists of three tag elements – a tag to define the list (DL), a tag to define the term (DT), and a tag to define the definitions (DD).
  • 44. Definition Lists • Example <html> <head> <title>Definitions Lists</title> </head> <body> <dl> <dt>Hardware <dd>Is defined as physical or tangible equipments associated with computer systems. Examples of hardware are CPU,I/O devices and Secondary Storage Devices. <dt>Software <dd>Is a set of Programs. <dt>Peripherals <dd>Equipments connected around the CPU. </body> </html>
  • 45. Nested List A List within another type of list is called nested list. Example: <ol> <li> BCA <li>MCA </ol> <ul> <li> This courses are the best and first course is IT Field. </ul>
  • 46. Tables Tables are very efficient means of displaying information in a correct form. • The TABLE tag needs to bracket your table. All other tags or text included in your table should nest inside the TABLE tag. • <html> <head> <title>Tables</title> </head> <body> <table> ………… </table></body></html>
  • 47. Creating Columns and Rows There are three following components in a table 1. Table caption 2. table Heading row 3. Rows and columns • The TR (table row) and TD (table data)tags are used to create a grid of rows and columns. • <table> <tr> <td>1</td> <td>Aarthi</td> <td>Thanjai</td> </tr> <tr> <td>2</td> <td>Anandhi</td> <td>Thanjai</td> </tr> </table>
  • 48. Adding a Border • By default , the table does not contain a border, To include a border to the table, specify a BORDER attribute inside the Table tag. • <table border=“3”> <tr> <td>1</td> <td>Aarthi</td> <td>Thanjai</td> </tr> <tr> <td>2</td> <td>Anandhi</td> <td>Thanjai</td> </tr> </table>
  • 49. Adding Column Headings • The TH(table heading) tag is used to define a “cell” as a heading cell rather than as an ordinary data cell. • To create the column headings at the top of the table, first create a row using the TR tag and then, use the TH tag to define the cells instead of using the TD tags.
  • 50. Examples • <table border=“3”> <tr> <th>Roll no</th> <th>First Name</th> <th>City</th> </tr> <tr> <td>1</td> <td>Aarthi</td> <td>Thanjai</td> </tr> <tr> <td>2</td> <td>Anandhi</td> <td>Thanjai</td> </tr> </table>
  • 51. Adding Spacing , Padding and Caption • The Cellspacing attribute adds space between the cells, whereas the Cellpadding attribute adds space within each cell. • <Table border=“1” cellspacing=“6” cellpadding=“6”> The cellspacing attribute increases the thickness of the border of each cell. • The Caption tag is used to insert a caption for the table. • <Table border=“1” cellspacing=“6” cellpadding=“6”> <caption>Student Table</caption>
  • 52. Setting the table height and width • It can be used to specify the size of your table. You can use either absolute value(number of pixels) or relative values (Percentages). • <Table border=“1” cellspacing=“6” cellpadding=“6” width=“80%”>
  • 53. Table <table border=“1"> <tr> <th>Heading</th> <th>Another Heading</th> </tr> <tr> <td>Row 1, cell 1</td> <td>Row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td></td> </tr> </table> Heading Another Heading Row 1, cell 1 Row 1, cell 2 Row 2, cell 1
  • 54. Create Links • A Hypertext link – < a href=“http://www.iusb.edu”>IUSB Home</a> – Output: IUSB Home • A Email link – <a href=“mailto:vkwong@iusb.edu”> Email me</a> – Output: Email me
  • 55. Image Formats Image can be stored in any one these formats • .gif – Graphics Interchange Format • .jpeg or .jpg – Joint Photographic Experts Group • .bmp – bitmap
  • 56. Inserting Image • Place all images in the same directory/folder where you web pages are • <img src> is a single tag • <img src=“image.gif”> – Output: • Turn an image into a hyerlink – <a href=“http://www.iusb.edu”><img src=“image.gif”></a> – Output:
  • 57. Image Size • Computer images are made up of “pixels” • <IMG HEIGHT=“100" WIDTH=“150" SRC=“flag.gif"> Width Height