Style All Paragraphs on Page
javascript:(function()
{
var theParagraphs = document.getElementsByTagName("P");
var i;
for (i = 0; i < theParagraphs.length; i++)
{
theParagraphs[i].style.backgroundColor = "aqua";
theParagraphs[i].style.fontWeight = "bold";
theParagraphs[i].style.color = "black";
}
}());
{
var theParagraphs = document.getElementsByTagName("P");
var i;
for (i = 0; i < theParagraphs.length; i++)
{
theParagraphs[i].style.backgroundColor = "aqua";
theParagraphs[i].style.fontWeight = "bold";
theParagraphs[i].style.color = "black";
}
}());