0% found this document useful (0 votes)
11 views5 pages

HTML5 Assignments for Web Development

The document outlines five HTML5 assignments focusing on creating web pages for various applications, including a stock trading app, an event management company, an online video platform, and agricultural and cricket statistics. Each assignment includes specific requirements such as form validations, layout designs, and optional styling. Students are instructed to test their solutions across multiple browsers to ensure compatibility and proper rendering.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views5 pages

HTML5 Assignments for Web Development

The document outlines five HTML5 assignments focusing on creating web pages for various applications, including a stock trading app, an event management company, an online video platform, and agricultural and cricket statistics. Each assignment includes specific requirements such as form validations, layout designs, and optional styling. Students are instructed to test their solutions across multiple browsers to ensure compatibility and proper rendering.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HTML 5 – Assignments

General instructions:
Please test the solutions in atleast 3 browsers (Chrome, IE &
Firefox) to see the browser level support for features and also
experience browser specific rendering and messages.

1. Assignment 1:

Create a HTML5 web page which is used for a Stock Trading


App which looks like below screen shot.

Requirements:
a. The stock ticker symbol and price as below should be
displayed in a table format
b. The Stock trading form below should allow the user to enter
the TICKER symbol and the quantity of shares that the user
wishes to purchase.
c. The shares/stocks can be purchased only in block of 10s (ie
10 shares, 20 shares, 30 shares…..). Validate that the
‘quantity’ input can only take numbers as its value and min
is 10 and max is 100 and can be bought only in blocks of 10s
as discussed earlier.
d. (optional) You can apply styling attributes to this web page
through CSS
2. Assignment 2:

Create a Web Page for an Event Management Company "Xena


Events" which is conducting a hot balloon riding event from
Feb 28th 2017 onwards for 5 days.

The Web Page should have the below:

1. Heading with appropriate name and logo.


2. A form where people can register for this event with the
below details:
a. Name : should allow only alphabets.
b. Age : should be equal to or greater than 18.
c. Email ID : should be a valid email id format
d. City: On clicking on the text box, Should display a list that
contains city names as "Rajkot", "Vizag" and "Bangalore" but
whatever the user enters also should be shown in the list

Note: All entries are "mandatory".

3. Assignment – 3

1. Create a Web Page with two horizontal sections.

2. The top horizontal section should have the heading


"Awesome Online videos" along with an image acting as a logo.

3. The bottom horizontal section should have a view area to


play the video of the week.

4. Under the view area, there should be only 2 buttons "play"


and "pause" which the user can use to play or pause the video
of the week.

5. (Optional) both the sections should also give the option to


the user to select the color which will be used as the
background color for that section.

4. Assignment – 4
On the Web Page of Agricultural Statistical Department of GOI,
we need to show the line chart of the yield of Bajra from 2001
to 2007.

The values are as follows (in lakh tonnes)

2001 : 281
2002 : 277
2003 : 275
2004 : 457
2005 : 200
2006 : 280
2007 : 150

a. Use Canvas and related methods to draw the line chart.


b. You are free to use any styles/colors of your choice

5. Assignment- 5

For the BCCI (Board of Control for Cricket in India) web page,
we need to show a line chart for the batting statistics of the
Indian team for a T20 cricket match.

The details are as follows:

Over Runs
5 40
10 75
15 140
20 210

c. Use Canvas and related methods to draw the line chart.


d. You are free to use any styles/colors of your choice

Common questions

Powered by AI

The accuracy of data representation in HTML5 'canvas' can be achieved by carefully mapping data points to pixels, ensuring proportional scaling and alignment with the axes. Labels and grid lines aid in clarity, providing reference points for easier interpretation. Using contrasting colors for lines and backgrounds improves readability. Annotations can highlight critical data points, such as key overs in cricket statistics, drawing viewers' focus. Additionally, testing across devices ensures the chart remains clear and accurate in different display environments .

Consistency across browsers ensures that HTML5 features function and appear similarly for all users, regardless of which browser they use. To achieve this, developers need to test web applications in at least three major browsers like Chrome, IE, and Firefox. Browser compatibility impacts accessibility and user satisfaction, as rendering differences can lead to application malfunction or a suboptimal experience. Using fallbacks and polyfills can address discrepancies between older and modern browser versions, thus maintaining the intended functionality and design .

CSS can significantly improve the aesthetic appeal and readability of a hot balloon event registration page. Elements such as fonts, colors, and spacing can be styled to make the form more engaging and easier to navigate. Logos and headers can be styled to draw attention and enhance brand recognition. Input fields can be styled to align with accessibility standards, improving usability for all users. Additionally, visual feedback like hover states and focus outlines can improve users’ interaction and reduce errors .

Using Canvas to render a line chart provides a flexible and powerful way to visually represent yield statistics over time. The Canvas API allows for direct drawing of graphic components, which is optimal for custom data visualization like a line chart showing Bajra yield from 2001-2007. The benefits include better visual communication of trends, such as the spike in yield in 2004, and support for style customization for colors and line types, catering to user needs and aesthetic preferences. Additionally, Canvas is supported across modern browsers, ensuring wide accessibility .

Creating an interactive video section involves embedding the video using the HTML5 'video' element. This element natively supports playback controls, but for a customized interface, JavaScript can be used to control the play and pause functionalities. Two buttons labeled 'play' and 'pause' are added underneath the video area. Event listeners are attached to these buttons to call methods such as 'play()' and 'pause()' on the video element. This setup allows for better user interaction, making the web page more engaging and supportive of user-controlled video consumption .

The 'step' attribute in an HTML5 number input specifies increment steps for numbers, ensuring users can only input values that meet a specific interval. In a stock trading application, setting this attribute to '10' allows the user to input quantities only in multiples of 10, such as 10, 20, or 30. This reduces input errors and guides users to make valid entries, aligning with the application's purchasing rules and reducing the need for additional validation scripts .

The HTML5 stock trading web page should use form elements to gather the stock ticker symbol and the quantity of shares. The input for the quantity needs validation to ensure it's numerical, with a minimum value of 10 and a maximum value of 100. Moreover, it should only accept numbers in blocks of 10, such as 10, 20, and 30 shares. This involves using HTML5 attributes like 'min', 'max', 'step', and input type 'number' to enforce these rules. Testing in multiple browsers like Chrome, IE, and Firefox is essential for ensuring consistent behavior across platforms .

Allowing custom background color selection enhances user engagement by enabling personalization, which can increase user satisfaction and time spent on the site. It provides a sense of ownership and caters to individual preferences. However, it can challenge aesthetic consistency across the site, potentially leading to design clashes if not properly managed. Implementing a limited, curated palette and harmonizing with other design elements can mitigate these implications, maintaining a cohesive and visually appealing user interface .

HTML5 provides native attributes for form validation, such as 'pattern' for the name to allow only alphabets, 'min' for age to ensure it's 18 or above, and 'type="email"' for validating email format. These attributes promote responsiveness as they provide instant feedback without requiring a page reload, enhancing the user experience. Accessibility considerations include ensuring the form labels are clear and the inputs are easily navigable via keyboard. Additionally, placeholder texts and logical tab indexing improve usability for assistive technologies .

Using a list with dynamic content allows users to select from predefined options (e.g., 'Rajkot', 'Vizag', 'Bangalore') while still being able to enter custom values. This hybrid approach enhances usability by combining flexibility with guidance. Benefits include improved user experience as it supports common inputs while catering to unique entries. Challenges involve ensuring the list is dynamically updated to reflect user input and managing data validation to check custom entries against existing data for accuracy and relevance .

You might also like