Coder Social home page Coder Social logo

html_tables_forms_exercise's Introduction

title slug
Exercise: HTML Tables and Forms
/html-tables-forms-exercise

Exercise Repo

Objective

Practice using HTML tables and forms to structure tabular content and take user input on web pages.

Exercise 1

Steps are to be completed within the main element in your index.html file.

  1. Create a table element
  2. Create one table row element and nest it inside of your newly created table element
  3. Create six table heading elements and nest them inside of you newly created table row element
  4. You should have a table heading element for each of the following displayed columns:
    • total servings
    • serving size
    • calories per serving
    • carbs per serving
    • sugars per serving
    • sodium per serving

Exercise 2

Steps are to be completed within the main element in your index.html file.

You will need to search the internet for the total servings, serving size, calories per serving, carbs per serving, sugars per serving, and sodium per serving for each of the following drinks:

  • Coca Cola
  • Pepsi
  • Coca Cola Zero
  • Dr. Pepper
  • Mountain Dew
  1. Create one table row element per drink and nest it inside of your newly created table element
  2. Create six table data elements and nest them inside of you newly created table row element
  3. Each table row (one per drink) should have a table data element it's actual values for each of the following displayed columns:
    • total servings
    • serving size
    • calories per serving
    • carbs per serving
    • sugars per serving
    • sodium per serving

Exercise 3

Steps are to be completed within the main element in your index.html file, below your table.

  1. Create a form element
  2. Create a label and input element for each of the following data points:
    • total servings
    • serving size
    • calories per serving
    • carbs per serving
    • sugars per serving
    • sodium per serving
  3. Each label should have text content displaying what information the input receives, and a for attribute that matches each corresponding input element's id attribute
  4. Create a button element that has a type attribute set to submit, so that when you click the button, it triggers a form submission.

html_tables_forms_exercise's People

Contributors

bryantellius avatar debmiera avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.