I repeat "HTML Versus XHTML" (see W3SCHOOL, https://www.w3schools.com/html/html_xhtml.asp), when I forgot can I use <br> or <br />, and while it may be the same result, but here is explained the difference.
See also how define < and > (W3SCHOOL, https://www.w3schools.com/xml/xml_syntax.asp).Friday, July 30, 2021
Thursday, July 29, 2021
JULY 29, 2021. REPEATING JavaScript
JavaScript has many HTML methods, eg, 'getElementById()':
<p id="demo2"></p>
<script>
const poem = "The Wide Ocean";
const author = "Pablo Neruda";
const favePoem = `My favorite poem is ${poem} by ${author}.`;
document.getElementById("demo2").innerHTML = favePoem;
</script>
JavaScript can change HTML content.
Example from Digital Ocean
My favorite poem is The Wide Ocean by Pablo Neruda.
<script>
const poem = "The Wide Ocean";
const author = "Pablo Neruda";
const favePoem = `My favorite poem is ${poem} by ${author}.`;
document.getElementById("demo2").innerHTML = favePoem;
</script>
Read details: Tania Rascia, July 11, 2017, How To Work with Strings in JavaScript, Digitalocean. Retrieved: July 29, 2021 https://www.digitalocean.com/community/tutorials/how-to-work-with-strings-in-javascript
Subscribe to:
Posts (Atom)
March 9, 2025. AWFUL ESSAY ABOUT ETHNIC ID
Awful Essay About Ethnic ID, I Have Read Today I read today awful essay about what is ethnic ID in the conflict. The essay is awful becaus...
-
[Act I, Scene 1 London. A street.] Now is the winter of our discontent Made glorious summer by this sun of York; And...
-
By @poetVecheslaff August 21, 2018 I searched web for what may dir="ltr" and trbidi="on" mean? So I have found...
-
Awful Essay About Ethnic ID, I Have Read Today I read today awful essay about what is ethnic ID in the conflict. The essay is awful becaus...