BASICS OF HTMLExample of Simple HTML document :
< !DOCTYPE html >
< html > < head >
< body >
< p >My first paragraph. < /p > < /html > Explanation of Example :< !DOCTYPE html > declaration defines that this document is an HTML5 document.It must be specified in 1st line of web document.< html > element is the root element of an HTML page. This is the beginning of an HTML document.< head > element contains metadata(information about the document) about the HTML page. < title > element specifies a title for the HTML page (which is shown in the browser's title bar or
in the page's tab). It must be placed inside the head tag.< body > element defines the document's body, and is a container for all the visible contents,
such as headings, paragraphs, images, hyperlinks, tables, lists, etc. This tag contains main content of the HTML document.< h1 > element defines a large heading.< p > element defines a paragraph.Next Topic » (WebTech - Tags & Attributes) |