The HTML element syntax
In making a webpage, it is important to learn all the entities and element syntax to be used such that the browser will display exactly how you want the webpage to appear. An element starts with a start/opening tag (<), and ends with an end/closing tag (/>). The content should be between the start and the end tag. As such, some may have empty content.
Basically, the following are the most commonly used elements :
|Start Tag||End Tag|
|<a href=”default.htm”>||</a >||link|
|<body>||</body>||Body of the HTML doc|
|<html>||</html>||Whole HTML doc|
|<h1> to <h6>||</h1> to </h6>||Heading|
HTML also uses attributes to provide additional information about an element. Those attributes are always specified in the start tag and should be enclosed in quotes. However, note that when the attribute value itself contains quotes, it is necessary to use single quotes such as : ‘Matthew “WebMaster” Smith’.
HTML Attributes are:
|href attribute||Link address|
|class||Classnames for an element|
|id||Unique id for an element|
|style||An inline CSS style for an element|
|title||Extra information about an element|
For a complete list of HTML Attributes go to: w3schools.com