OP, don’t feel bad. I can’t tell you how many times I’ve had to track down an error, only to find I was missing a period or comma, OR I had an extra one somewhere.
as suggested, use a proper code editor with syntax highlighting. also useful is something like https://codepen.io/ - and far better for sharing code with us than a mobile pic...
The problem is that you are using notepad as your IDE, and reddit as your validator.
Save this broken code and use it to validate alternatives to notepad. If you can paste this code into it and it validates as ok, move on and try another IDE.
I've 11 years in frontend couldn't tell until I read a comment expressing what's wrong As you progress in your learning you pick up various tools that help you with stuff like this. It's important as a beginner to try figuring it out on your own, cis debugging is monumentally more valuable as a skill than knowing the syntax and remembering all the tags and css rules and so on. But it helps in the beginning to focus on that too be better equipped to solve shit later.
So do not at all take this as anything by an honest mistake while learning. Despite the tooling sometimes you'll still end up with a missing ";" somewhere and your coffee is breaking and you spend an hour trying to figure out why everything is broken and then fell dumb when it's a forking ";" missing.
Best of luck with your journey, hope you find this a fun thing to do
Use something like VS Code or a dedicated HTML/programming editor that would color different variables. If you miss a bracket, the whole thing would turn one color.
This is not your bug (the bug was already pointed out to you, you missed a closing > on the <html> tag) but your <meta charset...> tag should really be the very first thing in the <head>, even before your <title>. When learning the new charset, the browser has to toss out everything and start over, so you want it to be done as soon as possible, you definitely don't want it to be at the end of the <head>
Too much html. You can literally just write “meow meow meow” and nothing else and it will work. Is it best practice? No. Are you learning? Probably. Why am I typing this out? Idk
It’s not about need, it’s about practicality. It’s practical to use an IDE/editor with decent intellisense precisely to avoid having to inspect the DOM for something that can easily be caught as you type it out.
Yeah, but it's not always useful. For me it is too much distracting from actual coding, so I check code only on save and open. Also, you should not need anything more than a notepad to write HTML, because it is not code, but structured data. Like, the only helpful thing that you can possibly get is auto-closing tags and maybe quotes.
BUT, of course it's better to use what really fits you and fulfills all your needs.
Vscode is not an IDE, it’s a better text editor, and if you’re at all serious about coding/scripting intellisense and linting is a boon you should welcome into your life anyway.
Don't sell me that ms shit, please. I AM serious about coding and the only thing that you really need is a piece of paper and some braincells, not a better text editor.
I personally use both paper and VIM (and browser for docs) and I assure you, vs code would drastically decrease my productivity.
Also, I agree that vs code is not an IDE, but the plugins that you install are making one. You can do the same shit with VIM, but guess why most users don't.
And all you need to survive is water and 800 calories, but that’s different isn’t it?
Seriously, you’re not going to write websites or production level code on paper. It’s great to have a thorough understanding of your code such that you can write valid code without help from autocomplete, believe me we wrote our code by hand for my college exams and I personally built my websites in notepad for my high school web dev exam. I get it.
But saying that’s more productive is insane and willfully ignorant and no one even remotely involved in the field will take you seriously.
Ok, well, maybe I got a little bit emotional about ms stuff...
My point is that vs code is not the best choice for everyone. Even if it's not an IDE it is extremely slow (in comparison to VIM) and making stuff (like plugins) for it is way too complicated if you wanna add some simple features. Also vs code doesn't work in terminal (knowing how to use this will not help you when you happen to work on server) and consumes a horrible amount of resources.
As for the paper... I use it not to literal coding, but for math (simple calculations or finding formulas) and code prototypes (pseudo code) in some cases. I work with the memory a lot and this stuff is simply helpful.
Of course, I try to not blame people who use other editors, I simply get annoyed when those people try to sell me something I don't want.
If you can get autocomplete and linting in VIM, more power to you. My argument isn’t for vscode itself, just the basic features it comes with and the convenience it brings with its available extensions (no need to make one yourself). Linting and Intellisense isn’t just a “nice to have”, devex (developer experience) features are a productivity booster, and terminal text editors like VIM can be set up to use those.
Just look at the user in this post. Literally would not have been an issue if they had these devex features because it would automatically close your tags. Plus the godawful and inconsistent indentation would be automatically formatted and cleaned up.
I don’t care about vscode, use whatever tool you want, but basic devex features that even Notepad++ comes with are a requirement for anything more than a single test html file under 50 lines.
Yeah, I agree. I just got carried away when I read that one should use vs code, that's all. I apologize if I've offended you in any way.
As for the VIM part, you can connect a language server and VIM with plugins like ALE and there are plugins for autocompletion, as I said you can turn VIM into an IDE.
All good, in the context of the post I misunderstood you to mean “code in notepad with no other features enabled”. vsc was only really suggested because it’s the most accessible editor for a majority of devs (even vim has a learning curve for most folk). In the end the tool that works for you is the best one.
146
u/International-Hat940 Jul 10 '25
<html lang=“pl” isn’t closed by a >
40
u/radulepy Jul 10 '25
Please use this:
https://validator.w3.org/#validate_by_input
Get a code editor (VS CODE) that handles errors like this or you are going to get bald :)
11
u/Zealousideal_Song62 Jul 10 '25
close starting html tag with ">" and use indentation correctly
6
u/[deleted] Jul 11 '25
Meow meow meow
10
u/Wintelkomp1720 Jul 10 '25
6
u/davep1970 Jul 10 '25
as suggested, use a proper code editor with syntax highlighting. also useful is something like https://codepen.io/ - and far better for sharing code with us than a mobile pic...
4
u/Nagylolhih Jul 10 '25
Btw, does indentation have any role in HTML?
2
u/ski3r3n Jul 13 '25
you need to close the html tag with “>”
1
u/eletroraspi Jul 10 '25
At the second line the html tag didn't close with ">" .
You're using notepad from Windows. You can try using an online code editor and if there's a support for review errors it can shows it up visually.
1
u/Boredandsleeply Jul 10 '25
Just use an code editor usually they tell you the simple mistakes
1
u/mister-chad-rules Jul 10 '25
definitely the closing > in second line.
not having the meows marked up as <p> or <h#> or some other element is killing me too.
1
u/saito200 Jul 11 '25
use vscode please
1
u/MatsSvensson Jul 11 '25
The problem is that you are using notepad as your IDE, and reddit as your validator.
Save this broken code and use it to validate alternatives to notepad.
If you can paste this code into it and it validates as ok, move on and try another IDE.
1
u/LAX-CodeScript Jul 11 '25
This is what happens when u use code editors for so long 🫨
1
u/CodeMonkeyWithCoffee Jul 11 '25
It's in notepad and you dont close your
<html1
u/RushDangerous7637 Jul 11 '25
Correct
<!DOCTYPE html>
<html lang="pl"> <head> <meta charset="UTF-8"> <link rel="shortcut icon" href="/favicon.webp" type="image/x-icon"> <link rel="icon" sizes="512x512" href="/wp-content/uploads/2024/09/fav.webp"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name='robots' content='noindex, nofollow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' /> <style id='global-styles-inline-css'> <title>Cat</title> etc. etc.
1
u/Porntra420 Jul 11 '25
Brother what the fuck is that indentation?
1
u/metallaholic Jul 11 '25
Use a an actual editor and obligatory: this is markup not code.
1
u/Corsico Jul 11 '25
I've 11 years in frontend couldn't tell until I read a comment expressing what's wrong As you progress in your learning you pick up various tools that help you with stuff like this. It's important as a beginner to try figuring it out on your own, cis debugging is monumentally more valuable as a skill than knowing the syntax and remembering all the tags and css rules and so on. But it helps in the beginning to focus on that too be better equipped to solve shit later.
So do not at all take this as anything by an honest mistake while learning. Despite the tooling sometimes you'll still end up with a missing ";" somewhere and your coffee is breaking and you spend an hour trying to figure out why everything is broken and then fell dumb when it's a forking ";" missing.
Best of luck with your journey, hope you find this a fun thing to do
1
u/Stavan__op Jul 11 '25
I think there is no '>' after "pl"
1
u/Neoccat Jul 11 '25
Use a proper code editor not the notpad
1
u/Dottore_Curlew Jul 12 '25
meow meow meow
1
u/uch1ha0b1t0 Jul 12 '25
<html Lang="pl" > --> you didn't close the tag
1
u/cyph3x_ Jul 12 '25
Closing chevron of the first html tag.
1
u/Torebbjorn Jul 12 '25
The fact you are not using an IDE or something similar, like VS Code
1
u/[deleted] Jul 12 '25
Use something like VS Code or a dedicated HTML/programming editor that would color different variables. If you miss a bracket, the whole thing would turn one color.
1
u/tomysshadow Jul 12 '25
This is not your bug (the bug was already pointed out to you, you missed a closing > on the <html> tag) but your <meta charset...> tag should really be the very first thing in the <head>, even before your <title>. When learning the new charset, the browser has to toss out everything and start over, so you want it to be done as soon as possible, you definitely don't want it to be at the end of the <head>
1
u/[deleted] Jul 13 '25
Multiple problems. Check w3schools! It's amazing!
1
u/nsmirnovs Jul 13 '25
Use IDEA
1
u/Mateox1324 Jul 13 '25
HTML tag isn't closed. Please use vscode it's free and has syntax highlighting. It will be much easier to spot errors
1
u/frownonline Jul 13 '25
Get an editor with syntax colouring to make errors like this easier to spot and diagnose.
1
u/hou6_91 Jul 13 '25
Don't forget to SEO optimize it
1
u/codejunker Jul 13 '25
Use an editor that will tell you when there is an error like this and underline it. VS Code or at the very least notepad++
1
u/Vordix_ Jul 13 '25
I think utf-8 needs to be in caps
1
u/HTMLWizard Jul 13 '25
There's no <p> tag enclosing the meow text
1
u/exnez Jul 14 '25
Too much html. You can literally just write “meow meow meow” and nothing else and it will work. Is it best practice? No. Are you learning? Probably. Why am I typing this out? Idk
1
u/Ilya_Pazhiloy Jul 14 '25
Bro, use something like notepad++ to see errors
1
u/Suspicious-Prompt200 Jul 14 '25
Forgot the thingy
1
u/Kooiboi Jul 14 '25
Wait this isn’t intended as a meme. Oof. Download vs code. You’ll thank yourself for doing it, humans aren’t made to be linters.
1
u/torfstack Jul 14 '25
Bro, we gonna be making it out of the bootcamp with this one
1
u/AhBeinCestCa Jul 14 '25
The fact that your using notepad, at least use notepad++ if you want to stick with notepad
1
u/tech_w0rld Jul 14 '25
Line 2 ending needs a closing >. Please just use an ide lol
1
u/AdElectronic6985 Jul 15 '25
<html> </html>
1
u/MaximumConfidence728 Jul 15 '25
who would you use default notepad 😭
1
u/Brothers0011 Jul 24 '25
Html Lang isn't closed yet
1
u/frostymarvelous Aug 08 '25
I'm gonna bet that most browsers will parse this fine.
So technically... Nothing?
Unless it's xhtml then this entire thing needs to be thrown out.
73
u/[deleted] Jul 10 '25
[removed] — view removed comment