+ 1
I'm a beginner. I used the code Playground for practice, but my title isn't showing up on the output. Please what do I do
5 Respostas
+ 12
document.getElementsByTagName("title")[0].innerHTML;
In mobile you can't show your <title> as output, why? Because CodePlayground has not tab like a normal browser. ~_~
BTW, with my snippet you can get the value of <title>, then you can display it in your webpage.
+ 2
Check it on PC and it will work if you're doing it right:)
0
@ Fabian maz said it right so don't give yourself headache because your title won't show up there.
😂
0
for more clarification go back to your html course----->overview----->lesson (2/5 Basic HTML Document Structure) and (3/5 Creating First HTML page)
0
alright. thanks