This is a quick HTML guide for absolute beginners.
HTML is used to define web page architecture. The browser understands the HTML tags e.g. head, body, h1, IMG, etc., parse them and show us the output.Following are some HTML tags with examples:Mostly HTML has two main sections, the head
, and body
. Following is an example of how to write it:
Where html
, head
and body
are HTML elements that are defined through the start and end tags e.g. <html> ... </html>
. The elements may have attributes (properties).
The title
element is used to define the page title:
You can define different headings like the following:
Following is how you write the paragraph:
Add the image in HTML like the following:
Create the HTML table like the following, where tr
is table row and td
is table data (column):
There are two lists in HTML, ordered (1,2,3,4,…) and unordered list e.g. bullet list:
Following is how you add the links in HTML:
We can also specify the inline style to HTML elements like the following:
This is how you make HTML text bold, italic and underline: