Javascript Help

Inline and Block

Study the HTML, CSS and JavaScript code in Listings 2.2, 2.2.1, and 2.2.2 in your textbook.  

Note:  You will need this information to complete your homework.

In the HTML Code add two more buttons that will allow the user to view the code in the target division to be viewed as inline and block.

You will need to create CSS code for allowing inline and block display options.

Here is the inline and block CSS code:


display: inline;



.block {

display: block;


You will need to create two more JavaScript functions for the inline and block.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *