Chapter 2 Introduction To HTML
Chapter 2 Introduction To HTML
Introduction to
HTML
What is HTML?
4
HTML (Hypertext Markup Language)
5
HTML (Hypertext Markup Language)
6
HTML (Hypertext Markup Language)
Common features
Tables
Frame
Form
Image map
Character Set
Meta tags
Images, Hyperlink, etc…
7
HTML (Hypertext Markup Language)
File Extensions:
HTML, HTM
Recent recommendation of W3C is XHTML 1.0 combines
the strength of HTML 4 with the power of XML.
XHTML 1.0 is the first major change to HTML since
HTML 4.0 was released in 1997
More info: http://www.w3.org/TR/xhtml1/
8
CSS (Cascading Style Sheet)
9
CSS (Cascading Style Sheet)
Controls format:
Font, color, spacing
Alignment
User override of styles
Aural CSS (non sighted user and voice-browser)
Layers
Layout
User Interface
10
CSS (Cascading Style Sheet)
p,h1,h2 {
margin-top:0px;
margin-bottom:100px;padding:20px 40px 0px 40px;
}
More info:
http://www.w3.org/Style/CSS/
http://www.w3schools.com/css/css_intro.asp
11
CSS (Cascading Style Sheet)
<HTML>
<head>
<title>Hello World</title>
<style type=“text/css”>
p,h1,h2 {
margin-top:0px;
margin-bottom:100px;padding:40px 40px 0px 40px;
}
</style>
</head>
<body bgcolor = “#000000”>
<font color = “#ffffff ”>
<h1>Hello World<h1>
</font>
</body>
</HTML>
12
CSS (Cascading Style Sheet)
13
HTML without CSS
14
HTML Tags
15
Tag Attributes
16
HTML Document Structure
17
We’ll Study…
19
HTML Layout
Other tips:
Keep screen resolution in mind
Use color to define spaces
Align your images
Balance the graphics and text on a page
Think about text width – scan length 7 – 11 words
Centering text is inadvisable
Here is the link: http://webdesign.about.com/od/layout/a/aa062104.htm
20
Tags
<HTML>
<HEAD>
<TITLE> Example </TITLE>
</HEAD>
<BODY BGCOLOR=“black” TEXT=“white”>
<BASEFONT SIZE=7>
This is where you would include the text and images on your
Web page.
</BODY>
</HTML>
Inserting Images
Drop-down Menu
Radio Buttons
Checkboxes
Text Area
Reset Button
Submit Button
Creating Text Boxes
<B>Comments?</B>
<BR>
<TEXTAREA NAME="Comments" ROWS=10
COLS=50 WRAP>
</TEXTAREA>
Creating Radio Buttons
VALUE="Large">Large
<INPUT TYPE="radio" NAME="Size"
VALUE="Medium">Medium
<INPUT TYPE="radio" NAME="Size"
Creating Checkboxes
http://www.w3schools.com/html/html_frames.asp
84