you can have your all doubts cleared by this site:w3schools[dot]com/ which gives example and teaches each points with some example and will give you chance to practice same.you will enjoy this.
thanks.

you can search on Google that is easy way to learn every things.
if you want to make your HTML page attractive you need CSS, PHP and javascript that helps you to create attractive page. you can learn from W3schools site and HTML.net website these site contain excellent material and you easily understand it.

From your question, I gather, you would like to edit the style of the CODE itself rather than the code of the style of the PAGE.

Well a true programmer/ web designer is recognized by his ability to organise his code. here are a few steps

1. Make use of indented lines
2. Make use of comments.
3. Use appropriate names in accordance to the element and its function. this makes it easier for a person to know what the code is about.
4. Some editors allow you to add colour in order to make it easier to read the coe.