MCQs > IT & Programming > JavaScript > For the following html element, which is the correct method to change the font size to 25px using javascript? < p id = 'foo'>Lorem Ipsum

JavaScript MCQs

For the following html element, which is the correct method to change the font size to 25px using javascript?

< p id = "foo">Lorem Ipsum</ p >

Answer

Correct Answer: document.getElementById("foo").style.fontSize = "25px";

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it