Professional Documents
Culture Documents
9 Lab
9 Lab
Creating Web sites is implemented withusing the markup language hyper text
HTML documents .
About HTML
HTML is the Original publishing language of
the World Wide Web.
Allother website building platforms are
based on HTML.
Ifyou want to create a website with XHTML,
ASP or PHP, you must first learn the basics of
creating web pages with HTML code.
Creating an HTML Page
A web page is created using a language called,
Hypertext Markup Language, better known as
HTML Code. You can write your own coding within
a plain text editor, such as Note Pad, or use an
HTML editor
<head> - Contains information about the page such as the TITLE, META tags
for proper Search Engine indexing, STYLE tags, which determine the page
layout, and JavaScript coding for special effects.
<title> - The TITLE of your page. This will be visible in the title bar of the
viewers’ browser.
<body> - This is where you will begin writing your document and placing your
HTML codes.
8
Table of primary colors
CSS (Cascading Style Sheet)
User Interface
11
CSS (Cascading Style Sheet)
Client’s
browser dependable
Example code:
p,h1,h2 {
margin-top:0px;
margin-bottom:100px;padding:20px 40px 0px
40px;
}
More info:
http://www.w3.org/Style/CSS/ 12
http://www.w3schools.com/css/css_intro.asp
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> 13
</HTML>
CSS (Cascading Style Sheet)
14
HTML without CSS
15
Basic HTML Document Code Structure
<html>
<head>
<title>Your Page Title</title>
</head>
<body>
This area will contain everything that will be visible through a web browser, such
as text and graphics. All of the information will be HTML coded.
For a complete list of HTML codes, tags and examples, see the HTML chart
below.
</body>
</html>
Task
Create web-page “About myself”