02. jQuery Element πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ“– Create HTML Elements with jQuery

Implement the following user story:

  • As a user, I want to be greeted with a quote by an author when I open the page.

Acceptance Criteria

  • It’s done when the page dynamically displays a quote by an author and the author’s name on load.

πŸ“ Notes

Refer to the following documentation:

jQuery API documentation

Assets

The following image demonstrates the web application’s appearance and functionality:

A quote appears in blue text on a black background, with the author's name in white text on the next line.


πŸ’‘ Hints

  • Don’t forget to add jQuery to index.html before you begin.

  • Only use jQuery methods! Do NOT use any of the following vanilla JavaScript methods: createElement, textContent, or appendChild.

πŸ† Bonus

If you have completed the activity and want to further your knowledge, work through the following challenge:

  • How can we add event listeners using jQuery?

Use Google or another search engine to answer this question.


βœ… Solutions

Solutions Click Here