SlideShare uma empresa Scribd logo
1 de 38
HTML Elements Colin Gourlay & Kevin Vanderbeken
Today: Text Elements Lists Links Images
text elements
<h3>There's      a    lot   of    space        in   this        heading</h3> ...is the same as... <h3>There's a lot of space in this heading</h3>
semantic structure
headings <h1> <h2> <h3> <h4> <h5> <h6>
<h1>HTML Elements</h1> <h2>In This Lesson</h2> <h3>Assumed Knowledge</h3> <h2>Text Elements</h2> <h3>Semantic Structure</h3> <h3>Headings</h3> <h3>Paragraphs</h3> <h3>Common Inline Text Elements</h3> <h2>Lists</h2> and so on...
paragraphs <p>
<p>This is a very short paragraph. It only has two sentences.</p>
common inline text elements <em>  <strong>
<p><em>Please note:</em> the kettle must be unplugged every evening.</p> Please note: the kettle must be unplugged every evening.
<p><em>Please note: the kettle <strong>must</strong> be unplugged every evening, otherwise it will explode - <strong>killing us all</strong>.</em></p> Please note: the kettle must be unplugged every evening, otherwise it will explode - killing us all.
lists
unordered lists <ul>  <li>
[object Object]
 bread
 butter
 coffee beans
 bread
 coffee beans
 milk
 butteror
<ul> <li>bread</li> <li>coffee beans</li> <li>milk</li> <li>butter</li> </ul>
ordered lists <ol>  <li>
Gather ingredients Mix ingredients together Place ingredients in a baking dish Bake in oven for an hour Remove from oven Allow to stand for ten minutes Serve
Gather ingredients Bake in oven for an hour Remove from oven Serve Place ingredients in a baking dish Allow to stand for ten minutes Mix ingredients together
<ol> <li>Gather ingredients</li> 	<li>Mix ingredients together</li> 	<li>Place ingredients in a baking dish</li> 	<li>Bake in oven for an hour</li> 	<li>Remove from oven</li> 	<li>Allow to stand for ten minutes</li> 	<li>Serve</li> </ol>
letters Lowercase ascii letters (a, b, c...) Uppercase ascii letters (A, B, C...) Lowercase classical Greek: (έ, ή, ί...)
numbers Decimal numbers (1, 2, 3...) Decimal numbers with leading zeros (01, 02, 03...) Lowercase Roman numerals (i, ii, iii...) Uppercase Roman numerals (I, II, III...) Traditional Georgian numbering (an, ban, gan...) Traditional Armenian numbering (mek, yerku, yerek...)
nested lists
 Chapter One Section One Section Two Section Three  Chapter Two  Chapter Three
<ol> 	<li>Chapter One<ol> 		<li>Section One</li> 		<li>Section Two</li> 		<li>Section Three</li> 	</ol></li> 	<li>Chapter Two</li> 	<li>Chapter Three</li> </ol>
Links <a href=""> </a>
Links (anchor tags): Allows jumping between (x)html documents! Wrapping content or other inline elements with an <a> element and you create an ‘anchor’ point to somewhere else (and link them together). <p>You can search the internet from the <a href=“http://www.google.com">Google</a> homepage.</p>
Attributes of Anchors: href - the resource it points to (external document or an anchor ID). id - the anchor ID if the anchor is a target and not a link title - extra information about the external resource.
Attributes of Anchors: Href’s can tell us to link to: Relative links – figured out from the current URL.  href=“page.html” would look for that file in the same location of the document. href=“somewhere/page.html” is a subfolder called “somewhere” in the same location of the document you have open. href=“/somewhere/page.html” is a subfolder from the root of the site. Absolute links – figured out from the top level URL.  An absolute link defines the location of the document from scratch: The protocol to use to get the document, the server to get it from, the directory it is located in, and the name of the document itself: http://businessfinda.com.au/somewhere/page.html If you specify a different domain name, and are linking to another site, then that’s also known as an external link.
Attributes of Anchors: Href’s can tell us to link to: Fragment Identifiers – Linking to specific things in a page.  href=“#in-this-lesson” would look inside the current document for an element with the ID of in-this-lesson. A Fragment Anchor point:<h2>In This Lesson <a id="in-this-lesson">¶</a> Linking to that point in the page from another page:<a href="/somepage.html#footer">The footer on some page on this site</a>
Attributes of Anchors: Href’s can tell us to link to: Non-HTML Resources – for something completely different.  Forms of absolute links which tell the browser to use a different protocol, like mailto. Clicking this would open a compose new email window on most computers (with the address filled in):<a href="mailto:colin.gourlay@apn.com.au">Email Colin</a>

Mais conteúdo relacionado

Mais procurados

Getting More Traffic From Search Advanced Seo For Developers Presentation
Getting More Traffic From Search  Advanced Seo For Developers PresentationGetting More Traffic From Search  Advanced Seo For Developers Presentation
Getting More Traffic From Search Advanced Seo For Developers PresentationSeo Indonesia
 
01. 02. html web engineering html &amp; introduction
01. 02. html   web engineering html &amp; introduction01. 02. html   web engineering html &amp; introduction
01. 02. html web engineering html &amp; introductionN Gull
 
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick StoxA Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stoxpatrickstox
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to APIelliando dias
 
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019patrickstox
 
Technical SEO "Overoptimization"
Technical SEO "Overoptimization"Technical SEO "Overoptimization"
Technical SEO "Overoptimization"Hamlet Batista
 
Internet with HTML
Internet with HTMLInternet with HTML
Internet with HTMLumesh patil
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTMLSun Technlogies
 
Creating HTML Pages
Creating HTML PagesCreating HTML Pages
Creating HTML PagesMike Crabb
 
An Overview on PROV-AQ: Provenance Access and Query
An Overview on PROV-AQ: Provenance Access and QueryAn Overview on PROV-AQ: Provenance Access and Query
An Overview on PROV-AQ: Provenance Access and QueryOlaf Hartig
 
Effective web search techniques
Effective web search techniquesEffective web search techniques
Effective web search techniquesaliciafe0215
 

Mais procurados (20)

Getting More Traffic From Search Advanced Seo For Developers Presentation
Getting More Traffic From Search  Advanced Seo For Developers PresentationGetting More Traffic From Search  Advanced Seo For Developers Presentation
Getting More Traffic From Search Advanced Seo For Developers Presentation
 
01. 02. html web engineering html &amp; introduction
01. 02. html   web engineering html &amp; introduction01. 02. html   web engineering html &amp; introduction
01. 02. html web engineering html &amp; introduction
 
Google search tips
Google search tipsGoogle search tips
Google search tips
 
Html bangla
Html banglaHtml bangla
Html bangla
 
Bangla html
Bangla htmlBangla html
Bangla html
 
(SEO) Search Engine Optimization
(SEO) Search Engine Optimization(SEO) Search Engine Optimization
(SEO) Search Engine Optimization
 
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick StoxA Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to API
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
 
Why RDFa?
Why RDFa?Why RDFa?
Why RDFa?
 
Technical SEO "Overoptimization"
Technical SEO "Overoptimization"Technical SEO "Overoptimization"
Technical SEO "Overoptimization"
 
Internet with HTML
Internet with HTMLInternet with HTML
Internet with HTML
 
HTML
HTMLHTML
HTML
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
 
Creating HTML Pages
Creating HTML PagesCreating HTML Pages
Creating HTML Pages
 
Html ppt
Html pptHtml ppt
Html ppt
 
Hidden Features in HTTP
Hidden Features in HTTPHidden Features in HTTP
Hidden Features in HTTP
 
An Overview on PROV-AQ: Provenance Access and Query
An Overview on PROV-AQ: Provenance Access and QueryAn Overview on PROV-AQ: Provenance Access and Query
An Overview on PROV-AQ: Provenance Access and Query
 
Effective web search techniques
Effective web search techniquesEffective web search techniques
Effective web search techniques
 

Destaque

Horror vs thriller
Horror vs thrillerHorror vs thriller
Horror vs thrillertomedwards97
 
Thriller and suspense
Thriller and suspenseThriller and suspense
Thriller and suspenseskrami
 
Vocab. the weather. n.p.
Vocab. the weather. n.p.Vocab. the weather. n.p.
Vocab. the weather. n.p.garcia58
 
Suspense Techniques
Suspense TechniquesSuspense Techniques
Suspense Techniqueswillmedia
 
Developing suspense!
Developing suspense!Developing suspense!
Developing suspense!Youssra Malak
 
Writing using suspense and sentence openers!
Writing using suspense and sentence openers!Writing using suspense and sentence openers!
Writing using suspense and sentence openers!edenstarposh
 
Adjectives describing places
Adjectives describing placesAdjectives describing places
Adjectives describing placesaideenmarie
 
Writing describing places
Writing describing placesWriting describing places
Writing describing placesAnabel Ponce
 
Text structure for young readers
Text structure for young readersText structure for young readers
Text structure for young readersEmily Kissner
 
Describing places
Describing placesDescribing places
Describing placesnuriamen
 
Teaching Text Structure
Teaching Text StructureTeaching Text Structure
Teaching Text StructureEmily Kissner
 
Weather, clothes and seasons
Weather, clothes and seasonsWeather, clothes and seasons
Weather, clothes and seasonspaulaloga
 

Destaque (16)

Describing Weather
Describing WeatherDescribing Weather
Describing Weather
 
Horror vs thriller
Horror vs thrillerHorror vs thriller
Horror vs thriller
 
Yaru,Unit1animals
Yaru,Unit1animalsYaru,Unit1animals
Yaru,Unit1animals
 
Thriller and suspense
Thriller and suspenseThriller and suspense
Thriller and suspense
 
Vocab. the weather. n.p.
Vocab. the weather. n.p.Vocab. the weather. n.p.
Vocab. the weather. n.p.
 
Suspense Techniques
Suspense TechniquesSuspense Techniques
Suspense Techniques
 
Developing suspense!
Developing suspense!Developing suspense!
Developing suspense!
 
Building tension
Building tensionBuilding tension
Building tension
 
Writing using suspense and sentence openers!
Writing using suspense and sentence openers!Writing using suspense and sentence openers!
Writing using suspense and sentence openers!
 
Adjectives describing places
Adjectives describing placesAdjectives describing places
Adjectives describing places
 
Writing describing places
Writing describing placesWriting describing places
Writing describing places
 
Text structure for young readers
Text structure for young readersText structure for young readers
Text structure for young readers
 
Describing places
Describing placesDescribing places
Describing places
 
Teaching Text Structure
Teaching Text StructureTeaching Text Structure
Teaching Text Structure
 
Weather, clothes and seasons
Weather, clothes and seasonsWeather, clothes and seasons
Weather, clothes and seasons
 
Text features
Text featuresText features
Text features
 

Semelhante a 1 04-html elements

Semelhante a 1 04-html elements (20)

Xhtml Part1
Xhtml Part1Xhtml Part1
Xhtml Part1
 
Html
HtmlHtml
Html
 
Diva
DivaDiva
Diva
 
Block2 Session2 Presentation
Block2 Session2 PresentationBlock2 Session2 Presentation
Block2 Session2 Presentation
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
IPW HTML course
IPW HTML courseIPW HTML course
IPW HTML course
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITP
 
Html
HtmlHtml
Html
 
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
 
Michael(tm) Smith ED09 presentation
Michael(tm) Smith ED09 presentationMichael(tm) Smith ED09 presentation
Michael(tm) Smith ED09 presentation
 
Advanced dreamweaver
Advanced dreamweaverAdvanced dreamweaver
Advanced dreamweaver
 
Xml Zoe
Xml ZoeXml Zoe
Xml Zoe
 
Xml Zoe
Xml ZoeXml Zoe
Xml Zoe
 
1.3 creating links
1.3 creating links1.3 creating links
1.3 creating links
 
1.3 creating links
1.3 creating links1.3 creating links
1.3 creating links
 
#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]
 
Lect_html1
Lect_html1Lect_html1
Lect_html1
 
Html Intro2
Html Intro2Html Intro2
Html Intro2
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
Html5
Html5Html5
Html5
 

Mais de apnwebdev

1 07-the box-model
1 07-the box-model1 07-the box-model
1 07-the box-modelapnwebdev
 
1 07-2-css floats-and_positioning
1 07-2-css floats-and_positioning1 07-2-css floats-and_positioning
1 07-2-css floats-and_positioningapnwebdev
 
1 06-more html-elements
1 06-more html-elements1 06-more html-elements
1 06-more html-elementsapnwebdev
 
1 05-css for-text_and_backgrounds
1 05-css for-text_and_backgrounds1 05-css for-text_and_backgrounds
1 05-css for-text_and_backgroundsapnwebdev
 
1-07: The Box Model
1-07: The Box Model1-07: The Box Model
1-07: The Box Modelapnwebdev
 
1-06: More HTML Elements
1-06: More HTML Elements1-06: More HTML Elements
1-06: More HTML Elementsapnwebdev
 
1-05: CSS for Text and Backgrounds
1-05: CSS for Text and Backgrounds1-05: CSS for Text and Backgrounds
1-05: CSS for Text and Backgroundsapnwebdev
 
1-04: HTML Elements
1-04: HTML Elements1-04: HTML Elements
1-04: HTML Elementsapnwebdev
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introductionapnwebdev
 
1-02: HTML Markup Introduction
1-02: HTML Markup Introduction1-02: HTML Markup Introduction
1-02: HTML Markup Introductionapnwebdev
 
1-01: Introduction To Web Development
1-01: Introduction To  Web  Development1-01: Introduction To  Web  Development
1-01: Introduction To Web Developmentapnwebdev
 

Mais de apnwebdev (11)

1 07-the box-model
1 07-the box-model1 07-the box-model
1 07-the box-model
 
1 07-2-css floats-and_positioning
1 07-2-css floats-and_positioning1 07-2-css floats-and_positioning
1 07-2-css floats-and_positioning
 
1 06-more html-elements
1 06-more html-elements1 06-more html-elements
1 06-more html-elements
 
1 05-css for-text_and_backgrounds
1 05-css for-text_and_backgrounds1 05-css for-text_and_backgrounds
1 05-css for-text_and_backgrounds
 
1-07: The Box Model
1-07: The Box Model1-07: The Box Model
1-07: The Box Model
 
1-06: More HTML Elements
1-06: More HTML Elements1-06: More HTML Elements
1-06: More HTML Elements
 
1-05: CSS for Text and Backgrounds
1-05: CSS for Text and Backgrounds1-05: CSS for Text and Backgrounds
1-05: CSS for Text and Backgrounds
 
1-04: HTML Elements
1-04: HTML Elements1-04: HTML Elements
1-04: HTML Elements
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
1-02: HTML Markup Introduction
1-02: HTML Markup Introduction1-02: HTML Markup Introduction
1-02: HTML Markup Introduction
 
1-01: Introduction To Web Development
1-01: Introduction To  Web  Development1-01: Introduction To  Web  Development
1-01: Introduction To Web Development
 

1 04-html elements

  • 1. HTML Elements Colin Gourlay & Kevin Vanderbeken
  • 2. Today: Text Elements Lists Links Images
  • 6. headings <h1> <h2> <h3> <h4> <h5> <h6>
  • 7. <h1>HTML Elements</h1> <h2>In This Lesson</h2> <h3>Assumed Knowledge</h3> <h2>Text Elements</h2> <h3>Semantic Structure</h3> <h3>Headings</h3> <h3>Paragraphs</h3> <h3>Common Inline Text Elements</h3> <h2>Lists</h2> and so on...
  • 9. <p>This is a very short paragraph. It only has two sentences.</p>
  • 10. common inline text elements <em> <strong>
  • 11. <p><em>Please note:</em> the kettle must be unplugged every evening.</p> Please note: the kettle must be unplugged every evening.
  • 12. <p><em>Please note: the kettle <strong>must</strong> be unplugged every evening, otherwise it will explode - <strong>killing us all</strong>.</em></p> Please note: the kettle must be unplugged every evening, otherwise it will explode - killing us all.
  • 13. lists
  • 15.
  • 23. <ul> <li>bread</li> <li>coffee beans</li> <li>milk</li> <li>butter</li> </ul>
  • 25. Gather ingredients Mix ingredients together Place ingredients in a baking dish Bake in oven for an hour Remove from oven Allow to stand for ten minutes Serve
  • 26. Gather ingredients Bake in oven for an hour Remove from oven Serve Place ingredients in a baking dish Allow to stand for ten minutes Mix ingredients together
  • 27. <ol> <li>Gather ingredients</li> <li>Mix ingredients together</li> <li>Place ingredients in a baking dish</li> <li>Bake in oven for an hour</li> <li>Remove from oven</li> <li>Allow to stand for ten minutes</li> <li>Serve</li> </ol>
  • 28. letters Lowercase ascii letters (a, b, c...) Uppercase ascii letters (A, B, C...) Lowercase classical Greek: (έ, ή, ί...)
  • 29. numbers Decimal numbers (1, 2, 3...) Decimal numbers with leading zeros (01, 02, 03...) Lowercase Roman numerals (i, ii, iii...) Uppercase Roman numerals (I, II, III...) Traditional Georgian numbering (an, ban, gan...) Traditional Armenian numbering (mek, yerku, yerek...)
  • 31. Chapter One Section One Section Two Section Three Chapter Two Chapter Three
  • 32. <ol> <li>Chapter One<ol> <li>Section One</li> <li>Section Two</li> <li>Section Three</li> </ol></li> <li>Chapter Two</li> <li>Chapter Three</li> </ol>
  • 34. Links (anchor tags): Allows jumping between (x)html documents! Wrapping content or other inline elements with an <a> element and you create an ‘anchor’ point to somewhere else (and link them together). <p>You can search the internet from the <a href=“http://www.google.com">Google</a> homepage.</p>
  • 35. Attributes of Anchors: href - the resource it points to (external document or an anchor ID). id - the anchor ID if the anchor is a target and not a link title - extra information about the external resource.
  • 36. Attributes of Anchors: Href’s can tell us to link to: Relative links – figured out from the current URL. href=“page.html” would look for that file in the same location of the document. href=“somewhere/page.html” is a subfolder called “somewhere” in the same location of the document you have open. href=“/somewhere/page.html” is a subfolder from the root of the site. Absolute links – figured out from the top level URL. An absolute link defines the location of the document from scratch: The protocol to use to get the document, the server to get it from, the directory it is located in, and the name of the document itself: http://businessfinda.com.au/somewhere/page.html If you specify a different domain name, and are linking to another site, then that’s also known as an external link.
  • 37. Attributes of Anchors: Href’s can tell us to link to: Fragment Identifiers – Linking to specific things in a page. href=“#in-this-lesson” would look inside the current document for an element with the ID of in-this-lesson. A Fragment Anchor point:<h2>In This Lesson <a id="in-this-lesson">¶</a> Linking to that point in the page from another page:<a href="/somepage.html#footer">The footer on some page on this site</a>
  • 38. Attributes of Anchors: Href’s can tell us to link to: Non-HTML Resources – for something completely different. Forms of absolute links which tell the browser to use a different protocol, like mailto. Clicking this would open a compose new email window on most computers (with the address filled in):<a href="mailto:colin.gourlay@apn.com.au">Email Colin</a>
  • 40. Images: Images might be turned off to save bandwidth on some browsers. Visitors may be visually impaired to a degree. Search engines are picture illiterate.
  • 41. The img Element: <imgsrc="http://www.lots-of-pictures.com/cat.jpg" alt="Fuzzy orange cat" title="A picture of a cat" /> It’s an empty element – self closing tag. src - Image Source - The URL of the image you want to display (quite similar to the href attribute on the a element) alt - Alternative Text - This is displayed instead of the image under certain circumstances. title - Image Title - Extra information about the image. This is displayed as a tooltip when you hover your mouse over the image.
  • 42. When good img’s go bad <imgsrc="http://www.lots-of-pictures.com/cat.jpg" alt="Fuzzy orange cat" title="A picture of a cat" /> Sometimes the image may not be available because it got lost, connection issues, or because of the user agent (normally what we know as the browser). Sometimes you can’t actually see them – Accessibility. In these cases the alt attribute is provided. This is what you keep hearing people call the “alt tags”. It’s alt="" IN an element tag.
  • 43. The img Element: <a href=“http://www.im-a-cat-site.com"> <imgsrc="http://www.lots-of-pictures.com/cat.jpg" alt="Fuzzy orange cat" title="A picture of a cat" /> </a> You can nest images inside other elements of course... It’s part of the normal document hierarchy. When you want a clickable image, you’re putting an img element inside of an anchor element a!
  • 45. Workshop writing HTML OR Styling HTML with CSS