HTML 5 HTML 5 The past, the present, the future The past, the present, the future Table of Contents Table of Contents Hypertext Markup Language Hypertext Markup Language HTML Concepts HTML Concepts HTML Document Structure HTML Document Structure HTML Common Elements HTML Common Elements Section Elements Section Elements Semantic Structural Tags Semantic Structural Tags 2 Hypertext Markup Language Hypertext Markup Language 3 Hypertext Markup Language Hypertext Markup Language HTML HTML – H yper yper T ext ext M arkup arkup L anguage anguage A notation for describing A notation for describing document structure document structure (semantic markup) (semantic markup) formatting formatting (presentation markup) (presentation markup) Looks (looked?) like: Looks (looked?) like: A Microsoft Word document A Microsoft Word document The markup tags provide information about The markup tags provide information about the page content structure the page content structure A HTML document consists of many tags A HTML document consists of many tags 4
8
Embed
HTML 5 - ucg.ac.me … · HTML –Past, Present, Future 1991 –HTML first mentioned –Tim Berners -Lee –HTML tags 1993 –HTML (first public version, published at IETF) 1993 –HTML
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
HTML 5HTML 5The past, the present, the futureThe past, the present, the future
Table of ContentsTable of Contents
�� Hypertext Markup LanguageHypertext Markup Language
�� Attributes are properties of HTML ElementsAttributes are properties of HTML Elements
�� Used to set size, color, border, etcUsed to set size, color, border, etc……
�� Put directly in the tagsPut directly in the tags
�� Has value surrounded by Has value surrounded by " "" "
�� The value is always a stringThe value is always a string
10
<!<!--–– makes a hyperlink to Google makes a hyperlink to Google ---->><a href="http://google.com"> go to Google</a><a href="http://google.com"> go to Google</a>
<!<!--–– makes a horizontal line makes a horizontal line ---->><hr width="95%" size="3px"/><hr width="95%" size="3px"/>
<!<!--–– adds an image in the web page adds an image in the web page ---->><img src="images/SEB<img src="images/SEB--Ninja.png"/>Ninja.png"/>
Some tags don't Some tags don't
have closing taghave closing tagSome tags don't Some tags don't
have closing taghave closing tag
Most Common AttributesMost Common Attributes
�� There are some attributes that are common for There are some attributes that are common for
every HTML elementevery HTML element
�� Id, class, name, styleId, class, name, style
�� And some attributes are specificAnd some attributes are specific
�� For example the attribute For example the attribute srcsrc of the of the imgimg
elementelement
�� Shows the path to the image to be shownShows the path to the image to be shown
11
HTML ElementsHTML Elements
�� HTML Elements HTML Elements are combination of tags and are combination of tags and
attributesattributes
�� Opening tag with some or none attributes and a Opening tag with some or none attributes and a
closing tagclosing tag
12
<a href="http://google.com"> go to Google</a><a href="http://google.com"> go to Google</a>
<html><html>……</html></html>
HTML HTML TerminologyTerminology
Live DemoLive Demo
1
HTML Document StructureHTML Document StructureHTML Document, HTML Document, DoctypeDoctype, Head, Body, Head, Body
1
HTML Document StructureHTML Document Structure
�� Some elements are essential to each HTML Some elements are essential to each HTML