際際滷

際際滷Share a Scribd company logo


HTML5CHEATSHEET
WHATISHTML?
 HTMLstandsforHypertextMarkupLanguage.
 Itwasinitiallyreleasedin1993.
 HTMLstructuresthewebpagesthatwevisitonlinewithparagraphs,headings,links,
images,andmore.
 However,itdoesntstylethewebpagewithcolors,sizing,borders,etc.(Thatswhat
cascadingstylesheetsarefor,orCSS.)
 YoucanthinkofHTMLlikethehumanface,andCSSislikemakeup,hairstyles,etc.
WHATSNEWINHTML5?
HTML5hasbeenindevelopmentsince2007.However,ittakesawhiletofullyimplement.
Meaningmanysitesarenotyetusingit.TheW3C(WorldWideWebConsortium)isthe
organizationbehindsettingtheprotocolsandguidelinesofHTML5.Dontworrytoomuch
aboutthis.
JustknowthatHTML5isthefutureoftheweb.Itwasdesignedtodeliverrichcontent
withouttheneedforplugins.HTML5canalsodelivereverythingfromgraphicstomusic.
Evenbetter,HTML5iscross-platform.IthasbeencreatedtoworkonPCs,tablets,
smartphonesandevensmartTVs.

 

LEARNTOCODEWITH.ME 1
HTML5CHEATSHEET
IMPORTANT:
TocreateHTMLdocuments,onemustuseaplaintexteditor.(SomethinglikeMicrosoft
Word,orGoogleDocs,willnotwork.)HTMLfilesaresavedwiththeextension.html.
POPULARTEXTEDITORSINCLUDE:
 SublimeText
 Brackets
 Atom
 TextWrangler
 Notepad++
Youcanlearnmoreabouttexteditorshere.


 

LEARNTOCODEWITH.ME 2
HTML5CHEATSHEET
BASICHTMLTAGS(AREFRESHER)
HEADINGS
 Headingtagsareusedtodefine
HTMLheadings
 Tagsgofrom<h1>through<h6>
 <h1>hasthemostimportanceand
<h6>istheleast
 <h1>pagetitle</h1>
<h2>pagesubtitle</h2>
<h3>subtitlewithless
importancethanh2<h3>
<h4>headingwithless
importancethanh3</h4>
<h5>lessimportantthanh4</h5>
<h6>lessimportantthanh5</h6>
PARAGRAPHS
 The<p>tagdefinesaparagraph
 <p>Myparagraphtextgoes
betweenptags,likethis.
</p>
LINKING
 The<a>tagisusedforcreatingaURL
link
 Linkstakeyoufromonepageto
another
 <ahref=http://
learntocodewith.me>Thisisa
link</a>
IMAGES
 The<img>tagdefinesanimageinan
HTMLpage
 Imagesarenottechnicallyinserted
intoanHTMLpage,imagesarelinked
toHTMLpages
 The<img>tagcreatesaholding
spaceforthereferencedimage
 <imgsrc=girl足coding.png
alt=GirlCoding>

LEARNTOCODEWITH.ME 3
HTML5CHEATSHEET
NEWHTML5TAGS
NEWMEDIAELEMENTS

TAG DESCRIPTION
<audio> Definessoundormusiccontent
<embed> Definescontainersforexternalapplications(likeplug-ins)
<source> Definessourcesfor<video>and<audio>
<track> Definestracksfor<video>and<audio>
<video> Definesvideoormoviecontent

NEWCANVASTAG

TAG DESCRIPTION
<canvas> DefinesgraphicdrawingusingJavascript

NEWFORMELEMENTS

TAG DESCRIPTION
<datalist> Definespredefinedoptionsforinputcontrols
<keygen> Definesakey-pairgeneratorfield(forforms)
<output> Definestheresultofacalculation


LEARNTOCODEWITH.ME 4
HTML5CHEATSHEET
NEWSTRUCTURALELEMENTS

TAG DESCRIPTION
<article> DefinesanArticleinthedocument
<aside> Definescontentasidefromthepagecontent
<bdi> Definespartoftextthatmightbeformattedinadifferent
directionfromothertextoutsideit
<details> Definesadditionaldetailsthattheusercanvieworhide
<dialog> Definesadialogboxorwindow
<figcaption> Definesacaptionfora<figure>element
<figure> Definesself-containedcontentlikeillustrations,diagrams,
etc.
<footer> Definesafooterforthedocumentorasection
<header> Definesaheaderforthedocumentorasection
<main> Definesthemaincontentofadocument
<mark> Definesmarkedorhighlightedtext
<menuitem> Definesmenuitemthatusercaninvokefromapop-upmenu
<meter> Definesascalarmeasurementwithinaknownrange
<nav> Definesnavigationlinksinthedocument
<progress> Definestheprogressofatask
<rp> Definesanexplanationofcharacters(forEastAsian
typography)
<ruby> Definesarubyannotation(forEastAsianTypography)
<section> Definesasectioninthedocument
<summary> Definesavisibleheadingfora<details>element
<time> Definesadate/time
<wbr> Definesapossibleline-break

LEARNTOCODEWITH.ME 5
HTML5CHEATSHEET
HTML5STRUCTURALELEMENTS
HOWADOCUMENTISLAIDOUTSTRUCTURALLY


LEARNTOCODEWITH.ME 6
HTML5CHEATSHEET

NOLONGERSUPPORTEDHTMLTAGS

TAG DESCRIPTION
<acronym> Usedtodefineanembeddedacronym
<applet> Usedtodefineembeddedapplet
<basefont> Definedefaultfontcolor,fontsize,orfontfamilyforallthe
document
<big> Usedformakingtextbigger
<center> Usedtocenterandaligntext
<dir> Usedtodefinedirectorylist
<font> Usedtodefinefontface,sizeandfontcolor
<frameset> Definedframeset,whichorganizedmultiplewindows
<noframes> Usedtodisplaytextonbrowsersthatcouldnothandle
frames
<s>,<strike> Definedstrikethroughtext
<tt> Usedtodefineteletypetext
<u> Usedtodefineunderlinedtext


 

LEARNTOCODEWITH.ME 7
HTML5CHEATSHEET
ADDITIONALHTML5RESOURCES
UDEMY
1HourHTML($)
TEAMTREEHOUSE
IntroductiontoHTMLandCSS($)
SITEPOINT
ABasicHTML5Template
SHAYHOWE.COM
LearntoCodeHTML&CSS-Develop&StyleWebsites
HTML5ROCKS
HTML5Resources-AGoogleProject
W3CVALIDATOR
W3CMarkupValidationService

 

LEARNTOCODEWITH.ME 8
HTML5CHEATSHEET







Wanttolearntocode
withothernewbies?



LEARNTOCODEWITH.ME 9

More Related Content

HTML5 cheat sheet