Ask about script HTML | SoloLearn: Learn to code for FREE!


Ask about script HTML

I am newbie and learnt script HTML last night like this: <html> <head> <title>first page</title> </head> <body> This is a line of text. </body> </html> Is this work if I put this script be like this (put script HTML on alignment left): <html> <head> <title>first page</title> </head> <body> This is a line of text. </body> </html> Thank you before :)

7/8/2019 3:01:38 AM


6 Answers

New Answer


Yes it works, the reason we have space between each section is to look clean If you put space between each section , people who are reading your code do understand much better... But overall it's work same


Aulia Nasution your welcome, enjoy coding 😀


Also html is not really called a script.


It really fast respond Thank you "King" and "mod" for the answer my question Case closed :)


good question. yes it works. indentation is usually not a problem in HTML codes.


You can put the whole file on a single file line and it will work. But readability is important so we do one line per html tag and indentations to indicate that tags are children of others. This actually will tie in to the DOM when you learn Javascript as u understanding how ot all nests together will be helpful. Also with CSS.