SlideShare a Scribd company logo
1 of 47
WELCOME
HTML
Himanshu Kr. Singh
Umang Kedia
Introduction
 Stands for Hyper Text Markup Language
 Computer language used to create web pages
 HTML file = text file containing markup tags such
<p>
 Tags tell Web browser how to display a page
 Can have either *.htm or *.html file extension
Choosing Text Editor
 There are many different programs that you can use to
create web documents.
 HTML Editors enable users to create documents quickly
and easily by pushing a few buttons. Instead of entering all
of the HTML codes by hand.
 These programs will generate the HTML Source Code for
you.
 For this Course, we will focus on using the standard
Microsoft Windows text editors, Notepad.


HTML Page Creation/Editing
 Open Notepad or another text editor.
 At the top of the page type <html>.
 On the next line, indent five spaces and now add
the opening header tag: <head>.
 On the next line, indent ten spaces and type
<title> </title>.
 Go to the next line, indent five spaces from the
margin and insert the closing header tag:
</head>.
HTML Page Creation/Editing
 Five spaces in from the margin on the next line,
type<body>.
 Now drop down another line and type the closing
tag right below its mate: </body>.
 Finally, go to the next line and type </html>.
 In the File menu, choose Save As.
 In the Save as Type option box, choose All Files.
 Name the file template.htm.
 Click Save.
Creating a basic HTML doc
<html>
<head>
<title>This is document title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>Document description goes here </p>
</body>
</html>
Page Components
 < DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN
"http: //www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd >
 First line of code
 Declaration of version of HTML
 <html>…</html>
 Container for the document
 <head>…</head>
 <title> Title of page </title>
 <body>…</body>
 Content of page
Page Components (Contd.)
 The HEAD of your document point to above
window part. The TITLE of your document appears
in the very top line of the user’s browser. If the
user chooses to “Bookmark” your page or save as
a “Favorite”; it is the TITLE that is added to the list.
 The text in your TITLE should be as descriptive as
possible because this is what many search
engines, on the internet, use for indexing your site.
 Tags are the elements that create the components
of a page
 Tags surrounded by angle brackets < >
 Usually come in pairs
• Example: Start tag <p> and end tag </p>
 Stuff between is called “element content”
 Tags are not case sensitive
• New standard is to use lower case
HTML Elements
HTML Basic Tags
The basic structure for all HTML documents is simple
and should include the following minimum elements
or tags:
 <html> - The main container for HTML pages
 <head> - The container for page header
information
 <title> - The title of the page
 <body> - The main body of the page
The <html> Element
 The <html> element is the containing element for the
whole HTML document. Each HTML document should
have one <html> and each document should end with
a closing </html> tag.
 Following two elements appear as direct children of an
<html> element:
1. <head>
2. <body>
 As such, start and end HTML tags enclose all the other
HTML tags you use to describe the Web page.
The <head> Element
 The <head> element is just a container for all
other header elements. It should be the first thing
to appear after the opening <html> tag.
Example:
<head>
<title>HTML Basic tags</title>
</head>
The <title> Element
 You should specify a title for every page that you write
inside the <title> element. This element is a child of the
<head> element). It is used in several ways:
 It displays at the very top of a browser window.
 It is used as the default name for a bookmark in browsers
such as IE and Netscape.
 Its is used by search engines that use its content to help
index pages.
 Therefore it is important to use a title that really describes
the content of your site. The <title> element should contain
only the text for the title and it may not contain any other
elements.
The <body> Element
 The <body> element appears after the <head>
element and contains the part of the Web page that
you actually see in the main browser window, which is
sometimes referred to as body content.
 A <body> element may contain anything from a couple
of paragraphs under a heading to more complicated
layouts containing forms and tables.
 Most of what you will be learning in this and the
following five chapters will be written between the
opening <body> tag and closing </body> tag.
The <meta> Element
 HTML lets you specify metadata - information about a document
rather than document content -in a variety of ways. The META
element can be used to include name/value pairs describing
properties of the HTML document, such as author, Expiry Date, a
list of key words, author etc.
 The <meta> tag is an empty element and so does not have a closing
tag, rather, <meta> tags carry information within attributes, so you
need a forward slash character at the end of the element.
 Metadata provided by using meta tag is a very important part of
the web. It can assist search engines in finding the best match
when a user performs a search. Search engines will often look at
any metadata attached to a page - especially keywords - and rank it
higher than another page with less relevant metadata, or with no
metadata at all
Attribute Description
Name Name for the property. Can
be anything. Examples
include, keywords,
description, author, revised,
generator etc.
content Specifies the property's
value.
http-equiv http-equiv can be used to
refresh the page or to set a
cookie. Values include
content-type, expires,
refresh and set-cookie.
The <meta> Element
 Specifying Keywords
 Document Description
 Document Revision date
 Setting Cookies
 Setting Author Name
Putting All Together
The HTML Attributes
 Attributes are another important part of HTML markup. An
attribute is used to define the characteristics of an element
and is placed inside the element's opening tag. All attributes
are made up of two parts: a name and a value:
 The name is the property you want to set. For example, the
<font> element in the example carries an attribute whose
name is face, which you can use to indicate which typeface
you want the text to appear in.
 The value is what you want the value of the property to be.
The first example was supposed to use the Arial typeface, so
the value of the face attribute is Arial.
The HTML Attributes
 The value of the attribute should be put in double quotation
marks, and is separated from the name by the equals sign.
You can see that a color for the text has been specified as
well as the typeface in this <font> element:
<font face="arial" color="#CC0000">
Core Attributes
The four core attributes that can be
used on the majority of HTML elements
(although not all) are:
id title class style
The id Attribute
 The id attribute can be used to uniquely identify any
element within a page ( or style sheet ).
 If an element carries an id attribute as a unique identifier it
is possible to identify just that element and its content.
 If you have two elements of the same name within a Web
page (or style sheet), you can use the id attribute to
distinguish between elements that have the same name.
Example :
<p id="html">This para explains what is HTML</p>
<p id="css">This para explains what is Casecading Style
Sheet</p>
The title Attribute
 The title attribute gives a suggested title for the
element. They syntax for the title attribute is similar as
explained for id attribute:
 The behaviour of this attribute will depend upon the
element that carries it, although it is often displayed as
a tooltip or while the element is loading.
For example: <h4 title="Hello HTML!">Titled Heading
Tag Example</h4>
<class> and <style>
Attributes
 The class attribute is used to associate an element with
a style sheet, and specifies the class of element. The
class attribute is used to associate an element with a
style sheet, and specifies the class of element.
Example:
class="className1 className2 className3"
 The style attribute allows you to specify CSS rules
within the element.
Example: <p style="font-family:arial; color:#FF0000;”
>Some text...</p>
Attributes Options Functions
align right, left, center Horizontally aligns tags
valign top, middle,
bottom
Vertically aligns tags
within an HTML
element.
bgcolor numeric,
hexidecimal, RGB
values
Places a background
color behind an
element
background URL Places an background
image behind an
element
Attributes Options Functions
title User Defined Pop-up" title for your
elements.
width Numeric Value Specifies the width of
tables, images, or table
cells.
height Numeric value Specifies the height of
tables, images, or table
cells.
Background URL Places an background
image behind an element
HTML Formatting Tags
Creating heading - <hx>
Any documents starts with a heading. You use different sizes for your
headings. HTML also have six levels of headings, which use the
elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying
any heading, browser adds one line before and after that heading.
Example:
<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>
Creating Paragraph - <p>
The <p> element offers a way to structure your text.
Each paragraph of text should go in between an
opening <p> and closing </p> tag as shown below in
the example: <p>Here is a paragraph of text.</p>
<p>Here is a second paragraph of text.</p>
<p align="left">This is left aligned.</p>
<p align="center">This is center aligned.</p>
Create Line Breaks <br />
Whenever you use the <br /> element, anything
following it starts on the next line. This tag is an example
of an empty element, where you do not need opening
and closing tags, as there is nothing to go in between
them.
Example:
Hello<br />
This is all about HTML<br />
Thanks<br />
The <center> Element
You can use <center> tag to put any content in the
center of the page or any table cell.
Example:
<p>This is not in the center.</p>
<center>
<p>This is in the center.</p>
</center>
Preserve Formatting
The <pre> Element
 Sometimes you want your text to follow the exact format of
how it is written in the HTML document. In those cases, you can
use the preformatted tag (<pre>).
 Any text between the opening <pre> tag and the closing </pre>
tag will preserve the formatting of the source document.
Example:
<pre>
This is an example of preserve formatting tags.
Wherever I will write it will
display as it is.
</pre>
Horizontal Rules - <hr />
Horizontal rules are used to visually break up sections of
a document. The <hr> tag creates a line from the current
position in the document to the right margin and breaks
the line accordingly.
Example:
<p>This is paragraph one and should be on top</p>
<hr />
<p>This is paragraph two and should be at bottom</p>
Presentational Tags
 Bold Text - The <b> Element:
<p>The following word uses a <b>
bold</b> typeface.</p>
 Italic Text - The <i> Element:
<p>The following word uses a
<i>italicized</i> typeface.</p>
 Underlined Text - The <u> Element:
<p>The following word uses a
<u>underlined</u> typeface.</p>
 Superscript Text - The <sup> Element:
<p>The following word uses a <sup>
superscript</sup> typeface.</p>
 Subscript Text - The <sub> Element:
<p>The following word uses a <sub>
subscript</sub> typeface.</p>
 Larger Text - The <big> Element:
<p>The following word uses a <big>big</big>
typeface.</p>
 Smaller Text - The <small> Element:
<p>The following word uses a <small>
small</small> typeface.</p>
HTML Phrase Tags
 Emphasized Text - The <em> Element
<p>You <em>must</em> remember to close elements in
XHTML.</p>
 Strong Text - The <strong> Element:
<p>You <strong>must</strong> remember to close elements in
XHTML.</p>
 Text Abbreviation - The <abbr> Element:
<p>I have a friend called <abbr title="Abhishek">Abhy</abbr>.</p>
 Using Acronym - The <acronym> Element
<p>This chapter covers marking up text in <acronym
title="Extensible Hypertext Markup
Language">XHTML</acronym>.</p>
 Citations - The <cite> Element
<p>This HTML Tutorial is derived from <cite>World Wide Web Standard
for HTML</cite>.</p>
 Computer Code - The <code> Element :
<h1> <code>This is inside code element</code></h1 >
 Keyboard Text - The <kbd> Element :
<h1> <kbd>This is inside kbd element</kbd></h1>
 Program Output - The <samp> Element :
<p>Result produced by the program is <samp>Hello
World</samp></p>
 Addresses - The <address> Element :
<address>304, Menna Colony, Hyderabad -
INDIA, 500032</address>
Comparison
Block-level elements
 Block-level elements appear
on the screen as if they have a
carriage return or line break
before and after them
 <p>, <h1>, <h2>, <h3>, <h4>, <
h5>, <h6>, <ul>, <ol>, <dl>, <pr
e>, <hr />, <blockquote>, and
<address>
Inline elements
 Inline elements can appear
within sentences and do not
have to appear on a new line
of their own .
 <b>, <i>, <u>, <em>, <strong>,
<sup>, <sub>, <big>, <small>, <
li>, <code>, <cite>,
HTML Comments
 Comments are the piece of code which is ignored by
any web browser. It is good practice to comment your
code, especially in complex documents, to indicate
sections of a document, and any other notes to anyone
looking at the code.
 Comments help you and others understand your code.
 HTML Comment lines are indicated by the special
beginning tag <!-- and ending tag --> placed at the
beginning and end of EVERY line to be treated as a
comment.
 Given line is a valid comment in HTML
<!-- This is commented out -->
 But following line is not a valid comment and will be
displayed by the browser. This is because there is a space
between the left angle bracket and the exclamation
mark.
< !-- This is commented out -->
Using Comment tag
There are few browsers who supports <comment>
tag to comment a part of code.
Example:
<p>This is <comment>not</comment> Internet
Explorer.</p>
 Intro to HTML!
 Page Creation
 HTML Doc
 Page Components
 Basic Tags
 Attributes
 Formatting Text
 Presentational
Tags
 Phrase Tags
 Block/Inline
Elements
 Comments
What we have
learned ?
HTML Workshop – Day 1
Himanshu: 9038617259
Umang: 9038068001

More Related Content

What's hot (20)

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
 
Html 1
Html 1Html 1
Html 1
 
Html starting
Html startingHtml starting
Html starting
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
 
web designing blogger html codes
web designing blogger html codesweb designing blogger html codes
web designing blogger html codes
 
Html
HtmlHtml
Html
 
Html example
Html exampleHtml example
Html example
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
Html ppt
Html pptHtml ppt
Html ppt
 
HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
 
HTML
HTMLHTML
HTML
 
Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)
 
Html basic
Html basicHtml basic
Html basic
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
Html basics
Html basicsHtml basics
Html basics
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Viewers also liked

родители 6.11.2014
родители   6.11.2014родители   6.11.2014
родители 6.11.2014Yana Kozmina
 
T1 e1 roca2
T1 e1 roca2T1 e1 roca2
T1 e1 roca2mire_r
 
Biomoove-Ergoconsult presentation
Biomoove-Ergoconsult presentationBiomoove-Ergoconsult presentation
Biomoove-Ergoconsult presentationMauro Testa
 
Tesi Laurea in Scienze Motorie
Tesi Laurea in Scienze MotorieTesi Laurea in Scienze Motorie
Tesi Laurea in Scienze MotorieMauro Testa
 

Viewers also liked (7)

родители 6.11.2014
родители   6.11.2014родители   6.11.2014
родители 6.11.2014
 
Stages of man
Stages of manStages of man
Stages of man
 
Html
HtmlHtml
Html
 
T1 e1 roca2
T1 e1 roca2T1 e1 roca2
T1 e1 roca2
 
Biomoove-Ergoconsult presentation
Biomoove-Ergoconsult presentationBiomoove-Ergoconsult presentation
Biomoove-Ergoconsult presentation
 
Tesi Laurea in Scienze Motorie
Tesi Laurea in Scienze MotorieTesi Laurea in Scienze Motorie
Tesi Laurea in Scienze Motorie
 
Protocolli test
Protocolli testProtocolli test
Protocolli test
 

Similar to Html (20)

html complete notes
html complete noteshtml complete notes
html complete notes
 
html compete notes basic to advanced
html compete notes basic to advancedhtml compete notes basic to advanced
html compete notes basic to advanced
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
About html
About htmlAbout html
About html
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Html basics
Html basicsHtml basics
Html basics
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 

Recently uploaded

George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxmohammadalnahdi22
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubssamaasim06
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝soniya singh
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyPooja Nehwal
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesPooja Nehwal
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AITatiana Gurgel
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...henrik385807
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Hasting Chen
 
Mathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMoumonDas2
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Delhi Call girls
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Chameera Dedduwage
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...Sheetaleventcompany
 
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrsaastr
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )Pooja Nehwal
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 

Recently uploaded (20)

George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 
Mathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptx
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 

Html

  • 3. Introduction  Stands for Hyper Text Markup Language  Computer language used to create web pages  HTML file = text file containing markup tags such <p>  Tags tell Web browser how to display a page  Can have either *.htm or *.html file extension
  • 4. Choosing Text Editor  There are many different programs that you can use to create web documents.  HTML Editors enable users to create documents quickly and easily by pushing a few buttons. Instead of entering all of the HTML codes by hand.  These programs will generate the HTML Source Code for you.  For this Course, we will focus on using the standard Microsoft Windows text editors, Notepad.  
  • 5. HTML Page Creation/Editing  Open Notepad or another text editor.  At the top of the page type <html>.  On the next line, indent five spaces and now add the opening header tag: <head>.  On the next line, indent ten spaces and type <title> </title>.  Go to the next line, indent five spaces from the margin and insert the closing header tag: </head>.
  • 6. HTML Page Creation/Editing  Five spaces in from the margin on the next line, type<body>.  Now drop down another line and type the closing tag right below its mate: </body>.  Finally, go to the next line and type </html>.  In the File menu, choose Save As.  In the Save as Type option box, choose All Files.  Name the file template.htm.  Click Save.
  • 7. Creating a basic HTML doc <html> <head> <title>This is document title</title> </head> <body> <h1>This is a heading</h1> <p>Document description goes here </p> </body> </html>
  • 8. Page Components  < DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN "http: //www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd >  First line of code  Declaration of version of HTML  <html>…</html>  Container for the document  <head>…</head>  <title> Title of page </title>  <body>…</body>  Content of page
  • 9. Page Components (Contd.)  The HEAD of your document point to above window part. The TITLE of your document appears in the very top line of the user’s browser. If the user chooses to “Bookmark” your page or save as a “Favorite”; it is the TITLE that is added to the list.  The text in your TITLE should be as descriptive as possible because this is what many search engines, on the internet, use for indexing your site.
  • 10.  Tags are the elements that create the components of a page  Tags surrounded by angle brackets < >  Usually come in pairs • Example: Start tag <p> and end tag </p>  Stuff between is called “element content”  Tags are not case sensitive • New standard is to use lower case HTML Elements
  • 11. HTML Basic Tags The basic structure for all HTML documents is simple and should include the following minimum elements or tags:  <html> - The main container for HTML pages  <head> - The container for page header information  <title> - The title of the page  <body> - The main body of the page
  • 12. The <html> Element  The <html> element is the containing element for the whole HTML document. Each HTML document should have one <html> and each document should end with a closing </html> tag.  Following two elements appear as direct children of an <html> element: 1. <head> 2. <body>  As such, start and end HTML tags enclose all the other HTML tags you use to describe the Web page.
  • 13. The <head> Element  The <head> element is just a container for all other header elements. It should be the first thing to appear after the opening <html> tag. Example: <head> <title>HTML Basic tags</title> </head>
  • 14. The <title> Element  You should specify a title for every page that you write inside the <title> element. This element is a child of the <head> element). It is used in several ways:  It displays at the very top of a browser window.  It is used as the default name for a bookmark in browsers such as IE and Netscape.  Its is used by search engines that use its content to help index pages.  Therefore it is important to use a title that really describes the content of your site. The <title> element should contain only the text for the title and it may not contain any other elements.
  • 15. The <body> Element  The <body> element appears after the <head> element and contains the part of the Web page that you actually see in the main browser window, which is sometimes referred to as body content.  A <body> element may contain anything from a couple of paragraphs under a heading to more complicated layouts containing forms and tables.  Most of what you will be learning in this and the following five chapters will be written between the opening <body> tag and closing </body> tag.
  • 16. The <meta> Element  HTML lets you specify metadata - information about a document rather than document content -in a variety of ways. The META element can be used to include name/value pairs describing properties of the HTML document, such as author, Expiry Date, a list of key words, author etc.  The <meta> tag is an empty element and so does not have a closing tag, rather, <meta> tags carry information within attributes, so you need a forward slash character at the end of the element.  Metadata provided by using meta tag is a very important part of the web. It can assist search engines in finding the best match when a user performs a search. Search engines will often look at any metadata attached to a page - especially keywords - and rank it higher than another page with less relevant metadata, or with no metadata at all
  • 17. Attribute Description Name Name for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc. content Specifies the property's value. http-equiv http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.
  • 18. The <meta> Element  Specifying Keywords  Document Description  Document Revision date  Setting Cookies  Setting Author Name
  • 20. The HTML Attributes  Attributes are another important part of HTML markup. An attribute is used to define the characteristics of an element and is placed inside the element's opening tag. All attributes are made up of two parts: a name and a value:  The name is the property you want to set. For example, the <font> element in the example carries an attribute whose name is face, which you can use to indicate which typeface you want the text to appear in.  The value is what you want the value of the property to be. The first example was supposed to use the Arial typeface, so the value of the face attribute is Arial.
  • 21. The HTML Attributes  The value of the attribute should be put in double quotation marks, and is separated from the name by the equals sign. You can see that a color for the text has been specified as well as the typeface in this <font> element: <font face="arial" color="#CC0000">
  • 22. Core Attributes The four core attributes that can be used on the majority of HTML elements (although not all) are: id title class style
  • 23. The id Attribute  The id attribute can be used to uniquely identify any element within a page ( or style sheet ).  If an element carries an id attribute as a unique identifier it is possible to identify just that element and its content.  If you have two elements of the same name within a Web page (or style sheet), you can use the id attribute to distinguish between elements that have the same name. Example : <p id="html">This para explains what is HTML</p> <p id="css">This para explains what is Casecading Style Sheet</p>
  • 24. The title Attribute  The title attribute gives a suggested title for the element. They syntax for the title attribute is similar as explained for id attribute:  The behaviour of this attribute will depend upon the element that carries it, although it is often displayed as a tooltip or while the element is loading. For example: <h4 title="Hello HTML!">Titled Heading Tag Example</h4>
  • 25. <class> and <style> Attributes  The class attribute is used to associate an element with a style sheet, and specifies the class of element. The class attribute is used to associate an element with a style sheet, and specifies the class of element. Example: class="className1 className2 className3"  The style attribute allows you to specify CSS rules within the element. Example: <p style="font-family:arial; color:#FF0000;” >Some text...</p>
  • 26. Attributes Options Functions align right, left, center Horizontally aligns tags valign top, middle, bottom Vertically aligns tags within an HTML element. bgcolor numeric, hexidecimal, RGB values Places a background color behind an element background URL Places an background image behind an element
  • 27. Attributes Options Functions title User Defined Pop-up" title for your elements. width Numeric Value Specifies the width of tables, images, or table cells. height Numeric value Specifies the height of tables, images, or table cells. Background URL Places an background image behind an element
  • 29. Creating heading - <hx> Any documents starts with a heading. You use different sizes for your headings. HTML also have six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. While displaying any heading, browser adds one line before and after that heading. Example: <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. Creating Paragraph - <p> The <p> element offers a way to structure your text. Each paragraph of text should go in between an opening <p> and closing </p> tag as shown below in the example: <p>Here is a paragraph of text.</p> <p>Here is a second paragraph of text.</p> <p align="left">This is left aligned.</p> <p align="center">This is center aligned.</p>
  • 31. Create Line Breaks <br /> Whenever you use the <br /> element, anything following it starts on the next line. This tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them. Example: Hello<br /> This is all about HTML<br /> Thanks<br />
  • 32. The <center> Element You can use <center> tag to put any content in the center of the page or any table cell. Example: <p>This is not in the center.</p> <center> <p>This is in the center.</p> </center>
  • 33. Preserve Formatting The <pre> Element  Sometimes you want your text to follow the exact format of how it is written in the HTML document. In those cases, you can use the preformatted tag (<pre>).  Any text between the opening <pre> tag and the closing </pre> tag will preserve the formatting of the source document. Example: <pre> This is an example of preserve formatting tags. Wherever I will write it will display as it is. </pre>
  • 34. Horizontal Rules - <hr /> Horizontal rules are used to visually break up sections of a document. The <hr> tag creates a line from the current position in the document to the right margin and breaks the line accordingly. Example: <p>This is paragraph one and should be on top</p> <hr /> <p>This is paragraph two and should be at bottom</p>
  • 36.  Bold Text - The <b> Element: <p>The following word uses a <b> bold</b> typeface.</p>  Italic Text - The <i> Element: <p>The following word uses a <i>italicized</i> typeface.</p>  Underlined Text - The <u> Element: <p>The following word uses a <u>underlined</u> typeface.</p>
  • 37.  Superscript Text - The <sup> Element: <p>The following word uses a <sup> superscript</sup> typeface.</p>  Subscript Text - The <sub> Element: <p>The following word uses a <sub> subscript</sub> typeface.</p>  Larger Text - The <big> Element: <p>The following word uses a <big>big</big> typeface.</p>  Smaller Text - The <small> Element: <p>The following word uses a <small> small</small> typeface.</p>
  • 39.  Emphasized Text - The <em> Element <p>You <em>must</em> remember to close elements in XHTML.</p>  Strong Text - The <strong> Element: <p>You <strong>must</strong> remember to close elements in XHTML.</p>  Text Abbreviation - The <abbr> Element: <p>I have a friend called <abbr title="Abhishek">Abhy</abbr>.</p>  Using Acronym - The <acronym> Element <p>This chapter covers marking up text in <acronym title="Extensible Hypertext Markup Language">XHTML</acronym>.</p>
  • 40.  Citations - The <cite> Element <p>This HTML Tutorial is derived from <cite>World Wide Web Standard for HTML</cite>.</p>  Computer Code - The <code> Element : <h1> <code>This is inside code element</code></h1 >  Keyboard Text - The <kbd> Element : <h1> <kbd>This is inside kbd element</kbd></h1>  Program Output - The <samp> Element : <p>Result produced by the program is <samp>Hello World</samp></p>  Addresses - The <address> Element : <address>304, Menna Colony, Hyderabad - INDIA, 500032</address>
  • 41. Comparison Block-level elements  Block-level elements appear on the screen as if they have a carriage return or line break before and after them  <p>, <h1>, <h2>, <h3>, <h4>, < h5>, <h6>, <ul>, <ol>, <dl>, <pr e>, <hr />, <blockquote>, and <address> Inline elements  Inline elements can appear within sentences and do not have to appear on a new line of their own .  <b>, <i>, <u>, <em>, <strong>, <sup>, <sub>, <big>, <small>, < li>, <code>, <cite>,
  • 43.  Comments are the piece of code which is ignored by any web browser. It is good practice to comment your code, especially in complex documents, to indicate sections of a document, and any other notes to anyone looking at the code.  Comments help you and others understand your code.  HTML Comment lines are indicated by the special beginning tag <!-- and ending tag --> placed at the beginning and end of EVERY line to be treated as a comment.
  • 44.  Given line is a valid comment in HTML <!-- This is commented out -->  But following line is not a valid comment and will be displayed by the browser. This is because there is a space between the left angle bracket and the exclamation mark. < !-- This is commented out -->
  • 45. Using Comment tag There are few browsers who supports <comment> tag to comment a part of code. Example: <p>This is <comment>not</comment> Internet Explorer.</p>
  • 46.  Intro to HTML!  Page Creation  HTML Doc  Page Components  Basic Tags  Attributes  Formatting Text  Presentational Tags  Phrase Tags  Block/Inline Elements  Comments What we have learned ? HTML Workshop – Day 1