|
|||||
|
|||||
Tags - The Building Blocks of Webpages Tags are identified by their structure with a "<" first and a ">" last, such as <html>. Tags typically come in pairs with an opening tag, or start tag, such as <body>; and a closing tag, or end tag, such as </body>. There are exceptions where there is no closing tag such as <br />, <hr /> and <img />. Earlier browsers recognized simply the single tag <br> but more recent standards using HTML5 use <br /> or <img src=someimage.jpg /> with the final /> as a part of the tag. All webpages, also called HTML documents, open with <html> and end with </html>. There are two main parts to the HTML document which are identified by the <head> </head> and <body> </body> tags. All content visible on a browser is between <body and </body>. Tags become more complex and sophicated when tags include attributes. Attributes are a part of the tag following the tag name, have a definite format and may vary in number from none to one to many. Attributes are separated by a space, and have a name equal to a value, name="value". In the most recent version of HTML5 quotes may be optional. |
|||||
Copyright Denvy Saxowsky 2012 - saxowsd at wou.edu |