HiveBrain v1.2.0
Get Started
← Back to all entries
patternhtmlMinor

Introductory HTML exercise

Submitted by: @import:stackexchange-codereview··
0
Viewed 0 times
introductoryexercisehtml

Problem

I have started learning HTML. Here is one of the very basic HTML pages I have written. I would appreciate advice about how to write code especially regarding indentation.

 
 

 Checking Different Headings | Isnt it fun?

  This is big
  This is also good 
  This is also good 
  This is also good  
  This is also good 
  This is small 

Solution

I start my intention in head and body.

 
 

     Checking Different Headings | Isnt it fun?

    This is big
    This is also good
    This is also good
    This is also good 
    This is also good
    This is small


I also keep my tag tight–no spaces between text and tag.

Code Snippets

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head>
    <title> Checking Different Headings | Isnt it fun?</title>
</head>

<body>
    <h1>This is big</h1>
    <h2>This is also good</h2>
    <h3>This is also good</h3>
    <h4>This is also good </h4>
    <h5>This is also good</h5>
    <h6>This is small</h6>
</body>
</html>

Context

StackExchange Code Review Q#3193, answer score: 5

Revisions (0)

No revisions yet.