Code a small table that has a single column with three rows into an HTML page. Using CSS, set the width of the table to be 100px, the background colour of the rows to be RGB ddeeff, and the table text centred in each cell; set the padding in the table cells to 5px - see the 'Styling Text' page in the HTML tutorial for details on building and styling tables. Place a single word in each table cell. By means of event handler attributes in the table cell elements, cause the background colour of an individual cell to change to RGB ffeedd when the mouse pointer passes over the cell and then back to RGB ddeeff when the mouse moves out again. Use the onmousover and onmouseout event- handlers to make the changes. Important: while in a style statement a property like background-color is hyphenated, in a JavaScript the same property is written like this: backgroundColor Anything else will result in a script error! One Two Three HINTS: • You will need to give each table cell an ID so that you can access it in your code.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

The main instructions are in the first paragraph of the image. The rest is just additional information. HTML, CSS and JavaScript must be used.

Code a small table that has a single column with three rows into an HTML page. Using CSS, set the width of the table to be 100px, the background colour of the rows to be RGB ddeeff, and the table text centred in each cell; set the
padding in the table cells to 5px - see the 'Styling Text' page in the HTML tutorial for details on building and styling tables. Place a single word in each table cell. By means of event handler attributes in the table cell elements, cause
the background colour of an individual cell to change to RGB ffeedd when the mouse pointer passes over the cell and then back to RGB ddeeff when the mouse moves out again. Use the onmousover and onmouseout event-
handlers to make the changes. Important: while in a style statement a property like background-color is hyphenated, in a JavaScript the same property is written like this:
backgroundColor
Anything else will result in a script error!
One
Two
Three
HINTS:
• You will need to give each table cell an ID so that you can access it in your code.
First paragraph.
Second paragraph.
Third paragraph.
▶
One
Two
Three
0:00 /6:11
Finding the location of the mouse pointer.
.
• Using more than one event-handler in a single element is easy:
<p onmouseover="functionCallHere();" onmouseout="nextFunctionCallHere();">
⠀
• To solve this problem begin with just a single table cell. Get the mouseover part to work first; once this is working get the mouseout part to work. Thereafter you can pretty much copy and paste the first row as the second and
third rows in the table, adjusting the ID's and method calls as you go. You should always try to break all programming problems into smaller pieces that you can solve one at a time.
Below is a tiny video to show you what your code must achieve.
D ⠀
Transcribed Image Text:Code a small table that has a single column with three rows into an HTML page. Using CSS, set the width of the table to be 100px, the background colour of the rows to be RGB ddeeff, and the table text centred in each cell; set the padding in the table cells to 5px - see the 'Styling Text' page in the HTML tutorial for details on building and styling tables. Place a single word in each table cell. By means of event handler attributes in the table cell elements, cause the background colour of an individual cell to change to RGB ffeedd when the mouse pointer passes over the cell and then back to RGB ddeeff when the mouse moves out again. Use the onmousover and onmouseout event- handlers to make the changes. Important: while in a style statement a property like background-color is hyphenated, in a JavaScript the same property is written like this: backgroundColor Anything else will result in a script error! One Two Three HINTS: • You will need to give each table cell an ID so that you can access it in your code. First paragraph. Second paragraph. Third paragraph. ▶ One Two Three 0:00 /6:11 Finding the location of the mouse pointer. . • Using more than one event-handler in a single element is easy: <p onmouseover="functionCallHere();" onmouseout="nextFunctionCallHere();"> ⠀ • To solve this problem begin with just a single table cell. Get the mouseover part to work first; once this is working get the mouseout part to work. Thereafter you can pretty much copy and paste the first row as the second and third rows in the table, adjusting the ID's and method calls as you go. You should always try to break all programming problems into smaller pieces that you can solve one at a time. Below is a tiny video to show you what your code must achieve. D ⠀
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education