I\'m using a javascript snippet in order for visitors to my site to increase the font size on all paragraphs using the following javascript:
function increas
No, you can't select multiple tags with a single call to getElementsByTagName. You can either do two queries using getElementsByTagName or use querySelectorAll.
getElementsByTagName
querySelectorAll
JSFiddle
var elems = document.querySelectorAll('p,li')