Skip to main content

HTML Tags

HTML code consists mainly of what is known as tags. An example of a tag is <html></html>, which indicates to the browser the start and end of the web page. Another example is <title>Mysite</title>, which tells the browser to display Mysite as the title of the page.

The main content of the page is held within body tags <body></body>. This means that tags are nested inside other tags. For example:

 
<html>
   <title>Mysite</title>
   <body>
      Hello World
   </body>
</html>
 

In this example, the page will display the title Mysite and display the words 'Hello World' on the page:

Next: Image Tag