M0114002012012407302 - Understanding HTML, XHTML, CSS, JavaScript2
M0114002012012407302 - Understanding HTML, XHTML, CSS, JavaScript2
Agenda
HTML HTML and XHTML HTML 5 CSS JavaScript
Learning Outcomes: LO 1: Explain website programming concepts LO 2: Choose appropriate programming language techniques to deal with the user requirements
HTML
HyperText Markup Language Extensions
.HTM .HTML
Not case-sensitive Client-side programming We can see the source code Starting with < and ending with >
HTML Tags
Opening tag
Start of an HTML command E.g: <html>
Closing tag
Indicates the end of an HTML command E.g: </html>
Empty tag
An HTML command without enclosing any text in the page E.g: <br /> and <img />
HTML 5
HTML5 adds many new features from previous version
E.g: <embed>, <video>, <audio> elements
New features:
New Elements New Attributes Full CSS3 Support Video and Audio
HTML 5
New features (continued):
2D/3D Graphics Local Storage Local SQL Database Web Applications
10
CSS
Cascading Style Sheets Extensions
.CSS
Client-side programming Can combined with HTML tags Create a style for your website
E.g: font style, size, color, padding, align, etc
CSS Example
H1 { font-size: 14pt; font-family: Verdana; } It means, every web pages that have <H1></H1> html tag will change the font style into Verdana font, size 14pt
12
JavaScript
Developed by Netscape Communications Corporation Extensions
.JS
Client-side programming Can combined with HTML tags Make your web more dynamic and interactive
E.g: display messages to the user, validate form, calculations, animate images
13
Summary
The usage of:
HTML HTML & XHTML HTML5 CSS JavaScript
14
Next Session
HTML - Basic
Basic HTML tags Headers Fonts Text alignments Special characters Horizontal Rules Paragraph Line Break
15
Thank you
16