I'm having all sorts of trouble styling simple html in js and jQuery It seems a jsfiddle is used here to illustrate. I am new to it and don't see console output or the desired results so I ask this question to learn more about how so can help; I did search so for .css not working and variations
javascript
.css() is jQuery. .style is js.
document.getElementsByTagName('pre').text.css("color: blue;"); jquery: const preSentences = $("pre").text().split(".") console.log({preSentences})
//no err no workee in chrome
// preSentences.forEach(function(str) { $(this).css("color: blue; border: 1px solid black")}); // $.each(preSentences, function(str) { $(this).blue }) // preSentences[1].style("color: blue; border: 1px solid black");
the fiddle is here I think - I tried the embed link and it doesn't show up: https://jsfiddle.net/Lz8nh50o/