Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Bigger code
how do I make more lines for a longer code? also do I always have to keep pressing tab to line the codes up? is there an easier way? example.. If I have <h1> and then under I have <h2> do I have to keep pressing the tab button until they are lined up one on top of another?
9 Antworten
+ 4
Are you using just regular notepad?
+ 4
In the code playground it will help with the indenting.
+ 4
Go to code playground and start coding there. It lines it up for you.
+ 3
HTML suppresses / ignores whitespace (collapsing multiple spaces to 1, e.g.), except in tags that preserve it (like <pre>).
A primary reason to line up your code is for legibility, and it can help you avoid nesting errors.
You can use an HTML beautifier after the fact. Some editors have them built in, or Google it.
+ 1
hope this makes sense and I can get good feed back thanks guys! any tips too would be much appreciated!
+ 1
I'm at the try it yourself in the study part and just trying to build a code
+ 1
so I don't need to keep pressing tab to line them up?
+ 1
okay thanks
0
Thanks Kirk!