Sunday, September 11, 2016

HTML Documents / HTML Headings / HTML Paragraphs / HTML Links / HTML Images

All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.

HTML Headings : HTML headings are defined with <h1> to <h6> tags as per the requirements.

<h1> is the most important heading or we can say the Biggest heading. If we want to use the biggest heading we have to use <h1>.

<h6> is the least important heading or we can say the Smallest heading. If we want to use the smallest heading we have to use <h6>.


HTML Paragraphs :  We write HTML paragraphs with <p> tag. Here 'p' defines the "paragraph". So, where ever we need a paragraph, we must use this tag.

HTML Links :  HTML links are defined with <a> tag.  Example : 

<a href="http://www.wideinfoblog.com">This is an HTML link</a>

HTML Images : We can add images to any HTML document with the help of HTML <img> tag. An Example is given below.

<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKJOh3oFAtX1IPFyY2v1TXrfssE70qjQhvZcGAhG1wJBOqCVpwjZjGsgUZfH2takOOgFhT3W9xaCgQNKcSUQGfpCtJjmID5mrN9mPzYyXLS3Jb67MJamlyOJDk4RE4ASdZ_c6GwHDlDtg7/s1600/HTML.png" alt="HTML Image Example" width="250" height="142">


Here we can also set the Height & Width of the image as shown in the above example.

Share this

No comments:

Post a Comment