Friday, 3 January 2014

Tutorial 5: HTML Basics

HTML Headings


In HTML, headings can be defined with tags from <h1> to <h6>.
Here h1,h2,h3,..represents heading1, heading2, heading3 respectively.

EXAMPLE:
<h1>This is first heading</h1>
<h2>This is second heading</h2>
<h3>This is third heading</h3>

HTML Paragraphs


In HTML, paragraphs are defined by tag <p>.

EXAMPLE:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

HTML Links


In HTML, links are defined by the tag <a> called anchor tag.

EXAMPLE:

<a href="http://techprojects4u.blogspot.com/">This is a link</a>

So in general, syntax to insert link is

<a href="YOUR LINK">LINK NAME</a>

HTML Images


In HTML, images are defined by the tag <img>. 
You can also adjust the size of the image by declaring the height and width of the image you want.

EXAMPLE:

<img src="image.jpg" alt="image" width="104" height="142">

NOTE=> Here alt means alternate is used because if your browser is not able to          display the image then it will display the text written inside alt.

So, you can also write it as,

<img src="image.jpg" width="104" height="142">




No comments:

Post a Comment