SlideShare ist ein Scribd-Unternehmen logo
1 von 61
Downloaden Sie, um offline zu lesen
An Introduction to
Web Page
Programming
*HTML
From:
www.slideshare.net/vikasgaur31/introduction-to-html
MMV - 1ST Sem. A.Y. 2017 -2018
Thisfile istogivecredits totherightful owner ofthispresentation and thisis alsointended forclassroom useonly.
Adapted /Modifiedby:
WHAT IS A WEB PAGE?
Web pages are text files containing HTML
HTML – Hyper Text Markup Language
A notation for describing
document structure (semantic markup) – pertaining to the
layout/format of HTML codes
formatting (presentation markup) – more on text formatting or how
documents/text will look like in an online page.
Looks (looked?) like:
A Microsoft Word document
The markup tags provide information
about the page content structure
• With HTML you can create your own web site.
• HTML was derived from SGML (Standard Generalized
Markup Language).
• The future of HTML is XML (eXtensible Markup
Language). HTML is limited to design with focus on how
data looks and does not have subsets or applications
while XML was designed to be a software and hardware
independent tool used to store and transport data.
• HTML is not a programming language, it is a Markup
Language that has a set of markup tags.
• HTML uses markup tags to describe web pages.
• HTML is not case sensitive language.
• HTML documents contain HTML tags and plain text.
*HTML Details
document structure (semantic markup)
Examples of semantic elements: <form>, <table>, and
<article> - Clearly defines its content.
formatting (presentation markup)
An HTML file must have an .htm or .html file
extension
HTML files can be created with text editors:
NotePad, NotePad ++, PSPad
Or HTML editors (WYSIWYG Editors):
 Microsoft FrontPage
 Macromedia Dreamweaver
 Netscape Composer
 Expression Web
*Creating HTML Pages
• A tag is always enclosed in angle bracket <>like <HTML>
• HTML tags normally come in pairs like <HTML> and
</HTML> i.e.
Start tag = <HTML>
End tag =</HTML>
• Start and end tags are also called opening tags and
closing tags
*HTML Elements and Tags
*BASIC TAGS
Name Tags
HTML <HTML>…</HTML>
HEAD <HEAD>…</HEAD>
TITLE <HEAD><TITLE>…</TITLE></HEAD>
BODY <BODY>…</BODY>
• <HTML> - Describe HTML web page that is
to be viewed by a web browser.
• <HEAD> - This defines the header section
of the page.
• <TITLE> - This shows a caption in the title
bar of the page.
• <BODY> - This tag show contents of the
web page will be displayed.
*Explanation …………
There are two different types of tags:->
Container Element:->
Container Tags contains start tag & end tag i.e.
<HTML>… </HTML>
Empty Element:->
Empty Tags contains start tag i.e.
<BR>
<HR>
*Types of HTML Tags
• Write html code in notepad.
• Save the file with (.htm) or (.html) extension.
• View the page in any web browser viz.
INTERNET EXPLORER, NETSCAPE
NAVIGATOR etc.
• The purpose of a web browser (like internet
explorer or firefox) is to read html documents and
display them as web pages.
*HOW TO START
<HTML>
<HEAD><TITLE>MY FIRST PAGE</TITLE></HEAD>
<BODY>
GLOBAL INFORMATION CHANNEL
</BODY>
</HTML>
*HTML Code #1
Result
Heading Element:->
• There are six heading elements
(<H1>,<H2>,<H3>,<H4>, <H5>,<H6>).
• All the six heading elements are container tag and
requires a closing tag.
• <h1> will print the largest heading
• <h6> will print the smallest heading
*Text Formatting Tags
<html>
<head><title>heading</title></head>
<body>
<h1> GLOBAL INFO CHANNEL</h1>
<h2> GLOBAL INFO CHANNEL</h2>
<h3> GLOBAL INFO CHANNEL</h3>
<h4> GLOBAL INFO CHANNEL</h4>
<h5> GLOBAL INFO CHANNEL</h5>
<h6> GLOBAL INFO CHANNEL</h6>
</body>
</html>
*Heading Tag (Code #2)
*Result of Code #2
• HTML documents are divided into paragraphs.
• Paragraphs are defined with the <p> tag i.e.
*HTML Paragraph Tag
<html>
<head><title>paragraph</title></head>
<body>
<p>This is a paragraph</p>
<p>This is another paragraph</p>
<pre>This text is preformatted</pre>
</body>
</html>
Code #3
Result of Code #3
• if you want a line break or a new line
without starting a new paragraph Use the
<br> tag.
• Defines a horizontal line use <hr>tag.
• <br> <hr> element are empty HTML
element
* Line Break & Horizontal
Line Tag
<html>
<head><title>Line Break and
Horizontal Line </title>
</head>
<body>
Global Information Channel<hr>
Global Information <br> Channel
</body>
</html>
* Line Break & Horizontal Line Tag
(code #4)
Line Break & Horizontal Line Tag
(RESULT of CODE #4)
*Text Formatting Tags
TAGS FUNCTION
<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
<super> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
<tt> Defines teletype text
<u> Defines underline text
<strike> Defines strike text
<html>
<head><title>Formatting Text</title></head>
<body>
<b>This text is Bold</b>
<br><em>This text is Emphasized</em>
<br><i>This text is Italic</i>
<br><small>This text is Small</small>
<br>This is<sub> Subscript</sub> and
<sup>Superscript</sup>
<br><strong>This text is Strong</strong>
<br><big>This text is Big</big>
<br><u>This text is Underline</u>
<br><strike>This text is Strike</strike>
<br><tt>This text is Teletype</tt>
</body>
</html>
*Text Formatting Code #5
* Text Formatting Code
(result of code #5)
HTML TEXT FORMATTING
<html>
<body>
<b>Confidence</b><br />
<big>Hardwork</big><br />
<i>Perseverance</i><br />
<code>Samsung CRT</code><br />
This is<sub> subscript</sub><br />
This is<sup> superscript</sup>
</body>
</html>
Some Formatting Tags are 1,b-Bold, 2.i-Italic, 3.code-
Computer code,4.sub-Subscript & 5.sup-Superscript
NOTE:
Implement this as another
exercise
Code #6
• This element is used to format the size,
typeface and color of the enclosed text.
• The commonly used fonts for web pages are
Arial, Comic Sans MS , Lucida Sans Unicode,
Arial Black, Courier New, Times New Roman,
Arial Narrow, Impact, Verdana.
• The size attribute in font tag takes values from
1 to 7.
*Font Tag
<html>
<head><title> fonts</title></head>
<body>
<br><font color=“green" size="7" face="Arial"> GLOBAL
INFORMATION CHANNEL </font>
<br><font color=“green" size="6" face="Comic Sans MS "> GLOBAL
INFORMATION CHANNEL </font>
<br><font color=“green" size="5" face="Lucida Sans Unicode">
GLOBAL INFORMATION CHANNEL </font>
<br><font color=“green" size="4" face="Courier New"> GLOBAL
INFORMATION CHANNEL </font>
<br><font color=“green" size="3" face="Times New Roman">
GLOBAL INFORMATION CHANNEL </font>
<br><font color=“green" size="2" face="Arial Black"> GLOBAL
INFORMATION CHANNEL </font>
<br><font color=“green" size="1" face="Impact"> GLOBAL
INFORMATION CHANNEL </font>
</body>
</html>
* Font Tag Code #7
*Result of Code #7
• The attribute bgcolor is used for changing the back ground
color of the page.
<body bgcolor=“Green” >
• Text is use to change the color of the enclosed text.
<body text=“White”>
* Background & Text Color Tag
* Background & Text Color Tag
(challenge for Code #8)
Create an HTML code to produce the
given sample above
• It is use for the alignment of text.
1.Left alignment <align=“left”>
2.Right alignment <align=“right”>
3.Center alignment <align=“center”>
*Text Alignment Tag
<HTML>
<body background="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp" text="white">
<br><br><br><br><br><br><br><br><br>
<h1 ALIGN="RIGHT">Background Image!</h1>
<h2 ALIGN="CENTER">Background Image!</h2>
<h3 ALIGN="LEFT">Background Image!</h3>
</BODY>
</HTML>
*Text Alignment Code #9
NOTE:
availability of the background
image/picture depends on the
computer that you are using.
*Text Alignment Tag
(Result of code #9)
* Text Alignment Tag
(Challenge for code #10)
Create an HTML code to produce the
given figure above
• A hyperlink is a reference (an address) to a
resource on the web.
• Hyperlinks can point to any resource on the
web: an HTML page, an image, a sound
file, a movie, etc.
• The HTML anchor element <a>, is used to
define both hyperlinks and anchors.
<a href="url">Link text</a>
• The href attribute defines the link address.
<a href="https://www.philhealth.gov.ph/">Visit
PhilHealth Site!</a>
*Hyperlink Tag
*Hyperlink
Challenge for Code #11
Apply hyperlink tags using
<a href="https://www.philhealth.gov.ph/">
Visit PhilHealth Site!</a>
• To display an image on a page, you need to use the
src attribute.
• src stands for "source". The value of the src attribute
is the URL of the image you want to display on your
page.
• It is a empty tag.
<IMG SRC ="url">
<IMG SRC="picture.gif“>
<IMG SRC="picture.gif“ HEIGHT="30" WIDTH="50">
*Image Tag
<img>
<Src>
<Alt>
<Width>
<Height>
<Border>
<Hspace>
<Vspace>
<Align>
<background>
*Image attributes - <img> tag
Defines an image
display an image on a page,Src stands
for "source".
Define "alternate text" for an image
Defines the width of the image
Defines the height of the image
Defines border of the image
Horizontal space of the image
Vertical space of the image
Align an image within the text
Add a background image to an HTML
page
<html>
<HEAD><TITLE>HTML FILE NO. 12</TITLE>
</HEAD>
<body>
<br>
<img src="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp"
width="1240" height="300">
<H1 ALIGN="CENTER"><FONT COLOR="BLUE"
SIZE="300">HELLO WORLD!!</FONT></H1>
</body>
</html>
*Sample Image for Code #12
*Result of Code #12
*Image Source Code #13
<HTML>
<body background="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp" text="white">
<br><br><br><br><br><br><br><br><br>
<h2 ALIGN="CENTER">
<FONT SIZE="300">Background Image!</FONT>
</h2>
</BODY></HTML>
*Result of Code #13
<html><body>
<p><img src="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp"
align="bottom" width="20" height="20"> </p>
<p><img src="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp"
align="middle" width="40" height="40"></p>
<p><img src="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp"
align="top" width="60" height="60"></p>
<p><img src="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp"
width="80" height="80"> </p>
<p><img src="file:///C:/Program Files/Microsoft
Office/CLIPART/PUB60COR/J0101856.bmp"
width="100" height="100"> </p>
</body></html>
*Code & Result for #14
<table>
<tr>
<td>
<th>
<Caption>
<colgroup>
<col>
<thead>
<tbody>
<tfoot>
<Cellspacing>
<Cellpadding>
<Colspan>
<rowspan>
<Border>
*HTML Table Tag
used to create table
table is divided into rows
each row is divided into data cells
Headings in a table
caption to the table
Defines groups of table columns
Defines the attribute values for one or
more columns in a table
Defines a table head
Defines a table body
Defines a table footer
amount of space between table cells.
space around the edges of each cell
No of column working with will span
No of rows working with will span
attribute takes a number
<html>
<body>
<h3>Table without border</h3>
<table>
<tr> <td>MILK</td>
<td>TEA</td>
<td>COFFEE</td> </tr>
<tr> <td>400</td>
<td>500</td>
<td>600</td> </tr>
</table>
</body>
</html>
* Table w/o Border for Code #15
<html><body>
<h4>Horizontal Header:</h4>
<table border="1">
<tr> <th>Name</th>
<th>Loan No</th>
<th>Amount</th> </tr>
<tr> <td>Jones</td>
<td>L-1</td>
<td>5000</td></tr> </table><br><br>
<h4>Vertical Header:</h4>
<table border="5">
<tr> <th>Name</th>
<td>Jones</td> </tr>
<tr> <th>Loan No</th>
<td>L-1</td> </tr>
<tr> <th>Amount</th>
<td>5000</td></tr> </table>
</body></html>
* Table with Border & Header #16
<html><body>
<h4>Cell that spans two columns:</h4>
<table border="4">
<tr> <th>Name</th>
<th colspan="2">Loan No</th> </tr>
<tr> <td>Jones</td>
<td>L-1</td>
<td>L-2</td> </tr> </table>
<h4>Cell that spans two rows:</h4>
<table border="8">
<tr> <th>Name</th>
<td>Jones</td></tr><tr>
<th rowspan="2">Loan No</th>
<td>L-1</td></tr><tr>
<td>L-2</td></tr></table>
</body></html>
* Table Code with Colspan &
Rowspan #17
<html>
<body>
<table border="1">
<caption>My Caption</caption>
<tr>
<td>Milk</td>
<td>Tea</td>
</tr>
<tr>
<td></td>
<td>Coffee</td>
</tr>
</table>
</body>
</html>
* Table Code with Caption &
ColSpacing #18
<html><body>
<h3>Without cellpadding:</h3>
<table border="2" bgcolor="green">
<tr> <td>Jones</td>
<td>Smith</td></tr>
<tr> <td>Hayes</td>
<td>Jackson</td></tr></table>
<h4>With cellpadding:</h4>
<table border="8"
cellpadding="10"
background="file:///C:/WINDOWS/FeatherTexture.b
mp">
<tr> <td>Jones</td>
<td>Smith</td></tr>
<tr> <td>Hayes</td>
<td>Jackson</td></tr></table>
</body></html>
* Cellpadding, Image & Backcolor
Code #19
• Lists provide methods to show item or element
sequences in document content. There are
three main types of lists:->
1.Unordered lists:-unordered lists are bulleted.
2.Ordered lists:- Ordered lists are numbered.
3.Definition lists:- Used to create a definition list
.
*HTML List Tag
<LI>
<OL>
<UL>
<DL>
<DT>
<DD>
*List Tags
<LI> is an empty tag,it is used for
representing the list items
Ordered list
Unordered list
Defines a definition list
Defines a term (an item) in a definition
list
Defines a description of a term in a
definition list
• TYPE attribute to the <UL> tag to show
different bullets like:-
1.Disc
2.Circle
3.Square
<ul Type =“disc”>…..</ul>
• The attribute TYPE can also be used with
<LI> element.
*Unordered List
<html><body>
<h4>Disc bullets list:</h4>
<ul type="disc"> <li>Jones</li>
<li>Smith</li>
<li>Hayes</li>
<li>Jackson</li></ul>
<h4>Circle bullets list:</h4>
<ul type="circle"> <li>Jones</li>
<li>Simth</li>
<li>Hayes</li>
<li>Jackson</li></ul>
<h4>Square bullets list:</h4>
<ul type="square"> <li>Jones</li>
<li>Smith</li>
<li>Hayes</li>
<li>Jackson</li></ul>
</body></html>
* Unordered List fro Code #20
• The TYPE attribute has the following value like:-
1.TYPE = "1" (Arabic numbers)
2.TYPE = "a" (Lowercase alphanumeric)
3.TYPE = "A" (Uppercase alphanumeric)
4.TYPE = "i" (Lowercase Roman numbers)
5.TYPE = "I" (Uppercase Roman numbers)
• By default Arabic numbers are used
*Ordered List
<html><body>
<h4>Numbered list:</h4>
<ol> <li>Jones</li>
<li>Smith</li>
<li>Hayes</li>
<li>Jackson</li></ol>
<h4>Letters list:</h4>
<ol type="A"> <li>Jones</li>
<li>Smith</li>
<li>Hayes</li>
<li>Jackson</li></ol>
<h4>Roman numbers list:</h4>
<ol type="I"> <li>Jones</li>
<li>Smith</li>
<li>Hayes</li>
<li>Jackson</li></ol>
</body></html>
* Code & Result of the Ordered
List #21
• A form is an area that can contain form
elements.
• Form elements are elements that allow the
user to enter information in a form. like text
fields, textarea fields, drop-down menus,
radio buttons and checkboxes etc
• A form is defined with the <form> tag.
• The syntax:-
<form>
.
input elements
.
</form>
*HTML Form
<form>
<input>
<text>
<textarea>
<password>
<label>
<option>
<select>
*Form Tags
Defines a form for user input
Used to create an input field
Creates a single line text entry field
Defines a text-area (a multi-line text
input control)
Creates a single line text entry field.
And the characters entered are
shown as asterisks (*)
Defines a label to a control
Creates a Radio Button.
Defines a selectable list (a drop-down
box)
<button>
<value>
<checkbox>
<dropdown box>
*…continuation
Defines a push button
attribute of the option element.
select or unselect a checkbox
A drop-down box is a selectable list
<html><body><form>
<h1>Create an Internet Mail Account</h1>
<p>First Name <input type="text" name="T1" size="30"></p>
<p>Last Name <input type="text" name="T2" size="30"></p>
<p>Desired Login Name <input type="text" name="T3" size="20">
@mail.com</p>
<p>Password <input type="password" name="T4" size="20"></p>
<input type="radio" checked="checked" name="sex" value="male" />
Male</br>
<input type="radio" name="sex" value="female" /> Female
<p>Birthday <input type="text" name="T6" size="05">
<select size="1" name="D2">
<option>-Select One-</option>
<option>January</option>
<option>February</option>
<option>March</option> </select>
<input type="text" name="T7" size="10"></p>
TypeYourself<textarea rows="4" name="S1" cols="20"></textarea>
<br><input type="submit" value="Accept" name="B1"> <input
type="reset“ value="Cancel" name="B2"></br> </form></body></html>
* Code for the HTML Form #22
Observe and compare this OUTPUT. You will notice the difference from this
result and to your own output. CHALLENGE: Look for a more appropriate codes to
have this output. Use the web address on the next slide to learn more and to find
for a better solution to match this given figure.
*ResultofCode#22
* http://www.w3schools.com/ht
ml/html_basic.asp
To try if your HTML works,
visit:
*Challenge for Code #23
Apply image tag using pictures
available in your own FILE FOLDER
Challenge for Code #24
Apply hyperlink tag to open
Facebook

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
Jussi Pohjolainen
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTML
Sneha Mukherjee
 

Was ist angesagt? (20)

Html
HtmlHtml
Html
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html basic
Html basicHtml basic
Html basic
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
 
HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html 5
Html 5Html 5
Html 5
 
Html cia
Html ciaHtml cia
Html cia
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTML
 
Learn HTML Step By Step
Learn HTML Step By StepLearn HTML Step By Step
Learn HTML Step By Step
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
HTML Tags
HTML Tags HTML Tags
HTML Tags
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Basics ogHtml
Basics ogHtml Basics ogHtml
Basics ogHtml
 

Ähnlich wie Intro to html revised2

web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 
introduction-to-html hyper text markup .ppt
introduction-to-html hyper text markup  .pptintroduction-to-html hyper text markup  .ppt
introduction-to-html hyper text markup .ppt
ubaidullah75790
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
Dianajeon3
 

Ähnlich wie Intro to html revised2 (20)

HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
html
htmlhtml
html
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
HTML
HTMLHTML
HTML
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Html basics
Html basicsHtml basics
Html basics
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
introduction-to-html hyper text markup .ppt
introduction-to-html hyper text markup  .pptintroduction-to-html hyper text markup  .ppt
introduction-to-html hyper text markup .ppt
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
 
introduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML codingintroduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML coding
 
Unit 2 (html)
Unit 2  (html)Unit 2  (html)
Unit 2 (html)
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptxVAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptx
 
Html
HtmlHtml
Html
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company india
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Introduction to Html and Css.pdf
Introduction to Html and Css.pdfIntroduction to Html and Css.pdf
Introduction to Html and Css.pdf
 

Mehr von mmvidanes29

Mehr von mmvidanes29 (11)

Ba4 basicfinanceppt1
Ba4 basicfinanceppt1Ba4 basicfinanceppt1
Ba4 basicfinanceppt1
 
Chap9 business cycles
Chap9 business cyclesChap9 business cycles
Chap9 business cycles
 
Chap8 national income
Chap8 national incomeChap8 national income
Chap8 national income
 
Chap7 business org &amp; mgt
Chap7 business org &amp; mgtChap7 business org &amp; mgt
Chap7 business org &amp; mgt
 
Chap6 factor markets &amp; income distribution
Chap6 factor markets &amp; income distributionChap6 factor markets &amp; income distribution
Chap6 factor markets &amp; income distribution
 
Chap5 market structures
Chap5 market structuresChap5 market structures
Chap5 market structures
 
Chap4 production
Chap4 productionChap4 production
Chap4 production
 
Chap3 elasticity &amp; consumer behavior
Chap3 elasticity &amp; consumer behaviorChap3 elasticity &amp; consumer behavior
Chap3 elasticity &amp; consumer behavior
 
Chap2 prices of goods &amp; services
Chap2 prices of goods &amp; servicesChap2 prices of goods &amp; services
Chap2 prices of goods &amp; services
 
Chap1 economics &amp; the real world
Chap1 economics &amp; the real worldChap1 economics &amp; the real world
Chap1 economics &amp; the real world
 
Ba4 basic finance ppt1-2
Ba4   basic  finance ppt1-2Ba4   basic  finance ppt1-2
Ba4 basic finance ppt1-2
 

Kürzlich hochgeladen

pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
F
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 

Kürzlich hochgeladen (20)

20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 

Intro to html revised2

  • 1. An Introduction to Web Page Programming *HTML From: www.slideshare.net/vikasgaur31/introduction-to-html MMV - 1ST Sem. A.Y. 2017 -2018 Thisfile istogivecredits totherightful owner ofthispresentation and thisis alsointended forclassroom useonly. Adapted /Modifiedby:
  • 2. WHAT IS A WEB PAGE? Web pages are text files containing HTML HTML – Hyper Text Markup Language A notation for describing document structure (semantic markup) – pertaining to the layout/format of HTML codes formatting (presentation markup) – more on text formatting or how documents/text will look like in an online page. Looks (looked?) like: A Microsoft Word document The markup tags provide information about the page content structure
  • 3. • With HTML you can create your own web site. • HTML was derived from SGML (Standard Generalized Markup Language). • The future of HTML is XML (eXtensible Markup Language). HTML is limited to design with focus on how data looks and does not have subsets or applications while XML was designed to be a software and hardware independent tool used to store and transport data. • HTML is not a programming language, it is a Markup Language that has a set of markup tags. • HTML uses markup tags to describe web pages. • HTML is not case sensitive language. • HTML documents contain HTML tags and plain text. *HTML Details
  • 4. document structure (semantic markup) Examples of semantic elements: <form>, <table>, and <article> - Clearly defines its content.
  • 6. An HTML file must have an .htm or .html file extension HTML files can be created with text editors: NotePad, NotePad ++, PSPad Or HTML editors (WYSIWYG Editors):  Microsoft FrontPage  Macromedia Dreamweaver  Netscape Composer  Expression Web *Creating HTML Pages
  • 7. • A tag is always enclosed in angle bracket <>like <HTML> • HTML tags normally come in pairs like <HTML> and </HTML> i.e. Start tag = <HTML> End tag =</HTML> • Start and end tags are also called opening tags and closing tags *HTML Elements and Tags
  • 8. *BASIC TAGS Name Tags HTML <HTML>…</HTML> HEAD <HEAD>…</HEAD> TITLE <HEAD><TITLE>…</TITLE></HEAD> BODY <BODY>…</BODY>
  • 9. • <HTML> - Describe HTML web page that is to be viewed by a web browser. • <HEAD> - This defines the header section of the page. • <TITLE> - This shows a caption in the title bar of the page. • <BODY> - This tag show contents of the web page will be displayed. *Explanation …………
  • 10. There are two different types of tags:-> Container Element:-> Container Tags contains start tag & end tag i.e. <HTML>… </HTML> Empty Element:-> Empty Tags contains start tag i.e. <BR> <HR> *Types of HTML Tags
  • 11. • Write html code in notepad. • Save the file with (.htm) or (.html) extension. • View the page in any web browser viz. INTERNET EXPLORER, NETSCAPE NAVIGATOR etc. • The purpose of a web browser (like internet explorer or firefox) is to read html documents and display them as web pages. *HOW TO START
  • 12. <HTML> <HEAD><TITLE>MY FIRST PAGE</TITLE></HEAD> <BODY> GLOBAL INFORMATION CHANNEL </BODY> </HTML> *HTML Code #1 Result
  • 13. Heading Element:-> • There are six heading elements (<H1>,<H2>,<H3>,<H4>, <H5>,<H6>). • All the six heading elements are container tag and requires a closing tag. • <h1> will print the largest heading • <h6> will print the smallest heading *Text Formatting Tags
  • 14. <html> <head><title>heading</title></head> <body> <h1> GLOBAL INFO CHANNEL</h1> <h2> GLOBAL INFO CHANNEL</h2> <h3> GLOBAL INFO CHANNEL</h3> <h4> GLOBAL INFO CHANNEL</h4> <h5> GLOBAL INFO CHANNEL</h5> <h6> GLOBAL INFO CHANNEL</h6> </body> </html> *Heading Tag (Code #2)
  • 16. • HTML documents are divided into paragraphs. • Paragraphs are defined with the <p> tag i.e. *HTML Paragraph Tag <html> <head><title>paragraph</title></head> <body> <p>This is a paragraph</p> <p>This is another paragraph</p> <pre>This text is preformatted</pre> </body> </html> Code #3
  • 18. • if you want a line break or a new line without starting a new paragraph Use the <br> tag. • Defines a horizontal line use <hr>tag. • <br> <hr> element are empty HTML element * Line Break & Horizontal Line Tag
  • 19. <html> <head><title>Line Break and Horizontal Line </title> </head> <body> Global Information Channel<hr> Global Information <br> Channel </body> </html> * Line Break & Horizontal Line Tag (code #4)
  • 20. Line Break & Horizontal Line Tag (RESULT of CODE #4)
  • 21. *Text Formatting Tags TAGS FUNCTION <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 <super> Defines superscripted text <ins> Defines inserted text <del> Defines deleted text <tt> Defines teletype text <u> Defines underline text <strike> Defines strike text
  • 22. <html> <head><title>Formatting Text</title></head> <body> <b>This text is Bold</b> <br><em>This text is Emphasized</em> <br><i>This text is Italic</i> <br><small>This text is Small</small> <br>This is<sub> Subscript</sub> and <sup>Superscript</sup> <br><strong>This text is Strong</strong> <br><big>This text is Big</big> <br><u>This text is Underline</u> <br><strike>This text is Strike</strike> <br><tt>This text is Teletype</tt> </body> </html> *Text Formatting Code #5
  • 23. * Text Formatting Code (result of code #5)
  • 24. HTML TEXT FORMATTING <html> <body> <b>Confidence</b><br /> <big>Hardwork</big><br /> <i>Perseverance</i><br /> <code>Samsung CRT</code><br /> This is<sub> subscript</sub><br /> This is<sup> superscript</sup> </body> </html> Some Formatting Tags are 1,b-Bold, 2.i-Italic, 3.code- Computer code,4.sub-Subscript & 5.sup-Superscript NOTE: Implement this as another exercise Code #6
  • 25. • This element is used to format the size, typeface and color of the enclosed text. • The commonly used fonts for web pages are Arial, Comic Sans MS , Lucida Sans Unicode, Arial Black, Courier New, Times New Roman, Arial Narrow, Impact, Verdana. • The size attribute in font tag takes values from 1 to 7. *Font Tag
  • 26. <html> <head><title> fonts</title></head> <body> <br><font color=“green" size="7" face="Arial"> GLOBAL INFORMATION CHANNEL </font> <br><font color=“green" size="6" face="Comic Sans MS "> GLOBAL INFORMATION CHANNEL </font> <br><font color=“green" size="5" face="Lucida Sans Unicode"> GLOBAL INFORMATION CHANNEL </font> <br><font color=“green" size="4" face="Courier New"> GLOBAL INFORMATION CHANNEL </font> <br><font color=“green" size="3" face="Times New Roman"> GLOBAL INFORMATION CHANNEL </font> <br><font color=“green" size="2" face="Arial Black"> GLOBAL INFORMATION CHANNEL </font> <br><font color=“green" size="1" face="Impact"> GLOBAL INFORMATION CHANNEL </font> </body> </html> * Font Tag Code #7
  • 28. • The attribute bgcolor is used for changing the back ground color of the page. <body bgcolor=“Green” > • Text is use to change the color of the enclosed text. <body text=“White”> * Background & Text Color Tag
  • 29. * Background & Text Color Tag (challenge for Code #8) Create an HTML code to produce the given sample above
  • 30. • It is use for the alignment of text. 1.Left alignment <align=“left”> 2.Right alignment <align=“right”> 3.Center alignment <align=“center”> *Text Alignment Tag
  • 31. <HTML> <body background="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" text="white"> <br><br><br><br><br><br><br><br><br> <h1 ALIGN="RIGHT">Background Image!</h1> <h2 ALIGN="CENTER">Background Image!</h2> <h3 ALIGN="LEFT">Background Image!</h3> </BODY> </HTML> *Text Alignment Code #9 NOTE: availability of the background image/picture depends on the computer that you are using.
  • 33. * Text Alignment Tag (Challenge for code #10) Create an HTML code to produce the given figure above
  • 34. • A hyperlink is a reference (an address) to a resource on the web. • Hyperlinks can point to any resource on the web: an HTML page, an image, a sound file, a movie, etc. • The HTML anchor element <a>, is used to define both hyperlinks and anchors. <a href="url">Link text</a> • The href attribute defines the link address. <a href="https://www.philhealth.gov.ph/">Visit PhilHealth Site!</a> *Hyperlink Tag
  • 35. *Hyperlink Challenge for Code #11 Apply hyperlink tags using <a href="https://www.philhealth.gov.ph/"> Visit PhilHealth Site!</a>
  • 36. • To display an image on a page, you need to use the src attribute. • src stands for "source". The value of the src attribute is the URL of the image you want to display on your page. • It is a empty tag. <IMG SRC ="url"> <IMG SRC="picture.gif“> <IMG SRC="picture.gif“ HEIGHT="30" WIDTH="50"> *Image Tag
  • 37. <img> <Src> <Alt> <Width> <Height> <Border> <Hspace> <Vspace> <Align> <background> *Image attributes - <img> tag Defines an image display an image on a page,Src stands for "source". Define "alternate text" for an image Defines the width of the image Defines the height of the image Defines border of the image Horizontal space of the image Vertical space of the image Align an image within the text Add a background image to an HTML page
  • 38. <html> <HEAD><TITLE>HTML FILE NO. 12</TITLE> </HEAD> <body> <br> <img src="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" width="1240" height="300"> <H1 ALIGN="CENTER"><FONT COLOR="BLUE" SIZE="300">HELLO WORLD!!</FONT></H1> </body> </html> *Sample Image for Code #12
  • 40. *Image Source Code #13 <HTML> <body background="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" text="white"> <br><br><br><br><br><br><br><br><br> <h2 ALIGN="CENTER"> <FONT SIZE="300">Background Image!</FONT> </h2> </BODY></HTML>
  • 42. <html><body> <p><img src="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" align="bottom" width="20" height="20"> </p> <p><img src="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" align="middle" width="40" height="40"></p> <p><img src="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" align="top" width="60" height="60"></p> <p><img src="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" width="80" height="80"> </p> <p><img src="file:///C:/Program Files/Microsoft Office/CLIPART/PUB60COR/J0101856.bmp" width="100" height="100"> </p> </body></html> *Code & Result for #14
  • 43. <table> <tr> <td> <th> <Caption> <colgroup> <col> <thead> <tbody> <tfoot> <Cellspacing> <Cellpadding> <Colspan> <rowspan> <Border> *HTML Table Tag used to create table table is divided into rows each row is divided into data cells Headings in a table caption to the table Defines groups of table columns Defines the attribute values for one or more columns in a table Defines a table head Defines a table body Defines a table footer amount of space between table cells. space around the edges of each cell No of column working with will span No of rows working with will span attribute takes a number
  • 44. <html> <body> <h3>Table without border</h3> <table> <tr> <td>MILK</td> <td>TEA</td> <td>COFFEE</td> </tr> <tr> <td>400</td> <td>500</td> <td>600</td> </tr> </table> </body> </html> * Table w/o Border for Code #15
  • 45. <html><body> <h4>Horizontal Header:</h4> <table border="1"> <tr> <th>Name</th> <th>Loan No</th> <th>Amount</th> </tr> <tr> <td>Jones</td> <td>L-1</td> <td>5000</td></tr> </table><br><br> <h4>Vertical Header:</h4> <table border="5"> <tr> <th>Name</th> <td>Jones</td> </tr> <tr> <th>Loan No</th> <td>L-1</td> </tr> <tr> <th>Amount</th> <td>5000</td></tr> </table> </body></html> * Table with Border & Header #16
  • 46. <html><body> <h4>Cell that spans two columns:</h4> <table border="4"> <tr> <th>Name</th> <th colspan="2">Loan No</th> </tr> <tr> <td>Jones</td> <td>L-1</td> <td>L-2</td> </tr> </table> <h4>Cell that spans two rows:</h4> <table border="8"> <tr> <th>Name</th> <td>Jones</td></tr><tr> <th rowspan="2">Loan No</th> <td>L-1</td></tr><tr> <td>L-2</td></tr></table> </body></html> * Table Code with Colspan & Rowspan #17
  • 48. <html><body> <h3>Without cellpadding:</h3> <table border="2" bgcolor="green"> <tr> <td>Jones</td> <td>Smith</td></tr> <tr> <td>Hayes</td> <td>Jackson</td></tr></table> <h4>With cellpadding:</h4> <table border="8" cellpadding="10" background="file:///C:/WINDOWS/FeatherTexture.b mp"> <tr> <td>Jones</td> <td>Smith</td></tr> <tr> <td>Hayes</td> <td>Jackson</td></tr></table> </body></html> * Cellpadding, Image & Backcolor Code #19
  • 49. • Lists provide methods to show item or element sequences in document content. There are three main types of lists:-> 1.Unordered lists:-unordered lists are bulleted. 2.Ordered lists:- Ordered lists are numbered. 3.Definition lists:- Used to create a definition list . *HTML List Tag
  • 50. <LI> <OL> <UL> <DL> <DT> <DD> *List Tags <LI> is an empty tag,it is used for representing the list items Ordered list Unordered list Defines a definition list Defines a term (an item) in a definition list Defines a description of a term in a definition list
  • 51. • TYPE attribute to the <UL> tag to show different bullets like:- 1.Disc 2.Circle 3.Square <ul Type =“disc”>…..</ul> • The attribute TYPE can also be used with <LI> element. *Unordered List
  • 52. <html><body> <h4>Disc bullets list:</h4> <ul type="disc"> <li>Jones</li> <li>Smith</li> <li>Hayes</li> <li>Jackson</li></ul> <h4>Circle bullets list:</h4> <ul type="circle"> <li>Jones</li> <li>Simth</li> <li>Hayes</li> <li>Jackson</li></ul> <h4>Square bullets list:</h4> <ul type="square"> <li>Jones</li> <li>Smith</li> <li>Hayes</li> <li>Jackson</li></ul> </body></html> * Unordered List fro Code #20
  • 53. • The TYPE attribute has the following value like:- 1.TYPE = "1" (Arabic numbers) 2.TYPE = "a" (Lowercase alphanumeric) 3.TYPE = "A" (Uppercase alphanumeric) 4.TYPE = "i" (Lowercase Roman numbers) 5.TYPE = "I" (Uppercase Roman numbers) • By default Arabic numbers are used *Ordered List
  • 54. <html><body> <h4>Numbered list:</h4> <ol> <li>Jones</li> <li>Smith</li> <li>Hayes</li> <li>Jackson</li></ol> <h4>Letters list:</h4> <ol type="A"> <li>Jones</li> <li>Smith</li> <li>Hayes</li> <li>Jackson</li></ol> <h4>Roman numbers list:</h4> <ol type="I"> <li>Jones</li> <li>Smith</li> <li>Hayes</li> <li>Jackson</li></ol> </body></html> * Code & Result of the Ordered List #21
  • 55. • A form is an area that can contain form elements. • Form elements are elements that allow the user to enter information in a form. like text fields, textarea fields, drop-down menus, radio buttons and checkboxes etc • A form is defined with the <form> tag. • The syntax:- <form> . input elements . </form> *HTML Form
  • 56. <form> <input> <text> <textarea> <password> <label> <option> <select> *Form Tags Defines a form for user input Used to create an input field Creates a single line text entry field Defines a text-area (a multi-line text input control) Creates a single line text entry field. And the characters entered are shown as asterisks (*) Defines a label to a control Creates a Radio Button. Defines a selectable list (a drop-down box)
  • 57. <button> <value> <checkbox> <dropdown box> *…continuation Defines a push button attribute of the option element. select or unselect a checkbox A drop-down box is a selectable list
  • 58. <html><body><form> <h1>Create an Internet Mail Account</h1> <p>First Name <input type="text" name="T1" size="30"></p> <p>Last Name <input type="text" name="T2" size="30"></p> <p>Desired Login Name <input type="text" name="T3" size="20"> @mail.com</p> <p>Password <input type="password" name="T4" size="20"></p> <input type="radio" checked="checked" name="sex" value="male" /> Male</br> <input type="radio" name="sex" value="female" /> Female <p>Birthday <input type="text" name="T6" size="05"> <select size="1" name="D2"> <option>-Select One-</option> <option>January</option> <option>February</option> <option>March</option> </select> <input type="text" name="T7" size="10"></p> TypeYourself<textarea rows="4" name="S1" cols="20"></textarea> <br><input type="submit" value="Accept" name="B1"> <input type="reset“ value="Cancel" name="B2"></br> </form></body></html> * Code for the HTML Form #22
  • 59. Observe and compare this OUTPUT. You will notice the difference from this result and to your own output. CHALLENGE: Look for a more appropriate codes to have this output. Use the web address on the next slide to learn more and to find for a better solution to match this given figure. *ResultofCode#22
  • 61. *Challenge for Code #23 Apply image tag using pictures available in your own FILE FOLDER Challenge for Code #24 Apply hyperlink tag to open Facebook