Is it enough to just write your page address into title for html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it enough to just write your page address into title for html?

1st May 2020, 9:01 AM
once open a day
once open a day - avatar
2 Answers
+ 2
@Vivek I believe that you misunderstand the OP question ;) Vahab the <title> tag in the <head> section of a html document is NOT mandatory. You could either avoid it, let it empty or fill it with as you want... However, filling it with the page address sounds pointless, redundant, and hardest to maintain (imagine that your change the file location and or the domain name, or even that you link more than once domain name to the same host ^^). Also, I don't guess than SEO rely a lot on the <title> content, but it should be down the ranking if your page(s) in search results ;P
1st May 2020, 11:38 AM
visph
visph - avatar
- 1
No, you have to write absolute path if you are opening html file in local machine.
1st May 2020, 11:17 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar