Differences
This shows you the differences between two versions of the page.
— |
tag [2014/08/13 12:09] (current) 12.51.154.27 created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Tag ====== | ||
+ | ---- | ||
+ | |||
+ | ===== Definition ===== | ||
+ | |||
+ | A **tag** is an [[HTML]] element. They are put in angle brackets and are used to mark up text elements. | ||
+ | |||
+ | Tags need to be opened (e.g. ''<a>'') and closed (e.g. ''</a>'') in order to be interpreted correctly. Tags that aren't opened and closed correctly create errors in the source code and can lead to display problems in the browser. | ||
+ | |||
+ | **Example** | ||
+ | |||
+ | The ''<p>'' tag is used to mark up separate paragraphs: | ||
+ | |||
+ | <html><p>This text should be displayed as a paragraph with a line break at its end.</p></html> |