Lab 3 - en
Lab 3 - en
Programming – Lab 3
Mitrea Dan Alexandru
[email protected]
HTML Forms
HTML forms are used to collect user input.
The <form> element defines an HTML form
Example
The Action Attribute
The action attribute defines the action to be performed when the form is submitted.The common way to
submit a form to a server, is by using a submit button. If the action attribute is omitted, the action is set to
the current page.
Download the zip file from the lab website and complete the
html code. The css code is already written.
Example
HTML Links
In HTML, links are defined with the <a> tag:
The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which
indicates the link's destination.
Example
Edit every page and add to the title the name of file. Also,
create a heading inside the page with the name of the file.
Exercise 1
You have the following page structure. Create a navigation bar
and link properly the web pages (relative path). Every page
must have the navigation list.
Edit every page and add to the title the name of file. Also,
create a heading inside the page with the name of the file.
For example:
You edit contact.html
The title of page must be “Contact”
The heading of page must be “Welcome to Contact Page”
A
B
C
D
E
F
Exercise 2
Work with the next website layout
Exercise 2
a. You have some navigation links on the page. Link them to the right pages (all pages - modify
the source code ).
b. Edit the page login.html like in the picture from the next slide.
c. Edit the page contact.html like in the picture from the next slide.
d. Edit the page about.html. Add two pictures to the page, one paragraph and a list. Use also
strong and em tag.
A
B
C
D
E
F