HTML Projects
HTML Projects
Files used:
• index.html
• contact.html
• style.css
index.html: First of all it has an header tag to display the name of the
company which is “Online FoodShop”. The navigation bar contains tabs of
“Home”, “About”, “Menu” and “ContactUs”. The navigation bar also consists
of the logo of the company followed by the background image with some
more details of the “Online FoodShop” along with the featured products.
contact.html: We have used input tags to enter the type of “query”, “name”,
“email-id”, “phone number” and “explanation” of the query. We have also
used radio buttons to enquire about the customer’s membership for “online
FoodShop “. The form also provides “Submit” and “Reset” buttons.
style.css: This is the stylesheet block which gives us the proper look of the
webpage.
• Header styling: It consists of two “head” tags. We have used font-
style “Ubuntu” to style the header and we also used proper colors
to make some text look attractive.
• Navigation bar styling: It basically consists of logo styling and
content styling. First of all we have considered the navigation bar
as a flexbox and assigned the flex-direction to “column”. We have
centered the logo image by display:block. We have used
the margin:auto property to center the image. Then we considered
the content of the navigation bar as a flexbox and then we have
positioned it properly.
• Background image styling: We used before pseudo selectors to
set the respective background images.
Task 3:- Build a Survey Form using HTML
and CSS
Prerequisite: Basics concepts of HTML and CSS like tags, ID, color, margin,
padding, font, text field, checkbox, radio button, etc.
Approach:
• The <form> element is used to create an HTML form for user input.
• Inside the form element, provide different options to the user
like name, email, age, etc. In HTML, we have different input
elements for different tasks. So, we are providing respective input
types according to the question (email for taking email input, text-
area for taking a large message, the name for taking name input,
etc.).
• We have also used the radio-button (let a user selection of the
provided choices.), check-button (let a user select zero or more
options of the provided choices), and submit-button (the button for
submitting the form data to a form-handler).