Common HTML elements

There are a number of HTML elements, but I will list a few common ones.

<p> - opens paragraph, </p> - closes it.

<h1> - <h6> - Header text. It is bigger in size than regular page text. It needs to be used to specify title of the page, or sub titles of contents within that page.

<a> </a> - It is the anchor tag. Within opening anchor tag, it is possible to specify which page, or section of the page need to be opened. It is also possible to specify how the new web page needs to be opened.

<span> </span> - This is is an inline HTML element which usually used to specify special styling for its content.

<blockquote> </blockquote> - is used to specify a quote from another source.

<br> - line break. This is self closing tag. Another common use of this tag is <br />. both options are acceptable by majority of web browsers.

<img> - this tag specifies which image needs to be used.

<hr> - this tag places horizontal line, which is usually used to separate content of the HTML document.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator