HTML Introduction What is HTML? HTML is a markup markup language language for describing describing web web documents (web pages). •
HTML stands for Hyper Text Markup Language
•
A markup language is a set of markup tags
•
HTML documents are described by HTML tags
•
Eac HTML tag describes describes different different document content
HTML Example A small HTML document: and and describes describes a eading
•
Te text between and and describes describes a paragrap
#sing tis description$ a web browser can display a document wit a eading and a paragrap.
HTML Ta$s HTML tags are ke!#rds ke!#rds (tag (tag names) surrounded by angle brackets% brackets%
. Te HTML document itself begins wit and and ends wit .. Te "isible part of te HTML document is between and and ..
Example to to tags% tags%
Example p$3 alt=3W5.chools+com3 alt=3W5.chools+com3 -idth=3(103 -idth=3(103 hei$ht= hei$ht=3(03 3(03 #
HTML Elements HTML elements are written wit a start start tag$ tag$ wit an end end tag$ tag$ wit te cntent cntent in in between%
&tagname tagname' 'content content& & tagname tagname' ' Te HTML element element is is e"eryting from te start tag to te end tag%
&p'My first HTML paragrap.& paragrap. & p p' ' )tart tag
Element cntent
End tag
&0'
My +irst Heading
&0'
&p'
My first paragrap.
&p'
&br'
,ome HTML elements do not a"e an end tag.
6ested HTML Elements HTML elements can be nested (elements can contain elements). All HTML documents consist of nested HTML elements. Tis example contains < HTML elements%
Example element element defines te #hle dcument. dcument. *t as a start start tag tag &tml' and an end end tag tag &tml'. Te element cntent cntent is is anoter HTML element (te &body' element).
We .u$$est: Al-a's 2se Lo-ercase Attri&utes Te HTML7 standard does not reuire lower case attribute names.
Te title attribute can be written wit upper or lower case like Title Title andor andor T0TLE T0TLE.. 56 recmmends recmmends lowercase lowercase in HTML element element defines a line break. break. #se &br' if you want a line break (a new line) witout starting a new paragrap%
Example s usemap attribute and creates a relationsip between te image and te map. Te &map' tag contains a number of &area' tags$ tat defines te clickable areas in te imageDmap%
Example im$ src=3planets+$i3 src=3planets+$i3 alt=3"lanets3 alt=3"lanets3 usemap= usemap=3planetmap3 3planetmap3 st'le=3-idth:( st'le=3-idth:( s element usemap usemap attribute attribute to point to an imageD map
Loading images takes time. Large images can slow down your page. #se images caref
Test T est oursel oursel -ith E Ex xercises! ercises! ! Exercise 9 ! ! Exercise 6 ! ! Exercise < ! ! Exercise 7 ! ! Exercise F ! Exercise 0 !
HTML Ima$e Ta$s Tag
Descriptin
&img'
3efines an image
&map'
3efines an imageDmap
&area'
3efines a clickable area inside an imageDmap
HTML Lists B /re"ious ?ext apter !
Example o an unordered list and an ordered list in HTML: 2nordered List: •
*tem
•
*tem
•
*tem
•
*tem
Ordered List: 0. +irs +irstt iittem 9. ,eco ,econd nd it item em 6. Tird ird it item em defines t!pe*+submit+> defines a button for submitting submitting form form input to a (rm6handler (rm6handler.. Te formDandler is typically a ser"er page wit a script for processing input data. Te formDandler is specified in te form>s action attribute%
Example orm action=3actionJpa$e+php3 action=3actionJpa$e+php3# #
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.