Bigger code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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?

20th Nov 2017, 12:30 AM
ZayThedon
ZayThedon - avatar
9 Answers
+ 4
Are you using just regular notepad?
20th Nov 2017, 12:35 AM
Arthur Tripp
Arthur Tripp - avatar
+ 4
In the code playground it will help with the indenting.
20th Nov 2017, 1:03 AM
Arthur Tripp
Arthur Tripp - avatar
+ 4
Go to code playground and start coding there. It lines it up for you.
20th Nov 2017, 1:17 AM
Arthur Tripp
Arthur Tripp - avatar
+ 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.
20th Nov 2017, 2:42 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
hope this makes sense and I can get good feed back thanks guys! any tips too would be much appreciated!
20th Nov 2017, 12:31 AM
ZayThedon
ZayThedon - avatar
+ 1
I'm at the try it yourself in the study part and just trying to build a code
20th Nov 2017, 12:38 AM
ZayThedon
ZayThedon - avatar
+ 1
so I don't need to keep pressing tab to line them up?
20th Nov 2017, 1:15 AM
ZayThedon
ZayThedon - avatar
+ 1
okay thanks
20th Nov 2017, 1:21 AM
ZayThedon
ZayThedon - avatar
0
Thanks Kirk!
20th Nov 2017, 8:44 AM
ZayThedon
ZayThedon - avatar