html
html
1
2
3
4
5
6
7
8
9
10
11
<html>
<head>
<title>Document without title</title>
</head>
<body>
<div id="txt">
<p>first child of div id="txt"</p>
<p>second child of id="txt" txt</p>
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
txt = document.getElementById("txt");
console.log(txt.innerHTML);
// Still doesnt work with innerHTML or innerText
console.log(txt.innerText);
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run