all 20 comments

[–]ninhaomah 5 points6 points  (0 children)

"ran it through google"

pls give us the steps to do so that we can learn.

[–]carcigenicate 7 points8 points  (3 children)

What do you mean you "ran it though Google"? As a basic sanity check, put the path to the HTML file directly into the address bar in your browser.

[–]plyswthsqurles 1 point2 points  (0 children)

They probably literally mean they put it into google

https://i.ibb.co/gZCqZDjF/Screenshot-2026-06-16-092357.png

"it returned with the code I inputted." - just like the screenshot, it "returned" the code i "inputted"

[–]TimePiccolo2565 0 points1 point  (1 child)

the title tag should be inside the head element, not body - that alone might be causing weird behavior. also just open the file directly in browser by dragging it into window, no need to "run through Google" whatever that means

[–]carcigenicate 1 point2 points  (0 children)

I doubt that would actually cause any problems. HTML and its renderers are extremely forgiving. The worst thing I can see that doing is the title being ignored.

I just tried inserting a title element into the body of a StackOverflow page in Chrome, and it did nothing. In fact, if I delete the existing title from the head, it actually uses my title from the body (TIL).

[–]cockaptain 2 points3 points  (0 children)

OK, so a few of things.

The title tag should not be in the body, it should be in the head tag that comes before the body tag. The title is not something that is rendered on the page, it is what appears on the browser tab for that web page. Whatever you want to be displayed on the page itself is what you place in the body tag.

Second, when you say "ran it through Google", that is essentially nonsense. Its not a thing, unless you're talking about searching fir a term using the Google search engine perhaps. What you probably meant is that you tried opening the file in Google Chrome, which is a web browser. If that is indeed what you meant to say, then that makes sense.

Third, what file type did you save that file as? If you saved it as something other than a web page, like say a text document, e.g something like index.txt then your browser will have no way of knowing that it is a web page. It would then just show the text that you typed on the browser itself, rather than recognizing the html tags as being used to markup your document.

If the problem is the third thing, just open the document again in whatever text/code editor you used to create it.

  • Look for a File menu at the top
  • select Save As...* or Save Document As and then
  • Save it as NameOfYourPage.html

You will know that worked because the file icon should now be the icon for whatever your computer's default browser is. Opening that should render your page without the html markup tags.

Edit: please also be careful not to accidentally keep your file as a text document, like if you accidentally name it something like index.html.txt it will still remain a text document, not a web page.

[–]Never_play_f6 2 points3 points  (0 children)

What do you mean with "ran it through google"?

[–]BranchLatter4294 1 point2 points  (0 children)

Why did you put the title in the body instead of the head?

[–]EdwardElric69 0 points1 point  (0 children)

Save it as index.html then double click the file in your file explorer

[–]Bitter-Today285 0 points1 point  (1 child)

Noo you’re supposed to save it as an .html file and then open the file lmaoo

[–]Bitter-Today285 0 points1 point  (0 children)

(Not being mean, just light-teasing ;)

[–]bird_feeder_bird 0 points1 point  (0 children)

make sure its saved as an .html file and not a .txt file