0% found this document useful (0 votes)
71 views

Basic Webpage Design: Understanding Web Technologies and Applications

The document provides an introduction to basic webpage design and HTML coding. It discusses: - The basics of the Internet and how HTML allows for formatting of web documents. - The four basic tags needed for any web page: <html>, <head>, <title>, and <body>. - Common text formatting tags like <b>, <i>, <u>, as well as headings <h1>-<h6> and paragraphs <p>. - How to control colors and fonts using the <font> tag attributes of face, size, and color. - The <body> tag and how it defines the content area of the page and can set formatting for the entire page.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Basic Webpage Design: Understanding Web Technologies and Applications

The document provides an introduction to basic webpage design and HTML coding. It discusses: - The basics of the Internet and how HTML allows for formatting of web documents. - The four basic tags needed for any web page: <html>, <head>, <title>, and <body>. - Common text formatting tags like <b>, <i>, <u>, as well as headings <h1>-<h6> and paragraphs <p>. - How to control colors and fonts using the <font> tag attributes of face, size, and color. - The <body> tag and how it defines the content area of the page and can set formatting for the entire page.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 40

Basic Webpage Design

Understanding Web
Technologies and Applications
Objectives
• To know the basics of the Internet and HTML
• To identify the HTML Coding Standards
• To learn the Basic Web Page Tags
• Formatting tags to Your Page
• To identify the tools in developing web pages
• Definition of terms
Let us review

• In the simplest sense, the Internet is a


collection of inter-connected computers
(servers) over shared lines.

• Servers are just like the computers you use at


home and work, but more powerful.

• The Internet became “browse-able” in the


1990s with the creation of the HTTP protocol
and creation of HTML.
Getting Started
• We will be using MS Notepad to write our
HTML.

• Pages will be saved to your floppy disk.

• Pages will be viewed as they are created in


your browser.

• We will use this overhead presentation as well


as handouts and the yahoo group.
Basic HTML
HTTP – HyperText Transfer Protocol
Method by which a computer jumps from one page to
another by clicking on links.
HTML – HyperText Markup Language

Markup language that allows for the formatting of


Internet Documents.
Plain Text Language
Universal Compatibility
Most-recent version is HTML 4.0
Basic HTML
Turns Text Like This
My name is Jerald.
What is your name?
Formatted Like This
<html>
<head>
<title>Hello world</title>
</head>
<body>
<b>My name is Jerald.</b><br>
<center><i>What is your name?
</i></center>
</body>
</html>
INTO THIS…
Basic HTML Output
Activity 1: Basic HTML
Create your own page: Follow the instructions.

1. Open Notepad
- Click Start> Programs> Accessories>
Notepad
2. In Notepad, type the following;
<html>
<head>
<title>Hello World</title>
</head>
<body>
My name is __________.
</body>
</html>
3. Save the file as lastname_Act1.html
HTML Coding Standards

HTML markup takes the form of TAGS


<tag>Marked up text</tag>

Some of these tags have attributes


<tag attribute=“value”>Text</tag>

Some tags have opening and closing elements,


while some have just opening
<center><img src=“image.gif”></center>
HTML Coding Standards

HTML markup takes the form of TAGS


<tag>Marked up text</tag>

Some of these tags have attributes


<tag attribute=“value”>Text</tag>

Some tags have opening and closing elements,


while some have just opening
<center><img src=“image.gif”></center>
Basic Web Page Tags

Each web page has four basic tag sets:


Tag Closing Description
<html> </html> Defines the area within as an HTML page.

<head> </head> Contains information about the document.

<title> </title> Identifies the title of the page, contained within the
<head> tag.
<body> </body> Surrounds the text of the page.
Basic Web Page Tags

<html>
<head>
<title>Page Title Goes
Here</title>
</head>

<body>
Page content goes here.
</body>

</html>
Basic Web Page Tags

Adding text is as simple as typing text between the


<body> tags, except:

- Browsers ignore multiple spaces, spacing only once


unless told otherwise.

- Browsers do not know when to start new paragraphs


or break at the end of lines.

- Browsers do not know how you wish to format text.


lastname_Act2.htm : Basic Web Page Tags
Basic Web Page Tags: Output
Basic Web Page Tags

Paragraph
• The <p> tag tells the browser to insert a new
paragraph.
– The closing tag for this (</p>) is optional, but
recommended.
• The <p> tag has one attribute, ‘align’ that
controls the on-page alignment of your
paragraph.
– Options are left, center, right, justify
– This attribute has been Deprecated in HTML 4.0.
Basic Web Page Tags
Line Breaks

To insert a line break, use the <br> tag. Note, that this tag has no
closing tag.

Ex. ‘Hello<br>World’:
Hello
World
Basic Web Page Tags
How <p> and <br> Differ

The <br> tag forces a one-line break, while the <p> tag
creates a new paragraph with a two-line break.

The <p> tag has an align element (left, center,


right, justify) while no such attribute exists in the
<br> tag.
Basic Web Page Tags

Text Spacing

Although HTML ignores extra spacing, there is a


‘special character’ in HTML that gives you that
functionality: &nbsp;
This is the non-breaking space character, and adds
the ability to have extra spaces to your page.
Ex.: ‘There are 3 spaces between this and this.’:
<p>There are 3 spaces
between &nbsp;&nbsp;and this.</p>
lastname_Act3: Basic Web Page Tags
Basic Web Page Tags
Use of colors

In HTML, we can control the color of our


pages, our fonts, our elements, and more.
There are 216 colors in the color-safe
palette. Colors are referenced using their
RGB (Red, Green, Blue) color code or their
name.
Basic Web Page Tags
Basic web colors
Basic Web Page Tags
The <body> tag is required for all HTML
documents and defines the area where the
document’s content is contained.

You can also use the <body> tag to define


some of the formatting for the entire page.

Attributes taken by the <body> tag include


bgcolor, background, text, link,
vlink, alink, as well as margins.
Basic Web Page Tags

Attributes
bgcolor – the page’s background color.
background – the page’s background image.
text – the default color of all the page’s text.
link – the default color for all links.
alink – the default color for all default links.
vlink – the default color for all visited links.
Basic Web Page Tags

<body> Tag – Margins

Can be controlled for newer browsers, but each browser


has its own tags.
Internet Explorer
topmargin – controls the top margin
leftmargin – controls the left margin
Netscape Navigator
marginheight – controls the top margin
marginwidth – controls the left margin
All sizes are in pixels, or 1x1 dots on your screen.
This attribute should be used sparingly.
Basic Web Page Tags
Basic Web Page Tags
Basic Web Page Tags
Headings
• Headings help you better structure and format
your documents.
• Heading tags are <h1> to <h6>.
– Each has an opening and closing tag
– <h1> has the largest font, and <h6> the smallest.
– Like <p> has an align attribute, which has been
deprecated in HTML 4.0.
– <h4> - <h6> are actually smaller than your normal
text font and should be used sparingly.
Basic Web Page Tags
Headings
Basic Web Page Tags
Basic Text Formatting Tags
Tag Closing Description
<b> </b> Creates bold text.

<i> </i> Creates italicized text.

<u> </u> Underlines text (use with caution).

<big> </big> Big text. Can be overlapped (a bigger big).

<small> </small> text. Can be overlapped


Small
(a smaller small).
lastname_Act4: Basic Web Page Tags
Basic Text Formatting Tags - Code
Basic Web Page Tags: Output
Basic Text Formatting Tags - Output
Basic Web Page Tags
THE <FONT> TAG
• The most-used method to change the look of text
on web sites is through the use of the <font>
tag.
• The <font> tag has three attributes:
– face – controls the font type
– size – controls the font size (range from 1 – 7)
– color – controls the color
• The use of <font> is deprecated in favor of style
sheets in HTML 4.
Basic Web Page Tags
THE <FONT> TAG
• Face
– This attribute determines the type face of the font
(what the font looks like). The three most common font
faces are:
• Arial
• Times New Roman
• Courier
– The font selected must exist on the
user’s computer or else it will
not display correctly.
Basic Web Page Tags
THE <FONT> TAG
• Size
– There are seven basic sizes ranging from 1 to 7
– Font Size 1 = 8 pts
– Font Size 2 = 10 pts
– Font Size 3 = 12 pts
– Font Size 4 = 14 pts
– Font Size 5 = 18 pts
–Font Size 6 = 24 pts
–Font Size 7 = 36 pts
Basic Web Page Tags
THE <FONT> TAG
• Color
– There are two ways to assign color using the color
attribute, with the name or RGB (red, green, blue)
hexadecimal value:
• Red #FF0000
• Green #00FF00
• Blue #0000FF
• Black #000000
• White #FFFFFF
– For a list of colors and their numerical equivalent, see
http://www.experimentalmedia.com/class/colors.html
lastname_Act5: Basic Web Page Tags
THE <FONT> TAG – Sample Code
Basic Web Page Tags: Output
THE <FONT> TAG – Sample Output
Summary
• Three essential codes are the HTML,
HEAD, and BODY.
• In HTML,colors are referenced using
their RGB (Red, Green, Blue) color code
or their name.
• In formatting your HTML document, you
can use different types of formatting.
Some examples of formatting tags are
<font>, <h1>-<h6>, <b>, <br> and <p>.
• Body tag is where you put all the content
that will be displayed on your webpage.
Quiz
End of Lesson

You might also like