SlideShare uma empresa Scribd logo
1 de 35
iFour ConsultancyHTML (Hyper Text Markup Language)
 Introduction to HTML
 Creating HTML Pages
 HTML Structure
 Tags Attribute
 Doctype Declaration
 Text Formatting tags
 Ways for Hyperlink
 Block and Inline Elements
 HTML Tables
 HTML5
 New Structural Elements in HTML5
 New Form Elements
 New Graphics and Media Elements
INDEX
Introduction To HTML
 What Is HTML?
• Markup language for describing web pages
• HTML stands for Hyper Text Markup Language, a language with set of markup tags
• Documents are described by HTML tags
• Each HTML tag describes different document content
•A markup language is a set of markup tags
•A markup language is a set of markup tags
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Creating HTML Pages
 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
• Microsoft Word
• Visual Studio
4
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
HTML Structure
 HTML is comprised of “elements” and “tags”
• Begins with <html> and ends with </html>
 Elements (tags) are nested one inside another:
 Tags have attributes:
 HTML describes structure using two main sections: <head> and <body>
5
<html> <head></head> <body></body> </html>
<img src="logo.jpg" alt="logo" />
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
HTML Code Formatting
 The HTML source code should be formatted to increase readability and facilitate
debugging
• Every block element should start on a new line
• Every nested (block) element should be indented
• Browsers ignore multiple whitespaces in the page source, so formatting is harmless
 For performance reasons, formatting can be sacrificed
6
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
First HTML Page
7
<!DOCTYPE HTML>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<p>This is some text...</p>
</body>
</html>
Test.html
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
First HTML Page: Tags
8
Opening tag
Closing tag
 An HTML element consists of an opening tag, a closing tag and the content
inside.
<!DOCTYPE HTML>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<p>This is some text...</p>
</body>
</html>
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
<!DOCTYPE HTML>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<p>This is some text...</p>
</body>
</html>
First HTML Page: Header
9
HTML header
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
<!DOCTYPE HTML>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<p>This is some text...</p>
</body>
</html>
First HTML Page: Body
10
HTML body
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Some Simple Tags
 Hyperlink tags
 Image tags
 Text formatting tags
11
<a href="http://www.telerik.com/"
title="Telerik">Link to Telerik Web site</a>
<img src="logo.gif" alt="logo" />
This text is <em>emphasized.</em>
<br />new line<br />
This one is <strong>more emphasized.</strong>
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Tags Attributes
 Tags can have attributes
• Attributes specify properties and behavior
• Example:
 Few attributes can apply to every element:
• Id, style, class, title
• The id is unique in the document
• Content of title attribute is displayed as hint when the element is hovered with the
mouse
• Some elements have obligatory attributes
12
<img src="logo.gif" alt="logo" />
Attribute alt with value "logo"
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Headings and Paragraphs
 Heading Tags (h1 – h6)
 Paragraph Tags
 Sections: div and span
13
<p>This is my first paragraph</p>
<p>This is my second paragraph</p>
<h1>Heading 1</h1>
<h2>Sub heading 2</h2>
<h3>Sub heading 3</h3>
<div style="background: skyblue;">
This is a div</div>
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
The <!DOCTYPE> Declaration
 HTML documents must start with a document type definition (DTD)
• It tells web browsers what type is the served code
• Possible versions: HTML 4.01, XHTML 1.0 (Transitional or Strict), XHTML 1.1, HTML 5
 Example:
• See http://w3.org/QA/2002/04/valid-dtd-list.html for a list of possible doctypes
14
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
The <head> Section
 Contains information that doesn’t show directly on the viewable page
 Starts after the <!doctype> declaration
 Begins with <head> and ends with </head>
 Contains mandatory single <title> tag
 Can contain some other tags, e.g.
• <meta>
• <script>
• <style>
• <!–- comments -->
15
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
<head> Section: <title> tag
 Title should be placed between <head> and </head> tags
 Used to specify a title in the window title bar
 Search engines and people rely on titles
16
<title>iFour consultancy – Sustainable Solution </title>
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
The <body> Section
 The <body> section describes the viewable portion of the page
 Starts after the <head> </head> section
 Begins with <body> and ends with </body>
17
<html>
<head><title>Test page</title></head>
<body>
<!-- This is the Web page body -->
</body>
</html>
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
<b></b> bold
<i></i> italicized
<u></u> underlined
<sup></sup> Samplesuperscript
<sub></sub> Samplesubscript
<strong></strong> strong
<em></em> emphasized
<pre></pre> Preformatted text
<blockquote></blockquote> Quoted text block
<del></del> Deleted text – strike through
Text Formatting
 Text formatting tags modify the text between the opening tag and the closing tag
• Ex. <b>Hello</b> makes “Hello” bold
18Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Hyperlinks: <a> Tag
 Link to a document called form.html on the same server in the same directory:
 Link to a document called parent.html on the same server in the parent directory:
 Link to a document called cat.html on the same server in the subdirectory stuff:
19
<a href="form.html">Fill Our Form</a>
<a href="../parent.html">Parent</a>
<a href="stuff/cat.html">Catalog</a>
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
 Inserting an image with <img> tag:
 Image attributes:
 Example:
Images: <img> tag
src Location of image file (relative or absolute)
alt Substitute text for display (e.g. in text mode)
height Number of pixels of the height
width Number of pixels of the width
border Size of border, 0 for no border
<img src="/img/basd-logo.png">
<img src="./php.png" alt="PHP Logo" />
20Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Block and Inline Elements
 Block elements add a line break before and after them
• <div> is a block element
• Other block elements are <table>, <hr>, headings, lists, <p> and etc.
 Inline elements don’t break the text before and after them
• <span> is an inline element
• Most HTML elements are inline, e.g. <a>
21
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
The <div> Tag
 <div> creates logical divisions within a page
 Block style element
 Used with CSS
 Example:
22
<div style="font-size:24px; color:red">DIV example</div>
<p>This one is <span style="color:red; font-weight:bold">only a
test</span>.</p>
div-and-span.html
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
The <span> Tag
 Inline style element
 Useful for modifying a specific portion of text
• Don't create a separate area (paragraph) in the document
 Very useful with CSS
23
<p>This one is <span style="color:red; font-weight:bold">only a
test</span>.</p>
<p>This one is another <span style="font-size:32px; font-
weight:bold">TEST</span>.</p>
span.html
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
HTML Tables
 Tables represent tabular data
• A table consists of one or several rows
• Each row has one or more columns
 Tables comprised of several core tags:
• <table></table>: begin / end the table
• <tr></tr>: create a table row
• <td></td>: create tabular data (cell)
 Tables should not be used for layout. Use CSS floats and positioning styles instead
24
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Form Fields
 Single-line text input fields:
 Multi-line textarea fields:
 Hidden fields contain data not shown to the user:
• Often used by JavaScript code
25
<input type="text" name="FirstName" value="This is a text
field" />
<textarea name="Comments">This is a multi-line text
field</textarea>
<input type="hidden" name="Account" value="This is a hidden
text field" />
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
 HTML is the universal markup language for the Web
 HTML lets you format text, add graphics, create links, input forms, frames and tables, etc.,
and save it all in a text file that any browser can read and display
 The key to HTML is the tags, which indicates what content is coming up
HTML Summary
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
DOCTYPE declaration for HTML5 is very simple:
Use <!DOCTYPE html> instead of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN“ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
It uses UTF-8 and you define it with just one meta tag: <meta charset="UTF-8">
HTML5 new Supported Application Programming Interfaces:
• Geolocation − Now visitors can choose to share their physical location with your web application
• Drag and drop − Drag and drop the items from one location to another location on a the same
webpage.
• Persistent Local Storage − To achieve without resorting to third-party plug-ins.
• Web Workers − A next-generation bidirectional communication technology for web applications.
• Server-Sent Events − HTML5 introduces events which flow from web server to the web browsers
and they are called Server-Sent Events (SSE)
HTML5
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Removed Elements in HTML5
HTML5
Removed Element Use Instead
<acronym> <abbr>
<applet> <object>
<basefont> CSS
<big> CSS
<center> CSS
<dir> <ul>
Removed Element Use Instead
<font> CSS
<frame>
<frameset>
<noframes>
<strike> CSS, <s>, or <del>
<tt> CSS
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
New Semantic/Structural Elements in HTML5
HTML5
Element Description
<article> Defines an article in the document
<aside> Defines content aside from the page content
<bdi> Defines a part of text that might be formatted in a different direction from other text
<details> Defines additional details that the user can view or hide
<dialog> Defines a dialog box or window
<figcaption> Defines a caption for a <figure> element
<figure> Defines self-contained content, like illustrations, diagrams, photos, code listings, etc.
<footer> Defines a footer for the document or a section
<header> Defines a header for the document or a section
<main> Defines the main content of a document
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
New Form Elements in HTML5
HTML5
Element Description
<datalist> Defines pre-defined options for input controls
<keygen> Defines a key-pair generator field
<output> Defines the result of a calculation
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
HTML5
Element Description
<mark> Defines marked or highlighted text
<menuitem> Defines a command/menu item that the user can invoke from a popup menu
<meter> Defines a scalar measurement within a known range (a gauge)
<nav> Defines navigation links in the document
<progress> Defines a dialog box or window
<rp> Defines what to show in browsers that do not support ruby annotations
<rt> Defines an explanation/pronunciation of characters
<ruby> Defines a ruby annotation
<section> Defines a section in the document
<summary> Defines a visible heading for a <details> element
<time> Defines a date/time
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
New Graphics & Media Elements in HTML5
HTML5
Element Description
<canvas> Draw graphics, on the fly, via scripting
<svg> Draw scalable vector graphics
<audio> Defines sound content
<embed> Defines containers for external applications
<source> Defines tracks for <video> and <audio>
<track> Defines tracks for <video> and <audio>
<video> Defines video or movie content
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
New Input Types in HTML5
• Input Types: color,date,datetime,datetime-
local,email,month,number,range,search,tel,time,url,week
• InputAttribute:autocomplete,autofocus,form,formaction,formenctype,formmethod,formnoval
idate,formtarget,height and width, list, multiple, min and max, placeholder, step, required
New syntax in HTML5
• This example demonstrates the different syntaxes used in an <input> tag:
• Empty :<input type="text" value="John" disabled>
• Unquoted :<input type="text" value=John>
• Double-quoted :<input type="text" value="John Doe">
• Single-quoted :<input type="text" value='John Doe'>
• In HTML5, all four syntaxes may be used, depending on what is needed for the attribute.
HTML5
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
 http://www.w3schools.com/html/html5_intro.asp
 https://www.tutorialspoint.com/html5/
 http://www.w3schools.com/html/
 https://www.tutorialspoint.com/html/
References
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
Questions?
Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/

Mais conteúdo relacionado

Mais procurados

Hyperlinks in HTML
Hyperlinks in HTMLHyperlinks in HTML
Hyperlinks in HTML
Aarti P
 
Internet programming lecture 1
Internet programming lecture 1Internet programming lecture 1
Internet programming lecture 1
Mohammed Hussein
 

Mais procurados (20)

Hyperlinks in HTML
Hyperlinks in HTMLHyperlinks in HTML
Hyperlinks in HTML
 
Html ppt
Html pptHtml ppt
Html ppt
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Html
HtmlHtml
Html
 
Loops PHP 04
Loops PHP 04Loops PHP 04
Loops PHP 04
 
Html
HtmlHtml
Html
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Html links
Html linksHtml links
Html links
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Php forms
Php formsPhp forms
Php forms
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
Internet programming lecture 1
Internet programming lecture 1Internet programming lecture 1
Internet programming lecture 1
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
Website #01: HTML cơ bản
Website #01: HTML cơ bảnWebsite #01: HTML cơ bản
Website #01: HTML cơ bản
 
Css Ppt
Css PptCss Ppt
Css Ppt
 

Semelhante a HTML Basics by software development company india

Semelhante a HTML Basics by software development company india (20)

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
 
Html
HtmlHtml
Html
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
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
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
 
Day1
Day1Day1
Day1
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to design
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
Html basics
Html basicsHtml basics
Html basics
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
An-Introduction-to-HTML
An-Introduction-to-HTMLAn-Introduction-to-HTML
An-Introduction-to-HTML
 
Html5 ppt
Html5 pptHtml5 ppt
Html5 ppt
 
Html5
Html5 Html5
Html5
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
 

Mais de iFour Institute - Sustainable Learning

Mais de iFour Institute - Sustainable Learning (12)

Project Management : Project Planning by iFour Technolab Pvt. Ltd.
Project Management : Project Planning by iFour Technolab Pvt. Ltd.Project Management : Project Planning by iFour Technolab Pvt. Ltd.
Project Management : Project Planning by iFour Technolab Pvt. Ltd.
 
Project management : Project Monitoring and Control by iFour Technolab Pvt. Ltd.
Project management : Project Monitoring and Control by iFour Technolab Pvt. Ltd.Project management : Project Monitoring and Control by iFour Technolab Pvt. Ltd.
Project management : Project Monitoring and Control by iFour Technolab Pvt. Ltd.
 
Project management : Causal analysis and Resolution by iFour Technolab Pvt. ...
Project management :  Causal analysis and Resolution by iFour Technolab Pvt. ...Project management :  Causal analysis and Resolution by iFour Technolab Pvt. ...
Project management : Causal analysis and Resolution by iFour Technolab Pvt. ...
 
Here are proven techniques to Organizing effective training by iFour Technola...
Here are proven techniques to Organizing effective training by iFour Technola...Here are proven techniques to Organizing effective training by iFour Technola...
Here are proven techniques to Organizing effective training by iFour Technola...
 
ADO.NET by ASP.NET Development Company in india
ADO.NET by ASP.NET  Development Company in indiaADO.NET by ASP.NET  Development Company in india
ADO.NET by ASP.NET Development Company in india
 
Web API with ASP.NET MVC by Software development company in india
Web API with ASP.NET  MVC  by Software development company in indiaWeb API with ASP.NET  MVC  by Software development company in india
Web API with ASP.NET MVC by Software development company in india
 
jQuery plugins & JSON
jQuery plugins & JSONjQuery plugins & JSON
jQuery plugins & JSON
 
Mvc by asp.net development company in india - part 2
Mvc by asp.net development company in india  - part 2Mvc by asp.net development company in india  - part 2
Mvc by asp.net development company in india - part 2
 
MVC by asp.net development company in india
MVC by asp.net development company in indiaMVC by asp.net development company in india
MVC by asp.net development company in india
 
C# fundamentals Part 2
C# fundamentals Part 2C# fundamentals Part 2
C# fundamentals Part 2
 
jQuery for web development
jQuery for web developmentjQuery for web development
jQuery for web development
 
Cascading style sheets - CSS
Cascading style sheets - CSSCascading style sheets - CSS
Cascading style sheets - CSS
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

HTML Basics by software development company india

  • 1. iFour ConsultancyHTML (Hyper Text Markup Language)
  • 2.  Introduction to HTML  Creating HTML Pages  HTML Structure  Tags Attribute  Doctype Declaration  Text Formatting tags  Ways for Hyperlink  Block and Inline Elements  HTML Tables  HTML5  New Structural Elements in HTML5  New Form Elements  New Graphics and Media Elements INDEX
  • 3. Introduction To HTML  What Is HTML? • Markup language for describing web pages • HTML stands for Hyper Text Markup Language, a language with set of markup tags • Documents are described by HTML tags • Each HTML tag describes different document content •A markup language is a set of markup tags •A markup language is a set of markup tags Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 4. Creating HTML Pages  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 • Microsoft Word • Visual Studio 4 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 5. HTML Structure  HTML is comprised of “elements” and “tags” • Begins with <html> and ends with </html>  Elements (tags) are nested one inside another:  Tags have attributes:  HTML describes structure using two main sections: <head> and <body> 5 <html> <head></head> <body></body> </html> <img src="logo.jpg" alt="logo" /> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 6. HTML Code Formatting  The HTML source code should be formatted to increase readability and facilitate debugging • Every block element should start on a new line • Every nested (block) element should be indented • Browsers ignore multiple whitespaces in the page source, so formatting is harmless  For performance reasons, formatting can be sacrificed 6 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 7. First HTML Page 7 <!DOCTYPE HTML> <html> <head> <title>My First HTML Page</title> </head> <body> <p>This is some text...</p> </body> </html> Test.html Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 8. First HTML Page: Tags 8 Opening tag Closing tag  An HTML element consists of an opening tag, a closing tag and the content inside. <!DOCTYPE HTML> <html> <head> <title>My First HTML Page</title> </head> <body> <p>This is some text...</p> </body> </html> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 9. <!DOCTYPE HTML> <html> <head> <title>My First HTML Page</title> </head> <body> <p>This is some text...</p> </body> </html> First HTML Page: Header 9 HTML header Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 10. <!DOCTYPE HTML> <html> <head> <title>My First HTML Page</title> </head> <body> <p>This is some text...</p> </body> </html> First HTML Page: Body 10 HTML body Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 11. Some Simple Tags  Hyperlink tags  Image tags  Text formatting tags 11 <a href="http://www.telerik.com/" title="Telerik">Link to Telerik Web site</a> <img src="logo.gif" alt="logo" /> This text is <em>emphasized.</em> <br />new line<br /> This one is <strong>more emphasized.</strong> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 12. Tags Attributes  Tags can have attributes • Attributes specify properties and behavior • Example:  Few attributes can apply to every element: • Id, style, class, title • The id is unique in the document • Content of title attribute is displayed as hint when the element is hovered with the mouse • Some elements have obligatory attributes 12 <img src="logo.gif" alt="logo" /> Attribute alt with value "logo" Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 13. Headings and Paragraphs  Heading Tags (h1 – h6)  Paragraph Tags  Sections: div and span 13 <p>This is my first paragraph</p> <p>This is my second paragraph</p> <h1>Heading 1</h1> <h2>Sub heading 2</h2> <h3>Sub heading 3</h3> <div style="background: skyblue;"> This is a div</div> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 14. The <!DOCTYPE> Declaration  HTML documents must start with a document type definition (DTD) • It tells web browsers what type is the served code • Possible versions: HTML 4.01, XHTML 1.0 (Transitional or Strict), XHTML 1.1, HTML 5  Example: • See http://w3.org/QA/2002/04/valid-dtd-list.html for a list of possible doctypes 14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 15. The <head> Section  Contains information that doesn’t show directly on the viewable page  Starts after the <!doctype> declaration  Begins with <head> and ends with </head>  Contains mandatory single <title> tag  Can contain some other tags, e.g. • <meta> • <script> • <style> • <!–- comments --> 15 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 16. <head> Section: <title> tag  Title should be placed between <head> and </head> tags  Used to specify a title in the window title bar  Search engines and people rely on titles 16 <title>iFour consultancy – Sustainable Solution </title> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 17. The <body> Section  The <body> section describes the viewable portion of the page  Starts after the <head> </head> section  Begins with <body> and ends with </body> 17 <html> <head><title>Test page</title></head> <body> <!-- This is the Web page body --> </body> </html> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 18. <b></b> bold <i></i> italicized <u></u> underlined <sup></sup> Samplesuperscript <sub></sub> Samplesubscript <strong></strong> strong <em></em> emphasized <pre></pre> Preformatted text <blockquote></blockquote> Quoted text block <del></del> Deleted text – strike through Text Formatting  Text formatting tags modify the text between the opening tag and the closing tag • Ex. <b>Hello</b> makes “Hello” bold 18Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 19. Hyperlinks: <a> Tag  Link to a document called form.html on the same server in the same directory:  Link to a document called parent.html on the same server in the parent directory:  Link to a document called cat.html on the same server in the subdirectory stuff: 19 <a href="form.html">Fill Our Form</a> <a href="../parent.html">Parent</a> <a href="stuff/cat.html">Catalog</a> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 20.  Inserting an image with <img> tag:  Image attributes:  Example: Images: <img> tag src Location of image file (relative or absolute) alt Substitute text for display (e.g. in text mode) height Number of pixels of the height width Number of pixels of the width border Size of border, 0 for no border <img src="/img/basd-logo.png"> <img src="./php.png" alt="PHP Logo" /> 20Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 21. Block and Inline Elements  Block elements add a line break before and after them • <div> is a block element • Other block elements are <table>, <hr>, headings, lists, <p> and etc.  Inline elements don’t break the text before and after them • <span> is an inline element • Most HTML elements are inline, e.g. <a> 21 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 22. The <div> Tag  <div> creates logical divisions within a page  Block style element  Used with CSS  Example: 22 <div style="font-size:24px; color:red">DIV example</div> <p>This one is <span style="color:red; font-weight:bold">only a test</span>.</p> div-and-span.html Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 23. The <span> Tag  Inline style element  Useful for modifying a specific portion of text • Don't create a separate area (paragraph) in the document  Very useful with CSS 23 <p>This one is <span style="color:red; font-weight:bold">only a test</span>.</p> <p>This one is another <span style="font-size:32px; font- weight:bold">TEST</span>.</p> span.html Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 24. HTML Tables  Tables represent tabular data • A table consists of one or several rows • Each row has one or more columns  Tables comprised of several core tags: • <table></table>: begin / end the table • <tr></tr>: create a table row • <td></td>: create tabular data (cell)  Tables should not be used for layout. Use CSS floats and positioning styles instead 24 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 25. Form Fields  Single-line text input fields:  Multi-line textarea fields:  Hidden fields contain data not shown to the user: • Often used by JavaScript code 25 <input type="text" name="FirstName" value="This is a text field" /> <textarea name="Comments">This is a multi-line text field</textarea> <input type="hidden" name="Account" value="This is a hidden text field" /> Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 26.  HTML is the universal markup language for the Web  HTML lets you format text, add graphics, create links, input forms, frames and tables, etc., and save it all in a text file that any browser can read and display  The key to HTML is the tags, which indicates what content is coming up HTML Summary Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 27. DOCTYPE declaration for HTML5 is very simple: Use <!DOCTYPE html> instead of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN“ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> It uses UTF-8 and you define it with just one meta tag: <meta charset="UTF-8"> HTML5 new Supported Application Programming Interfaces: • Geolocation − Now visitors can choose to share their physical location with your web application • Drag and drop − Drag and drop the items from one location to another location on a the same webpage. • Persistent Local Storage − To achieve without resorting to third-party plug-ins. • Web Workers − A next-generation bidirectional communication technology for web applications. • Server-Sent Events − HTML5 introduces events which flow from web server to the web browsers and they are called Server-Sent Events (SSE) HTML5 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 28. Removed Elements in HTML5 HTML5 Removed Element Use Instead <acronym> <abbr> <applet> <object> <basefont> CSS <big> CSS <center> CSS <dir> <ul> Removed Element Use Instead <font> CSS <frame> <frameset> <noframes> <strike> CSS, <s>, or <del> <tt> CSS Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 29. New Semantic/Structural Elements in HTML5 HTML5 Element Description <article> Defines an article in the document <aside> Defines content aside from the page content <bdi> Defines a part of text that might be formatted in a different direction from other text <details> Defines additional details that the user can view or hide <dialog> Defines a dialog box or window <figcaption> Defines a caption for a <figure> element <figure> Defines self-contained content, like illustrations, diagrams, photos, code listings, etc. <footer> Defines a footer for the document or a section <header> Defines a header for the document or a section <main> Defines the main content of a document Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 30. New Form Elements in HTML5 HTML5 Element Description <datalist> Defines pre-defined options for input controls <keygen> Defines a key-pair generator field <output> Defines the result of a calculation Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 31. HTML5 Element Description <mark> Defines marked or highlighted text <menuitem> Defines a command/menu item that the user can invoke from a popup menu <meter> Defines a scalar measurement within a known range (a gauge) <nav> Defines navigation links in the document <progress> Defines a dialog box or window <rp> Defines what to show in browsers that do not support ruby annotations <rt> Defines an explanation/pronunciation of characters <ruby> Defines a ruby annotation <section> Defines a section in the document <summary> Defines a visible heading for a <details> element <time> Defines a date/time Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 32. New Graphics & Media Elements in HTML5 HTML5 Element Description <canvas> Draw graphics, on the fly, via scripting <svg> Draw scalable vector graphics <audio> Defines sound content <embed> Defines containers for external applications <source> Defines tracks for <video> and <audio> <track> Defines tracks for <video> and <audio> <video> Defines video or movie content Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 33. New Input Types in HTML5 • Input Types: color,date,datetime,datetime- local,email,month,number,range,search,tel,time,url,week • InputAttribute:autocomplete,autofocus,form,formaction,formenctype,formmethod,formnoval idate,formtarget,height and width, list, multiple, min and max, placeholder, step, required New syntax in HTML5 • This example demonstrates the different syntaxes used in an <input> tag: • Empty :<input type="text" value="John" disabled> • Unquoted :<input type="text" value=John> • Double-quoted :<input type="text" value="John Doe"> • Single-quoted :<input type="text" value='John Doe'> • In HTML5, all four syntaxes may be used, depending on what is needed for the attribute. HTML5 Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 34.  http://www.w3schools.com/html/html5_intro.asp  https://www.tutorialspoint.com/html5/  http://www.w3schools.com/html/  https://www.tutorialspoint.com/html/ References Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/
  • 35. Questions? Software Outsourcing Company Indiahttp://www.ifourtechnolab.com/

Notas do Editor

  1. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  2. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  3. 07/16/96
  4. 07/16/96
  5. 07/16/96
  6. 07/16/96
  7. 07/16/96
  8. 07/16/96
  9. 07/16/96
  10. 07/16/96
  11. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  12. 07/16/96
  13. 07/16/96
  14. 07/16/96
  15. 07/16/96
  16. 07/16/96
  17. 07/16/96
  18. 07/16/96
  19. 07/16/96
  20. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  21. 07/16/96
  22. 07/16/96
  23. 07/16/96
  24. 07/16/96
  25. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  26. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  27. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  28. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  29. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  30. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  31. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  32. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  33. Software Outsourcing Company India - http://www.ifourtechnolab.com/
  34. Software Outsourcing Company India - http://www.ifourtechnolab.com/