Create a code that gives the following output, use the CSS to ✓ Solved

1. Create a code that gives the following output, use the CSS to change the color of all <p> and <h1> elements to "green". Group the selectors to minimize code and use the internal CSS.

2. Change the RGB color to RGBA to set the opacity for the background color of <h1> element to “0.3”.

3. Create a code with <h1>, two paragraphs <p> and apply internal CSS where the background color of <h1> element is blue and the transparency/opacity is set to "0.4".

4. Find the mistakes in the following codes based on the output shown:

<!DOCTYPE html> <html> <head> <style> div { float: right; padding: 15px; } .div1 { background: green; } .div2 { background: yellow; } div3 { background: red; } </head> <body> <h2>This is My website</h2> <p>In the output the three boxes will float next to each other.</p> <div class="div1">Box 1</div> <div class="div3">Box 3</div> </body> </html>

Paper For Above Instructions

Creating an effective webpage requires an understanding of HTML and CSS. This paper addresses the core tasks outlined in the assignment while ensuring we incorporate the required changes effectively.

Task 1: Change Color of Elements

To change the color of all <p> and <h1> elements to green using internal CSS, we can create a basic HTML structure. The CSS will group the selectors to minimize code length. Here's the code:

Welcome to my World

This is a Disney Website where you can have the full experience

Have fun and enjoy your time