HTML elements

HTML content is enclosed within opening and closing HTML brackets. Closing HTML tag has forward slash symbol that follows opening bracket. Example of opening and closing HTML tag is an <a> tag that is a link a defines which page to open when the text that follows <a> tag is clicked. Content of the <a> tag what text will be displayed for that link.

There can be a number of HTML elements. These are used to display an image, a horizontal line, a button.

Some HTML elements are self closing, there is no need for closing HTML tag. 

These elements include: <br> or line break, <hr> or horizontal line, <img> or displaying an image. This is not a full list of self closing HTML tags, for full list of HTML tags including self closing HTML tags please refer to HTML documentation.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator