Creating Web Pages with XHTML |
by: J.M. |
Sweetwater High School |
Home Page | | | Page 2 Link | | | Page 3 Link |
Html or Hypertext Markup Language, is the code or language that is used to create Web pages. HTML documents, also known as "Web pages", are used by browsers such as the Internet Explorer or Mozilla Firefox to present text and graphics.
XHTML, or Extensible Hypertext Markup Language, is a cleaner and stricter code of HTML.
Both HTML and XHTML use "tags" to markup the HTML document. These "tags" tell the browser to change the HTML document into a multimedia Web page.
This section explains how to create a Web page by using the following tags.
Tags | Function |
---|---|
Head | Information about a page not displayed in browser |
Title | Appears on the title of the browser |
Body | Specifies what appears in the browser window |
Paragraph: "p" | Starts a paragraph |
Line Break: "br/" | Inserts a line |
Horizontal Ruler: "hr/" | A ruler that separates information on the page |
Ordered List: "ol" | Numbered List |
Unordered List: "ul" | Bulleted list |
Link to other web pages: "a href="url" | Hyper link to connect to other web sites. |
Image: "img src="name of image" | Insert a image. |
What makes the World Wide Web or "Web" so effective is the ability to define and add links from one page to another, and to follow links at the click of a button. A single click can take you right across the world.
First, let us link three major universities in San Diego county.
Images can be used to make your Web pages look better and greatly help to get your message across. The simple way to add an image is using the "img src" tag.
What is difficult is telling the computer where the image is located. You have to tell the computer the Path.
Do the following steps in order to insert an image.
Creating and inserting tables is an effective method of laying out your Web page. This allows you to place information anywhere you like on the Web page. You can better control where everything is placed.
Tag | Attribute | Function: What does it do? |
---|---|---|
"table" | Align | Controls table alignment: Left, Center, Right. |
Bgcolor | Background color for table. | |
Border | Defines width of table border. | |
Cellspacing | Defines space between cells. | |
Cellpadding | Defines space within cells. | |
Cols | Defines number of columns | |
Width | Sets table width relative to window width. | |
Table row: "tr" | Align | Horizontally aligns row: Left, Center, Right. |
Bgcolor | Background color for now. | |
Valign | Vertically aligns row: Left, Center, Right. | |
Table cell: "td" | Align | Horizontally aligns row: Left, Center, Right. |
Bgcolor | Background color for cell. | |
colspan | Merges (combines) two or more column cells. | |
rowspan | Merges (combines) two or more row cells. | |
Valign | Vertically aligns row: Left, Center, Right. |
Red Devils |
|
---|---|
![]() |
![]() |
Cars |
|
![]() |
![]() |
Mickey And Minnie |
|
![]() |
![]() |
First Web Page Project
Web Site Designed by: J.M.
Last modified: 10 August 2010