SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
introduction to

html
Basic syntax and elements
what is html?
• HTML: Hyper Text Markup Language
• Language which defines webpages
  • Structure
  • Appearance
  • Description
• Worldwide standard
• Composed of HTML tags
html tags
• Basic unit of an HTML document
• Contained in brackets: <tag>
• Usually in pairs
  • Opening: <tag>
  • Closing: </tag>
Basic Structure
• HTML document: <html></html>
• Head: <head></head>
• Body: <body></body>
Basic Structure
<html>
  <head>
  <!-- document information goes here -->
  </head>
  <body>
  <!-- visible content goes here -->
  </body>
</html>
Basic Elements
•   Headings: <h1></h1>...<h6></h6>
•   Paragraphs: <p></p>
•   Links (anchors): <a></a>
•   Images: <img />
•   Line breaks: <br />
HTML Syntax
• Two types of elements:
  1.Container elements
     • Has content inside <p>Hello world</p>
     • Closed by a closing tag </p>
  2.Empty elements
     • Content in itself <img src=“hi.gif” />
     • Self-closing <br />
• Elements can have attributes
Coding Tips
• Always close the element
  • <h1>Header</h1>, <br />
• Use lower case
  • <p>, <body>, <html>
• First-opened, last-closed
  • <p><a href=“#”>Link</a></p>
• Always quote attributes
  • <img src=“major.jpg”>
TExt-formatting
•   Bold: <b>Bold text</b>
•   Italic: <i>Italicized text</i>
•   Big: <big>Big text</big>
•   Small: <small>Small text</small>
•   Emphasized: <em>Emphasized text</em>
•   Strong: <strong>Strong text</strong>
•   Subscript: <sub>Subscript text</sub>
•   Superscript: <sup>Superscript text</sup>
Anchor Attributes
• Destination file/location
  • Another webpage: <a href=“sample.html”>
  • Open a picture: <a href=“me.jpg”>
  • Go to an area: <a href=“#chapter”>
• Where to open the link
  • New window: <a target=“_blank”>
• Declare an anchor-area: <a   name=“chapter”>
image attributes
• Location and filename: <img src=“hi.gif” />
• Alternative text: <img alt=“My First Dog” />
tables
•   Declare a table: <table>...</table>
•   Define a row: <tr>...</tr>
•   Add divisions/cells: <td>...</td>
•   Put content inside the cells: <td>Content</td>
Sample Table Code
<table>
  <tr>
  <td>Name</td>
  <td>Occupation</td>
  </tr>
  <tr>
  <td>Gloria</td>
  <td>Thief</td>
  </tr>
</table>
Lists
• Ordered list: <ol>...</ol>
• Unordered list: <ul>...</ul>
• List item: <li>Music</li>
Sample List Code
<ol>
  <li>Charm</li>
  <li>Electron</li>
  <li>Gluon</li>
  <li>Graviton</li>
  <li>Muon</li>
  <li>Photon</li>
  <li>Tau</li>
  <li>Truth</li>
</ol>

Mais conteúdo relacionado

Mais procurados (20)

Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
HTML
HTMLHTML
HTML
 
Html and its tags
Html and its tagsHtml and its tags
Html and its tags
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Html 5
Html 5Html 5
Html 5
 
Getting into HTML
Getting into HTMLGetting into HTML
Getting into HTML
 
1. HTML
1. HTML1. HTML
1. HTML
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Crash Course Web - HTML Presentation
Crash Course Web - HTML PresentationCrash Course Web - HTML Presentation
Crash Course Web - HTML Presentation
 
Html presentation
Html presentationHtml presentation
Html presentation
 
HTML
HTMLHTML
HTML
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
Web Page Designing Using HTML
Web Page Designing Using HTMLWeb Page Designing Using HTML
Web Page Designing Using HTML
 
Html
HtmlHtml
Html
 
PPT on Basic HTML Tags
PPT on Basic HTML TagsPPT on Basic HTML Tags
PPT on Basic HTML Tags
 

Semelhante a Intro to HTML

Semelhante a Intro to HTML (20)

FEWDD Lec 1 web development presentation
FEWDD Lec 1 web development presentationFEWDD Lec 1 web development presentation
FEWDD Lec 1 web development presentation
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
Html intro
Html introHtml intro
Html intro
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginners
 
html
htmlhtml
html
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Web 101 intro to html
Web 101  intro to htmlWeb 101  intro to html
Web 101 intro to html
 
An-Introduction-to-HTML
An-Introduction-to-HTMLAn-Introduction-to-HTML
An-Introduction-to-HTML
 
WTL1HTML-TEXT.ppt
WTL1HTML-TEXT.pptWTL1HTML-TEXT.ppt
WTL1HTML-TEXT.ppt
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Html
HtmlHtml
Html
 
Html coding
Html codingHtml coding
Html coding
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
 
HTML-Basic.pptx
HTML-Basic.pptxHTML-Basic.pptx
HTML-Basic.pptx
 
Lecture 2 - HTML Basics
Lecture 2 - HTML BasicsLecture 2 - HTML Basics
Lecture 2 - HTML Basics
 
Java script and html new
Java script and html newJava script and html new
Java script and html new
 
Java script and html
Java script and htmlJava script and html
Java script and html
 
HTML PPT.pdf
HTML PPT.pdfHTML PPT.pdf
HTML PPT.pdf
 
HTML Basics
HTML BasicsHTML Basics
HTML Basics
 

Mais de Gerson Abesamis (20)

YMSAT Project Proposal Form
YMSAT Project Proposal FormYMSAT Project Proposal Form
YMSAT Project Proposal Form
 
YMSAT Student Primer
YMSAT Student PrimerYMSAT Student Primer
YMSAT Student Primer
 
Final Project
Final ProjectFinal Project
Final Project
 
960 Grid System
960 Grid System960 Grid System
960 Grid System
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
Photography Orientation 11-12
Photography Orientation 11-12Photography Orientation 11-12
Photography Orientation 11-12
 
WebDev2 Orientation 11-12
WebDev2 Orientation 11-12WebDev2 Orientation 11-12
WebDev2 Orientation 11-12
 
Photography Class 11-12
Photography Class 11-12Photography Class 11-12
Photography Class 11-12
 
Prewar report
Prewar reportPrewar report
Prewar report
 
Typo Graphics
Typo GraphicsTypo Graphics
Typo Graphics
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Typographic Contrast
Typographic ContrastTypographic Contrast
Typographic Contrast
 
WebDev Template Finals
WebDev Template FinalsWebDev Template Finals
WebDev Template Finals
 
Css positioning
Css positioningCss positioning
Css positioning
 
Pinhole photography vale
Pinhole photography valePinhole photography vale
Pinhole photography vale
 
CSS Box Model and Dimensions
CSS Box Model and DimensionsCSS Box Model and Dimensions
CSS Box Model and Dimensions
 
Interface Design
Interface DesignInterface Design
Interface Design
 
CSS Lists and Tables
CSS Lists and TablesCSS Lists and Tables
CSS Lists and Tables
 
CSS Refresher
CSS RefresherCSS Refresher
CSS Refresher
 
Information Architecture
Information ArchitectureInformation Architecture
Information Architecture
 

Intro to HTML

  • 2. what is html? • HTML: Hyper Text Markup Language • Language which defines webpages • Structure • Appearance • Description • Worldwide standard • Composed of HTML tags
  • 3. html tags • Basic unit of an HTML document • Contained in brackets: <tag> • Usually in pairs • Opening: <tag> • Closing: </tag>
  • 4. Basic Structure • HTML document: <html></html> • Head: <head></head> • Body: <body></body>
  • 5. Basic Structure <html> <head> <!-- document information goes here --> </head> <body> <!-- visible content goes here --> </body> </html>
  • 6. Basic Elements • Headings: <h1></h1>...<h6></h6> • Paragraphs: <p></p> • Links (anchors): <a></a> • Images: <img /> • Line breaks: <br />
  • 7. HTML Syntax • Two types of elements: 1.Container elements • Has content inside <p>Hello world</p> • Closed by a closing tag </p> 2.Empty elements • Content in itself <img src=“hi.gif” /> • Self-closing <br /> • Elements can have attributes
  • 8. Coding Tips • Always close the element • <h1>Header</h1>, <br /> • Use lower case • <p>, <body>, <html> • First-opened, last-closed • <p><a href=“#”>Link</a></p> • Always quote attributes • <img src=“major.jpg”>
  • 9. TExt-formatting • Bold: <b>Bold text</b> • Italic: <i>Italicized text</i> • Big: <big>Big text</big> • Small: <small>Small text</small> • Emphasized: <em>Emphasized text</em> • Strong: <strong>Strong text</strong> • Subscript: <sub>Subscript text</sub> • Superscript: <sup>Superscript text</sup>
  • 10. Anchor Attributes • Destination file/location • Another webpage: <a href=“sample.html”> • Open a picture: <a href=“me.jpg”> • Go to an area: <a href=“#chapter”> • Where to open the link • New window: <a target=“_blank”> • Declare an anchor-area: <a name=“chapter”>
  • 11. image attributes • Location and filename: <img src=“hi.gif” /> • Alternative text: <img alt=“My First Dog” />
  • 12. tables • Declare a table: <table>...</table> • Define a row: <tr>...</tr> • Add divisions/cells: <td>...</td> • Put content inside the cells: <td>Content</td>
  • 13. Sample Table Code <table> <tr> <td>Name</td> <td>Occupation</td> </tr> <tr> <td>Gloria</td> <td>Thief</td> </tr> </table>
  • 14. Lists • Ordered list: <ol>...</ol> • Unordered list: <ul>...</ul> • List item: <li>Music</li>
  • 15. Sample List Code <ol> <li>Charm</li> <li>Electron</li> <li>Gluon</li> <li>Graviton</li> <li>Muon</li> <li>Photon</li> <li>Tau</li> <li>Truth</li> </ol>