- Problem: Design a basic web page with a title, heading, paragraph, and a link to Google.
- Problem: Create a form with an input field (text type), a checkbox, and a submit button.
- Problem: Design a table with three rows and two columns, representing names and ages.
- Problem: Display an image on a web page and use alt text for the image.
- Problem: Create three links: one to an external website, one to another local HTML file, and one that opens an email client.
- Problem: Write a script that shows an alert saying "Welcome to my website!" when the page is loaded.
- Problem: Create a script that logs the message "This is a console message" to the browser's console.
- Problem: Declare a variable named 'greeting' with the value "Hello, World!". Display this in an alert.
- Problem: Declare two variables with numeric values. Calculate their sum, difference, product, and quotient. Log results to the console.
- Problem: Have a paragraph with some placeholder text in your HTML. Use JavaScript to change this text when a button is clicked.
- Problem: Create a separate JavaScript (.js) file and link it to your HTML. Write a function in this .js file to alert a greeting and call this function from an HTML button.
- Problem: Open your web page in at least three different browsers (e.g., Chrome, Firefox, Safari) and ensure it looks consistent.
- Problem: Intentionally write a JavaScript error in your script (like a reference to an undeclared variable). Open the browser console to understand the error message and then fix it.
- Problem: Write two scripts: one inline in the HTML and one in an external .js file. Log different messages from each to understand the order of execution.
- Problem: Create a button in your HTML. Write JavaScript so that when the button is clicked, the background color of the page changes.