Documente Academic
Documente Profesional
Documente Cultură
Publishing and interacting with Web pages is the most popular way users communicate with the
internet.
The World Wide Web (www) consists of a giant collection of documents or pages stored on
computers around the world.
Each page on the web has its own unique address called a URL (Uniform Resource Locator). An
example of what a URL looks is:
http://www.example.com/index.html
WHAT IS A BROWSER
A Web browser is software that allows you to view and interact with web pages.
INTRODUCTION TO HTML
TAGS
<HTML> </HTML> appears at the beginning and end of the document- it identifies the
text as HTML code.
<HEAD> contains information that does not appear in the browser window such as
metadata.
<TITLE>your title</TITLE>
</HEAD>
<BODY>actual content of your web page
</BODY>
</HTML>
WHAT IS METADATA
Metadata is data about other data. It is used to facilitate the understanding, usage, and
management of data both by humans and computers.
1. Keywords
2. Descriptive Text (page description)
3. Author
George Banis
4. Copyright
1. Click between <HEAD> and </HEAD>tags and press Enter to start a new line.
2. Type<META NAME=” My Name”> replacing My name with your name.
The paragraph tag <P> is used to start new paragraphs in a HTML document.
Paragraphs by default are left aligned. You can choose a different alignment using the align tags.
You can use the line break tag, <BR> to control where your text ends or breaks. Most Web
browsers wrap text automatically so line breaks are important.
Line breaks can also be used to add blank lines between paragraphs.
UNDERSTANDING HTML
HTML STANDARDS
George Banis
The World Wide Web consortium is the primary group guiding the evolution of the HTML
language.
HTML Editors- such as Adobe, Dreamweaver, and Microsoft Expression are dedicated
programs for writing HTML code and managing Web pages.
Word Processing Programs- can be used to create code and text for a web page.
TAGS
1. Determine how page content is organized and formatted consist of words or abbreviations
surrounded by angle brackets, <>.
2. Can be typed in upper or lowercase.
3. Typing tag names in uppercase to help distinguish code from text.
4. Tags identify different parts of your HTML document. The <BODY> and </BODY>
tags indicate that the text between the two tags is the body content.
5. Frequently tags are written as opening tags and closing tags. Such as the paragraph tags
(<P> and </P>).
1. <OL> above the text tells the computer that you want to turn your text into a numbered
list.
2. Each item in the list is started with <LI> and ended with </LI>(capital L capital I)
3. Repeat step two for each item in the list.
Type TYPE=”?” within the <OL> tag, replacing the ? with a number style code:
A. A, B, C
a. a, b, c
I. I, II, III
i. i, ii, iii
1. 1, 2, 3
The numbered list will be displayed in the style that you indicate within the <OL> tag.
George Banis
Bulleted lists help to set a list of items apart from the rest of the document. By default a bulleted
list will appear as solid circles. If you want to choose another bullet style, you must add a TYPE
attribute to the <UL> tag.
Type TYPE=”?” within the <UL> tag, replacing the ? with a bullet style code such as:
circle, disc, or square.
FORMATTING TEXT
1. BOLD TEXT
a. Type <B> in front of text you want to bold.
b. Type </B> at end of text to be bolded.
2. ITALICIZE TEXT
a. Type <I> in front of text.
b. Type </I> at the end of text.
3. UNDERLINE TEXT
a. Type <U> in front of text to be underlined.
b. Type </U> at end of text being underlined.
4. CHANGE FONTS
a. Use Arial, Helvetica, san serif fonts
b. If first font you use is not available, the computer will use the second choice.
c. San Serif, Serif and Monospace = commonly supported by font families.
d. Type <FONT FACE=”?”> in front of text you want to change.
e. Type </FONT> at end of text being changed.
5. CHANGE FONT SIZE
a. Type <FONT SIZE=”?”> in front of text to be changed.
b. Type </FONT> at end of text being changed.
c. Font size goes from 1 to 7. Seven being the LARGEST.
6. CHANGE FONT COLOR
a. Type <FONT COLOR=”?”> before text.
b. Type </FONT> after text.
George Banis
c. SPECIFY COLOR by
i. Hexadecimal value
ii. Some common colors use color’s same, such as red.
d. To change color of ALL the text in a Document.
i. Within <BODY> tag type TEXT=”?” with the hexadecimal value of the
color you desire and all text will appear in the new color.
7. ADJUST MARGINS
a. Within <BODY> tag type MARGIN=”?”
b. Replace ? with margin you want to change such as:
i. LEFTMARGIN
ii. RIGHTMARGIN
iii. TOPMARGIN
iv. BOTTOMMARGIN
v. MARGINWIDTH
c. Can set margin for one or all four margins.
d. Replace ? with the amount of indentation in PIXELS.
8. SET A BACKGROUND PAGE COLOR
a. Within the <BODY> tag, type BGCOLOR=”?”
HORIZONTAL LINE
TO INSERT A PHOTOGRAPH
1. Type <IMG SRC=”?”>
2. Replace ? with the full path to the file you want to insert.
Example: <IMG SRC=”mt_everest.jpg”>
CENTER AN IMAGE
1. Click before the <IMG> tag and type <DIV>
2. Click inside the <DIV> tag and type ALIGN=”center”
3. Click after the closing bracket of the <IMG> tag and type </DIV>
TABLE STRUCTURE
Tables use columns and rows to help you to organize and present large amounts of data or
control the page layout.
Tables can be used to organize the overall structure of a Web page.
Example: A two-column table can be used to organize a list of links in one column and
main text in another.
Tables are rectangles containing rows and columns. Cells are the places where rows and
columns intersect. Cells can hold text, images, and other content.
TO ADD A TABLE
1. Type <TABLE> where you want to insert a table
2. Type <TR> to start the first row in the table – type each row tag on a new line
3. Type <TD> for the first cell you want to create
4. Type the cell data
5. Type <TD> to complete the cell
6. Repeat steps 3 to 5 to add cells
7. Type <TR> at the end of the first row
8. Continue adding rows and cell data as needed
9. Type </TABLE> at the end of the table data
If you want your first row to include bold column labels you can use the <TH> tag instead of
<TD>.
To make it easier to distinguish between cells, you will place each cell on a new line in your
html document.
Cell Padding is adding space between the border and the contents of a cell.