Elements give structure to a HTML document and tells the browser how you want your website to be presented. Generally elements consists of a start tag, some content, and an end tag.
These elements have two ideal properties. That is attributes and content. Elements may represent paragraphs, headings, hypertext links, lists, embedded media, and a variety of other structures.
HTML elements are constructed with below terms
=> a start tag marking the beginning of an element;
=> any number of attributes (and their associated values);
=> some amount of content (characters and other elements)';
=> finally the end tag.
Example
| HTML Element | ||
| Start tag | Content | End tag |
| < a href = "www.u3schools.com"> | Best of the Tutorial | < /a > |
This is anchor tag element in html. Here href is the attriute of anchor tag. www.u3schools.com is the value of that attribute. In html have lot of tag elements like paragraph element,text formatting elements (< b >,< u >,< pre >) etc...