|
|
HTML Tags
HTML Tags
In the last tutorial, we mention HTML "tags". These are the bits of text between the < and > (angled brackets). HTML tags are the "markup" which describes the webpage to the browser, and explains how the content between the tags should be displayed. There are two tags which a webpage must contain, <html> and <body>. So the most simple webpage you can construct would be:
<html>
<body>
content
</body>
</html>
You might be wondering about the tags which feature a forward slash (/). These are closing tags, which tell the browser that that section of the page has now ended, and that its style can be stopped. You should always close the most recently opened tag first to create well-formed HTML. Some browsers can try to interpret pages which do not close their tags in the correct order, however the results can be unpredictable and this should be avoided at all costs.
The Next Steps
Now that you know about tags and how to save a webpage and open it within a web browser, you can start building pages using more complicated tags and adding your own content!
Page Responses
Currently there have been no responses to this page...
If you have anything to contribute to this tutorial, found a bug, or know a better way of achieving the same goal, please leave your response below.
|