Do You Want to make your own website?

Close

Brostyro Online Code Editor


Sunday, 13 May 2012

HTML- Chapter-1 -Introduction to HTML


HTML stands for Hyper Text Markup Language.


HTML is very necessary for web-developing.Here I am going to tell you everything about HTML.

You don't need any website or web server to learn HTML!

Chapter 1-Introduction to HTML

HTML TAGS-

HTML tags are keywords by angle brackets(< and >)


All the HTML tags are written in this pattern-
<(name of the tag)>(some content)</(name of the tag)>
For eg-<i>italic</i>



"<i>" is the called the start tag(or opening tag) & "</i>" is called the end tag(or closing tag).



HTML tags are not case sensitive, which means that <i> & <I> are same.





Some commonly used HTML tags

  • The 'head' tag usually contains scripts and style-sheets.
  • The 'title' tag is placed within the 'head' tag, any text written within the 'title' tag can be seen on the Title Bar of the Web Browser.
  • The 'h1' tag is used to write the largest heading in a web page.
  • The 'h2' tag is used to write the second largest heading in a web page.
  • The 'h3' tag is used to write the third largest heading.
  • The 'h4' tag is used to write the fourth largest heading in a web page. in a web page.
  • The 'h5' tag is used to write the fifth largest heading in a web page.
  • The 'h6' tag is used to write the sixth largest heading in a web page.
  • There is no such tag like'h7' or 'h8' or 'h9',etc.
  • The 'p' tag is used to write a normal paragraph.
  • The 'b' tag is used to write a text in bold letters.
  • The 'i' tag is used to write a text in italic letters.
  • The 'u' tag is used to write underlined text.
  • The 'strike' tag is used to write text like ABC.
  • The <br /> tag is not written in pairs and is used to make a line break. If you write the <br /> tag two times you can leave two lines. You can add unlimited <br /> tags.
  • The <hr /> is also not written in pairs and is used to make a horizontal break.

<html>

<body>

<h1>This is h1 heading</h1>

<h2>This is h2 heading</h2>

<h3>This is h3 heading</h3>

<h4>This is h4 heading</h4>

<h5>This is h5 heading</h5>

<h6>This is h6 heading</h6><hr />

<p>This is normal paragraph written using the "p" tag</p>

<b>This text is written in bold letters using the "b" tag</b><br />

<i>This an example of italic text, written using the "i" tag</i><br />

<u>This underlined text is written using the "u" tag</u><br /><br /><br />

<strike>This text is written using strike tag.</strike>

Next Chapter-