HTML Tutorial


Q1.  What is HTML
Ans.           HTML is a markup language for 

describing web documents  (web pages). 
1.  HTML stands for Hyper Text Markup Language.

2.  A markup language is a set of markup tags.

3.  HTML documents are described  by HTML tags.
4.  Each HTML tag describes different document content.
This Application is designed for web designers and web developers need to understand HTML.

First to start this HTML Application you should basic knowledge of Window or Linux operating system Means You have some knowledge of computer. HTML was Created by Berners Lee in late 1991 but HTML 2.0 was the first standard HTML Specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in 1999. Through HTML 4.01version is widely used but currently we are having HTML 5. HTML 5 version was published in 2012. The <!DOCTYPE> declartion is not a HTML tag.It is a direction to the web program about what version of HTML.You start this program you have to knowledge. How to open HTML and How to save HTML file.



Q2.     How to open HTML.
Ans.   HTML works in notepad, notepad ++ etc.
Click Start button

you see this image in computer

in search bar write note pad and show notepad incon Click note pad you notepad open.
or



and click all programs and click accessories and click notepad. 
To open Notepad in Windows 8 or later: Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.

HTML was created by Berners- lee in late 1991 but HTML 2.0 was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Through HTML 4.01 version is widely used but currently we are having HTML – 5. HTML – 5 version was published in 2012.


Note:-  Student must be know that HTML must be file save in .html


For Example I file save name must be write sahil.html or any more a.html etc.


To open a file in a browser, double click on the file, or right-click, and choose open with opera, firebox, or internet explorer or any other browser.


HTML works almost all browsers but some time image not show in


Opera Mini, Firebox browser etc.
So image file open in Window Internet explorer browser. HTML Most Important Tags

1.     The DOCTYPE declaration  defines the document type to be HTML


2.     The text between <html> and </html> describes an HTML document


3.     The text between <head> and </head> provides information about the document


4.     The text between <title> and </title> provides a title for the document


5.     The text between <body> and </body> describes the visible page content


6.     The text between <h1> and </h1> ,<h2> and </h2>, <h3> and </h4>, <h5> and</h5>, <h6> and </h6> describes a heading


7.     The text between <p> and </p> describes a paragraph
Using this description, a web browser can display a document with a heading and a paragraph.


There is two way to write html.


 A Simple Example of HTML


<!doctype html>


<html>


<body>


This is a simple example of  HTML


<body>


<html>


OUTPUT




 or 





 HTML Heading Example   


 <html>


<body>


<h1> This is a heading 1 </h1>  


<h2> This is a heading 2 </h2>


<h3> This is a heading 3 </h3>   


<h4> This is a heading 4 </h4>      


<h5> This is a heading 5 </h5>


<h6> This is a heading 6 </h6>


</body>
</html>                           

OUTPUT : -
This is a heading 1
This is a heading 2
This is a heading 3
This is a heading 4
This is a heading 5
This is a heading 6
Note:- Heading Tag shortcut keys


     h1, h2, h3, h4, h5, h6.


Students must be write heading tags h1, h2, h3, h4, h5, h6. Do not write heading 1, heading 2 means. Do not Write <heading 1> This is a example of heading 1 </heading 1>
This is wrong. H1 means heading Tag 1 long size, h2 means small size, h3 means less then h2 size, h4 means less then h3 size, h5 means size less then h4, & h6 means so less size less then all sizes. 





 


No comments:

Post a Comment