Comp Q2
Comp Q2
<a href="http://www.google.com">Google
LINKS Home</a>
(Hypelink)
• href: attribute
• Link • "http://www.google.com": the attribute
- Text value
- Images
- Buttons • Google Home: link text (it is visible and
clickable to the user)
• The essence of the World Wide Web
How to link to another page of a website?
Anchor (a) <a href="http://www.google.com">Google
- The anchor tag (<a>) defines a Home</a>
hyperlink used to link from one page,
section or website to another.
- 2-sided tag • href: attribute
• "http://www.google.com": the attribute
Syntax: <a href="url"> link text</a> value
• Google Home: link text (it is visible and
clickable to the user)
1. Creating a goal for your website After settling on your site's particular audience,
think of incentives which will motivate them to
The purpose of the website should be clear to come back and linger in your site. Here are some
you. What do you want to achieve by creating examples:
the website? Is your goal to impress? To make a
profit out of it? To amuse yourself? Write these • For a website about clothing: to be up to
goals down to keep you focused on what you date about current trends in fashion.
want. Reading these written goals comes in • For a social site: to enable the users to
handy in those times when you get confused and meet cute and smart people.
overwhelmed.
Take these things into account when deciding
2. Identifying your target audience what functionalities and website sections will be
used; more about this in the next section.
More often than not, you will be creating a
website for an audience, which is the group of It is easy to get lost when choosing what content
people who are expected to visit your website, to include in your website, as there are many
such as your friends, if it is a personal website, things you can do. Keeping your goals and target
or potential customers if it is a commercial audience in mind will help you narrow down
website. You need to think like your audience to your choices significantly.
identify their needs. Think of something that
would make them want to visit your website 4. Visualizing the page flow.
again and stay longer. To help envision the
possible audience of your site, ask yourself the For this step, imagine that you are the user of the
following: system. Think of how you would mora from
page to page, and think of how the system will
audience characteristics - what will be the react to every action. An example of page flow
gender, the age range, the kind of work (or is:
school) of the people whom you want to visit
your website? Also, take into consideration their
habits, cultural affiliation and interests. If the
members of your audience are high school
students, for example, it isn't likely they'll be
interested in nursing homes for the aged.
Guestbook Section
A guestbook is a webpage where your site's
visitors can enter in their comments about your
site or yourself. You can create the guestbook
section yourself or avail of a free guestbook
service. The good thing about creating the
guestbook yourself is that you can make the
design pattern of the guestbook consistent with
the rest of your webpages.
On the other hand, if you avail of a free
guestbook service, this will save you from Explanation:
creating a program to save comments received, • First Name==uses the default size
but you have no control over data storage and which is 20(size of the text box)
retrieval. For instance, after you have registered • <br>== to bring down the Second line
for a free guestbook at Last Name)
http://www.bravenet.com/
• Last Name== formatted as bold (< b>
webtools/guestbook/index.php, the content
and the text box size is 50
administrators will notify you every time a
visitor drops in and leaves a message in your • M.I.== on the same line with the Last
guestbook. This way, you can reject or approve Name because we did not insert the
whatever the visitor said and even reply to that <br> tag
person. However, when a span of time lapses • To set the maximum number of
without anybody leaving a message in your characters, use the maxlength
guestbook, the host will close your guestbook
and you will have no way of retrieving your Ex: First Name: <input type="text"
visitors' entries. maxlength="10" >
INPUT TAG
<input> tag
• input control that presents users with an
interactive control for entering data.
• represents text fields, checkboxes, dropdowns,
buttons, and other inputs C. Radio
• It tells where a user can enter data. - Allows a user to select ONE of a limited
• The input tag is empty or one-sided, meaning number of choices.
there is no closing tag. - SYNTAX: <input type=“radio”>
Syntax: <input type="value">
A. Text
D. Password J. Email
- Used to create a field that conceals the - A field for an email address
entered text. - SYNTAX: <input type=“email”>
- SYNTAX: <input type=“password”>
K. Button
- A clickable button.
- SYNTAX: <input type=“button”>
E. File
- A file-select field and a “Browse” button
(for file uploads).
- SYNTAX: <input type=“file”> W6-7
MULTI-MEDIA ELEMENTS
Warning!
Copyright issues:
• You own the image.
F. Date • You have received explicit, written permission
- A date and time control. from the image owner.
- Users can enter their birth day, month • You have ample proof that the image is in the
and year only. public domain.
- SYNTAX: <input type=“date”>
<img>
• The <img> tag is empty-meaning-it does
not have a closing tag, and it contains
attributes only.
To insert image
<img>
• One-sided
G. Datetime-local • attributes :
- Allows users to input the date, and time - src
with timezone. - alt
- SYNTAX: <input type=“datetime-
local”> src- (source)
• Specifies the path(URL) to the image.
H. Number • The sre attribute tells the browser where
- Required to create a field for enterting a to find the image.
numeric value.
- SYNTAX: <inout type=“number”> To insert image
src- (source) Specifies the path(URL) to the
I. Month image. The src attribute tells the browser where
- Defines month and year control. to find the image.
- SYNTAX: <input type=“month”>
alt (alternate) • Use the HTML <img> element to define
• Specifies an alternate text for the image an image.
• Meaningful substitute for the image. • Use the HTML <video> element to
define a video.
To modify image • Use the HTML <audio> element to
• width- specifies the width of the image define an audio.
• height- sets the height of the image • Use the HTML src attribute to define
• border- sets the border thickness of the the URL of the image.
image • Use the HTML alt attribute to define an
alternate text for an image, if it cannot
To insert image as background be displayed.
<body ="Y:backgroundl • Use the HTML width and height
HSLab3\Hslab3Shared\mam attributes to specify the size of the
ann(2d grading) |TOONI image or the video.
google.png">
Example.
<img src=Y:\HSLab3|Hslab3Shared\mam
ann(2d grading)\TOONIcartoon4.gif" alt="my
image">
To insert video
‹video controls>
<source Y:\HSLab31
Hslab3Shared\mam ann(2nd
grading) \TOONI ITOONIvideo-
CAT.mp4">
To insert audio
<audio controls>
<source src=" Y:|HSLab3)
Hslab3Shared\mam ann(2nd
grading) \TOONI ITOON
audioSAMPLE.mp3">