Skip to main content

Lesson 5: What have you learned so far?

Lesson 5: What have you learned so far?

Always start with the basic template we made in the previous lesson:

 <html>
   <head>
   <title></title>
   </head>

   <body>
   </body>

 </html>
 
 
In the head section, always write a title: <title>The title of your page</title>. Notice how the title will be shown in the upper left corner of your
browser:
Title shown in browser
The title is especially important because it is used by search engines (such as Google) to index your website and is shown in the search results.
Title shown on Google
In the body section, you write the actual content of the page. You already know some of the most important elements:

 <p>Is used for paragraphs.</p>
 <em>Emphasis text.</em>
 <h1>Heading</h1>
 <h2>Subhead</h2>
 <h3>Sub-subhead</h3> 
 
 
Remember, the only way to learn HTML is by trial and error. But don't worry, there is no way you can destroy your computer or the Internet. So keep experimenting - that is the best way to gain experience.

What is that supposed to mean?

Nobody becomes a good website creator by learning the examples in this tutorial. What you get in this tutorial is simply a basic understanding of the building blocks - to become good you must use the building blocks in new and creative ways.
So, get out in the deep water and stand on your own two feet... Okay, maybe not. But give it a go and experiment with what you have learned.

So what's next?

Try to create a few pages yourself. For instance, make a page with a title, a heading, some text, a subhead and some more text. It is perfectly okay to look in the tutorial while you make your first pages. But later, see if you can do it on your own - without looking.

Comments

Popular posts from this blog

HTML 5 Comments Tag

HTML 5 Comments Tag Description The HTML 'comments' tag is used for creating comments within your HTML code. Comments aren't displayed in the browser - they are simply there for the programmer's benefit. Comments can assist you, the HTML programmer, because you can write notes to yourself that explain what the code does. This is especially useful when you have a lot of code.

Lesson 10: Margin and padding css

Lesson 10: Margin and padding In the previous lesson you were introduced to the box model. In this lesson, we will look at how you can change the presentation of elements by setting the  margin  and  padding properties. Set the margin in an element Set the padding in an element Set the margin in an element An element has four sides: right, left, top and bottom. The  margin  is the distance from each side to the neighboring element (or the borders of the document). See also the diagram in  lesson 9  for an illustration.

Lesson 11: Borders css

Lesson 11: Borders Borders can be used for many things, for example as a decorative element or to underline a separation of two things. CSS gives you endless options when using borders in your pages. border-width border-color border-style border The width of borders [border-width]