SlideShare a Scribd company logo
</>
HTML
Tutorial in Hindi
INTRODUCTION TO HTML
HTML uses markup tags to describe web pages.
Tim Berners-Lee
HTML stands for Hyper-Text Markup Language (HTML) is the World Wide
Web’s primary language.
HTML is not a programming language.
A markup language a set of markup tags.
Web sites and Browser
What is Web-sites?
A website is a collection of publicly accessible, interlinked Web pages that share a single
domain name. Websites can be created and maintained by an individual, group, business
or organization to serve a variety of purposes. Together, all publicly accessible websites
constitute the World Wide Web(www). For example, Facebook , Twitter etc…
what is Web Browser?
A web browser, or simply "browser," is an application used to access and view websites. Common web
browsers include Microsoft Internet Explorer, Google Chrome, Mozilla Firefox, and Apple Safari.
For example,
HTML Elements and Tags
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 Page Structure
<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.
HOW TO START
Notepad
Write html code in notepad.
Save the file with (.Html)/(.Htm) extension.
View The Page In Any Web Browser Viz. INTERNET EXPLORER, Google Chrome
,Firfox ,Opera Etc.
The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents
and display them correctly
Web Browsers
A Simple HTML Document
<HTML>
<HEAD>
<TITLE>
MY FIRST PAGE
</TITLE>
</HEAD>
<BODY>
MANAL SOFTECH PVT LTD
</BODY>
</HTML>
With a wealth of new features,XHTML 1.0 was
are
A work in Progress intends to replace HTML
3.2,HTML 4 and XHTML 1.x
HTML Version
1995HTML 2.0
1997 HTML 3.2
1999HTML 4.01
2000 XHTML 1.0
2014HTML 5
Developed by the IETF ”s HTML Working Group
Which Closed in 1995.
W3C Recommendation for HTML which
represented the consensus on HTML features
for 1996,HTML 3.2 as tables,applets,text-flow
around images .While providing backwards
compatibility with the existing HTML 2.0
Standard.
Added Support for more multimedia options,
scripting laguages,style sheets. Better printing
facilities and documents that are more
accessible to users with disabilities
HTML Heading Tags
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
Example
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Headings Are Important
<h1> headings should be used for main headings, followed by <h2> headings, then the less
important <h3>, and so on.
Search engines use the headings to index the structure and content of your web pages.
Users often skim a page by its headings. It is important to use headings to show the
document structure.
HTML Paragraph Tags
A paragraph always starts on a new line, and is usually a block of text.
The HTML <p> element defines a paragraph.
<p>This is A Paragraph</p>
<p>This is a another Paragraph</p>
Open tag<p> and Close tag</p> are Define.
Default alignment left to right.
The HTML <br> element defines a line break.
Example,
<p>This is<br>a paragraph<br>with line breaks.</p>
Use <br> if you want a line break (a new line) without starting a new paragraph:
HTML Line Break & Horizontal Line Tag
HTML Line Break & Horizontal Line Tag
The <hr> element is used to separate content (or define a change) in an HTML page:
The <hr> tag defines a thematic break in an HTML page, and is most often displayed
as a horizontal rule.
Example,
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>
<b>
<big>
<em>
<i>
<small>
<strong>
<sub>
<super>
<ins>
<del>
<tt>
<u>
<strike>
Defines bold text
Defines big text
Defines emphasized text
Defines italic text
Defines small text
Defines strong text
Defines subscripted text
Defines superscripted text
Defines inserted text
Defines deleted text
Defines teletype text
Defines underline text
Defines strike text
Text Formatting Tags
Font Tag
This element is used to format the size, typeface and color of the enclosed
text.
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.
Attributes
Font =“2”
Color=“red”
face=“New Roman”
Background & Text Color Tag
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”>
– Left alignment<align=“left”>
– Right alignment<align=“right”>
–Center alignment <align=“center”>
Text Alignment Tag
It is use to alignment of the text.
Result of Hyperlink Code
Hyperlink Tag
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="http://www.facebook.com/">FACEBOOK</a>
Image Tag
To display an image on a page, you need to use the src attribute.
src stands for "source".
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">
<img>
<Src>
<Alt>
<Width>
<Height>
<Border>
<Hspace>
<Vspace>
<Align>
<background>
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
Image attributes - <img> tag
Result of the Image
Code & Result of the Image
Code & Result of the Image
<table>
<tr>
<td>
<th>
<Caption>
<colgroup>
<col>
<thead>
<tbody>
<tfoot>
<Cellspacing>
<Cellpadding>
<Colspan>
<rowspan>
<Border>
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 Table Tag
Header
<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>
<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>
Code & Result of the Table
Table Code with Colspan & Rowspan
<html>
<head>
<title>Cell that spans two columns:</title>
</head>
<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>
<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
<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.bmp">
<tr> <td>Jones</td>
<td>Smith</td></tr>
<tr> <td>Hayes</td>
<td>Jackson</td></tr></table>
</body></html>
Cellpadding,Image & Backcolor Code
</>
HTML
HTML FORM
Tutorial in Hindi
Part 9
Lists provide methods to show item or element sequences in document
content. There are three main types of lists:
HTML List Tag
– Unordered lists:-unordered lists are bulleted.
– Ordered lists:- Ordered lists are numbered.
– Definition lists:- Used to create a definition list
List Tags
<LI>
<OL>
<UL>
<DL>
<DT>
<DD>
<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
The TYPE attribute has the following value like:-
– TYPE = "1" (Arabicnumbers)
– TYPE = "a" (Lowercasealphanumeric)
– TYPE = "A" (Uppercasealphanumeric)
– TYPE = "i" (Lowercase Romannumbers)
– TYPE = "I" (Uppercase Romannumbers)
By default Arabic numbers are used
Ordered HTML List
<ol type=“1”>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
• TYPE attribute to the <UL> tag to show
different bullets like:-
–Disc
–Circle
–Square
<ul style="list-style-type:disc;">
• The attribute TYPE can also be used with
<LI> element.
Unordered HTML List
HTML Description Lists
A description list is a list of terms, with a
description of each term.
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
The syntax:-
<form>
.
input elements
.
</form>
HTML Form
A form is an area that can contain form element, form tag are attributes .action ,method or
target
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.
<form>
<input>
<text>
<textarea>
<password>
<label>
<option>
<select>
<button>
<value>
<checkbox>
<dropdown box>
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)
Defines a push button
attribute of the option element.
select or unselect a checkbox
A drop-down box is a selectable list
Form Tags
Code of the HTML Form
<html><body><form>
<h1>Create a 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>
Result of the Form Code

More Related Content

What's hot

Html tags or elements
Html tags or elementsHtml tags or elements
Html tags or elements
Webtech Learning
 
html tags
 html tags html tags
html tags
YogeshDhamke2
 
Web Page Designing Using HTML
Web Page Designing Using HTMLWeb Page Designing Using HTML
Web Page Designing Using HTML
Arunima Education Foundation
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
Tushar Rajput
 
Html training slide
Html training slideHtml training slide
Html training slide
villupuramtraining
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
Mahinda Gamage
 
Html project report12
Html project report12Html project report12
Html project report12varunmaini123
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
Abhinav Bhatnagar
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
Anjan Mahanta
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
bluejayjunior
 
Css
CssCss
Html 1
Html 1Html 1
HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
Sasidhar Kothuru
 

What's hot (19)

Html tags or elements
Html tags or elementsHtml tags or elements
Html tags or elements
 
html tags
 html tags html tags
html tags
 
HTML
HTMLHTML
HTML
 
Web Page Designing Using HTML
Web Page Designing Using HTMLWeb Page Designing Using HTML
Web Page Designing Using HTML
 
Beginning html
Beginning  htmlBeginning  html
Beginning html
 
Tags in html
Tags in htmlTags in html
Tags in html
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Html training slide
Html training slideHtml training slide
Html training slide
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
 
Html project report12
Html project report12Html project report12
Html project report12
 
Html example
Html exampleHtml example
Html example
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Css
CssCss
Css
 
Html 1
Html 1Html 1
Html 1
 
HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 

Similar to INTRODUCTION FOR HTML

Html 5
Html 5Html 5
Html basics
Html basicsHtml basics
Html basics
codegracer
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
vardanyan99
 
Html introduction
Html introductionHtml introduction
Html introduction
Dalia Elbadry
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
Arvind Kumar
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
vaseemshaik21
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
Aditya Varma
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
Altaf Pinjari
 
Html basics
Html basicsHtml basics
Html basics
mcatahir947
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
banu236831
 
html
htmlhtml
html
tumetr1
 
web unit 2_4338494_2023_08_14_23_11.pptx
web unit 2_4338494_2023_08_14_23_11.pptxweb unit 2_4338494_2023_08_14_23_11.pptx
web unit 2_4338494_2023_08_14_23_11.pptx
Chan24811
 
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
meheraf045
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
Sayan De
 
Html basics
Html basicsHtml basics
Html basics
wakeel132
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
aneebkmct
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
shabab shihan
 

Similar to INTRODUCTION FOR HTML (20)

Html 5
Html 5Html 5
Html 5
 
Html basics
Html basicsHtml basics
Html basics
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html introduction
Html introductionHtml introduction
Html introduction
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
Html basics
Html basicsHtml basics
Html basics
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 
html
htmlhtml
html
 
web unit 2_4338494_2023_08_14_23_11.pptx
web unit 2_4338494_2023_08_14_23_11.pptxweb unit 2_4338494_2023_08_14_23_11.pptx
web unit 2_4338494_2023_08_14_23_11.pptx
 
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
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Html basics
Html basicsHtml basics
Html basics
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 

Recently uploaded

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 

Recently uploaded (20)

Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 

INTRODUCTION FOR HTML

  • 2. INTRODUCTION TO HTML HTML uses markup tags to describe web pages. Tim Berners-Lee HTML stands for Hyper-Text Markup Language (HTML) is the World Wide Web’s primary language. HTML is not a programming language. A markup language a set of markup tags.
  • 3. Web sites and Browser What is Web-sites? A website is a collection of publicly accessible, interlinked Web pages that share a single domain name. Websites can be created and maintained by an individual, group, business or organization to serve a variety of purposes. Together, all publicly accessible websites constitute the World Wide Web(www). For example, Facebook , Twitter etc… what is Web Browser? A web browser, or simply "browser," is an application used to access and view websites. Common web browsers include Microsoft Internet Explorer, Google Chrome, Mozilla Firefox, and Apple Safari. For example,
  • 4. HTML Elements and Tags 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
  • 5. HTML Page Structure <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.
  • 6. HOW TO START Notepad Write html code in notepad. Save the file with (.Html)/(.Htm) extension. View The Page In Any Web Browser Viz. INTERNET EXPLORER, Google Chrome ,Firfox ,Opera Etc. The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly Web Browsers
  • 7. A Simple HTML Document <HTML> <HEAD> <TITLE> MY FIRST PAGE </TITLE> </HEAD> <BODY> MANAL SOFTECH PVT LTD </BODY> </HTML>
  • 8. With a wealth of new features,XHTML 1.0 was are A work in Progress intends to replace HTML 3.2,HTML 4 and XHTML 1.x HTML Version 1995HTML 2.0 1997 HTML 3.2 1999HTML 4.01 2000 XHTML 1.0 2014HTML 5 Developed by the IETF ”s HTML Working Group Which Closed in 1995. W3C Recommendation for HTML which represented the consensus on HTML features for 1996,HTML 3.2 as tables,applets,text-flow around images .While providing backwards compatibility with the existing HTML 2.0 Standard. Added Support for more multimedia options, scripting laguages,style sheets. Better printing facilities and documents that are more accessible to users with disabilities
  • 9. HTML Heading Tags HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. Example <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6>
  • 10. Headings Are Important <h1> headings should be used for main headings, followed by <h2> headings, then the less important <h3>, and so on. Search engines use the headings to index the structure and content of your web pages. Users often skim a page by its headings. It is important to use headings to show the document structure.
  • 11. HTML Paragraph Tags A paragraph always starts on a new line, and is usually a block of text. The HTML <p> element defines a paragraph. <p>This is A Paragraph</p> <p>This is a another Paragraph</p> Open tag<p> and Close tag</p> are Define. Default alignment left to right.
  • 12. The HTML <br> element defines a line break. Example, <p>This is<br>a paragraph<br>with line breaks.</p> Use <br> if you want a line break (a new line) without starting a new paragraph: HTML Line Break & Horizontal Line Tag
  • 13. HTML Line Break & Horizontal Line Tag The <hr> element is used to separate content (or define a change) in an HTML page: The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. Example, <h1>This is heading 1</h1> <p>This is some text.</p> <hr> <h2>This is heading 2</h2> <p>This is some other text.</p> <hr>
  • 14. <b> <big> <em> <i> <small> <strong> <sub> <super> <ins> <del> <tt> <u> <strike> Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text Defines teletype text Defines underline text Defines strike text Text Formatting Tags
  • 15. Font Tag This element is used to format the size, typeface and color of the enclosed text. 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.
  • 17. Background & Text Color Tag 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”>
  • 18. – Left alignment<align=“left”> – Right alignment<align=“right”> –Center alignment <align=“center”> Text Alignment Tag It is use to alignment of the text.
  • 20. Hyperlink Tag 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="http://www.facebook.com/">FACEBOOK</a>
  • 21. Image Tag To display an image on a page, you need to use the src attribute. src stands for "source". 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">
  • 22. <img> <Src> <Alt> <Width> <Height> <Border> <Hspace> <Vspace> <Align> <background> 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 Image attributes - <img> tag
  • 23. Result of the Image
  • 24. Code & Result of the Image
  • 25. Code & Result of the Image
  • 26. <table> <tr> <td> <th> <Caption> <colgroup> <col> <thead> <tbody> <tfoot> <Cellspacing> <Cellpadding> <Colspan> <rowspan> <Border> 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 Table Tag
  • 27. Header <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>
  • 28. <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> Code & Result of the Table
  • 29. Table Code with Colspan & Rowspan <html> <head> <title>Cell that spans two columns:</title> </head> <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>
  • 31. <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.bmp"> <tr> <td>Jones</td> <td>Smith</td></tr> <tr> <td>Hayes</td> <td>Jackson</td></tr></table> </body></html> Cellpadding,Image & Backcolor Code
  • 33. Lists provide methods to show item or element sequences in document content. There are three main types of lists: HTML List Tag – Unordered lists:-unordered lists are bulleted. – Ordered lists:- Ordered lists are numbered. – Definition lists:- Used to create a definition list
  • 34. List Tags <LI> <OL> <UL> <DL> <DT> <DD> <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
  • 35. The TYPE attribute has the following value like:- – TYPE = "1" (Arabicnumbers) – TYPE = "a" (Lowercasealphanumeric) – TYPE = "A" (Uppercasealphanumeric) – TYPE = "i" (Lowercase Romannumbers) – TYPE = "I" (Uppercase Romannumbers) By default Arabic numbers are used Ordered HTML List <ol type=“1”> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 36. • TYPE attribute to the <UL> tag to show different bullets like:- –Disc –Circle –Square <ul style="list-style-type:disc;"> • The attribute TYPE can also be used with <LI> element. Unordered HTML List
  • 37. HTML Description Lists A description list is a list of terms, with a description of each term. <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
  • 38. The syntax:- <form> . input elements . </form> HTML Form A form is an area that can contain form element, form tag are attributes .action ,method or target 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.
  • 39. <form> <input> <text> <textarea> <password> <label> <option> <select> <button> <value> <checkbox> <dropdown box> 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) Defines a push button attribute of the option element. select or unselect a checkbox A drop-down box is a selectable list Form Tags
  • 40. Code of the HTML Form <html><body><form> <h1>Create a 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>
  • 41. Result of the Form Code

Editor's Notes

  1. PART_
  2. PART_