Example of a tag:
A basic page consists of several key points that should be placed in the layout. There will be another tutorial illustrating how to build a basic page, but below is very general example of how a web page is composed. In a way, the HTML to a browser is somewhat like Writing is to a Book. It tells a story all in itself on how the page should look.
Here is the basic bare bones structure of a page:
<!DOCTYPE html> <html> <head> <title>Your Site Title</title> </head> <body> <p>Your Site Content Goes Here.</p> </body> </html>
The Document Type, HTML Head, Title, Body, tags are extremely important and should always exist when coding a website layout or the page may not show up properly or not at all. If you notice, the tags seem to be repeated, but the second time it is repeated with a forward slash (‘/’) in front of the tag name. For every open tag, there must be a closed tag. Some tags like linebreak (br), and image source (img) tags are singular tags and the forward slash is within the url.
Just a few example of tags that do not have a paired tag:
<img src="YOURIMAGEFILEHERE" alt="IMAGENAMEHERE" />
If you put a web page together, you can label the page with the extension of .html or .htm and view it offline (without accessing the Internet) or you can load it to a server, whether you pay for a webhost or for a free account.
When breaking down the code above for the basic HTML page, you will note that there are really 3 main sections: the header, the content, and the footer.
<!DOCTYPE html> <html> <head> <title>Your Site Title</title> </head> <body>
<p>Your Site Content Goes Here.</p>