Welcome to your HTML Set – 4 1. which is the correct format to set the border width for (top=10px,bottom=5px,left=20px and right=1px) border-width:10px 1px 5px 20px; border-width:10px 20px 5px 1px; border-width:5px 20px 10px 1px; border-width:10px 5px 20px 1px; None 2. What is the correct CSS syntax for making all the elements bold? p {text-size:bold;} p {font-weight:bold;} None 3. Which is Not a Text Editor Software MS Paint Notepad Notepad++ Wordpad None 4. How can you add a comment in a JavaScript? //This is a comment 'This is a comment #This is a comment None 5. What is the correct syntax for referring to an external script called "data.js"? None 6. How do you group selectors? Separate each selector with a plus sign Separate each selector with a comma Separate each selector with a space All of These None 7. What is the correct way to write a JavaScript array? var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue") var colors = (1:"red", 2:"green", 3:"blue") var colors = "red", "green", "blue" var colors = ["red", "green", "blue"] None 8. How to write an IF statement for executing some code if "i" is NOT equal to 5? if (i 5) if (i != 5) if i =! 5 then if i 5 None 9. How do you declare a JavaScript variable? variable carName; var carName; vari carName; dim carName; None 10. Inside which HTML element do we put the JavaScript? None 11. How do you write "Hello World" in an alert box? alert("Hello World"); msgBox("Hello World"); alertBox("Hello World"); msg("Hello World"); None 12. How do you display hyperlinks without an underline? a {decoration:no-underline;} a {underline:none;} a {text-decoration:no-underline;} a {text-decoration:none;} None 13. How do you create a function in JavaScript? function:myFunction() function myFunction() function = myFunction() function.myFunction() None 14. Which is Not a Text Editor Software MS Paint Notepad Notepad++ Wordpad None 15. How do you declare a JavaScript variable? variable carName; var carName; vari carName; dim carName; None 16. How do you make each word in a text start with a capital letter? You can't do that with CSS text-style:capitalize text-transform:capitalize transform:capitalize None 17. How to write an IF statement in JavaScript? if (i == 5) if i == 5 then if i = 5 if i = 5 then None 18. Which text Editor is in-built in Windows operating System Notepad++ Paint Notepad All of These None 19. Which operator is used to assign a value to a variable? = x == * None 20. How do you round the number 7.25, to the nearest integer? round(7.25) Math.rnd(7.25) rnd(7.25) Math.round(7.25) None 21. How do you make the text bold using CSS? style:bold; font:bold; font-weight:bold; text:bold; None 22. How do you select all p elements inside a div element? div p div.p div + p div ~ p None 23. How do you find the number with the highest value of x and y? ceil(x, y) Math.max(x, y) top(x, y) Math.ceil(x, y) None 24. What is the default value of the position property? absolute static fixed relative None 25. Which property is used to change the font of an element? font-color font-family font-style font-weight None Share this:TweetEmailTelegramPrintWhatsAppLike this:Like Loading... Related Posts (You May Also Read):