Thursday, October 8, 2015

How to print a div

You can print any div by using this code. Just copy and pest this code in your html page what I given below:
<html>
<head> 
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js" > </script> 
<!-- You should use JavaScript--> 
<script type="text/javascript">

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data) 
    {
        var mywindow = window.open('', 'my div', 'height=400,width=600');
        mywindow.document.write('<html><head><title>my div</title>');
        /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.document.close(); // necessary for IE >= 10
        mywindow.focus(); // necessary for IE >= 10

        mywindow.print();
        mywindow.close();

        return true;}
</script>
</head>
<body>
<div id="mydiv"> <!-- This is the div what you want to print -->
    Hello world. I want to printed by your pronter. So print me now. 
Hello world. I want to printed by your pronter. So print me now. 
Hello world. I want to printed by your pronter. So print me now. 
   </div>
<div>
    This will not be printed.
</div>
<div id="anotherdiv">
    Nor will this.
</div>
<input type="button" value="Print Div" onclick="PrintElem('#mydiv')" />

</body>
</html>
 
Just try your self. Thank you 

Thursday, October 1, 2015

HTML-5

You can write HTML code in word pad, notepad, notepad++, DW etc. But I like to use Notepad++.
At first you have to take a new page in HTML format (index.html), I mean file's extension will be ".html". Now open it with notepad++.
HTML opening tag is <html> and closing tag is </html>. All code will be written between the middle <html> and </html>. For HTML, your main format:

<html>
<head>
    <title>.....</title> </head>
    <body>
        .......
    </body>
</html>



And in HTML5, your code format:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
   
</body>
</html>



Website by HTML5

You can write HTML code in word pad, notepad, notepad++, DW etc. But I like to use Notepad++.
At first you have to take a new page in HTML format (index.html), I mean file's extension will be ".html". Now open it with notepad++.
HTML opening tag is <html> and closing tag is </html>. All code will be written between the middle <html> and </html>. For HTML, your main format:

<html>
<head>
    <title>.....</title> </head>
    <body>
        .......
    </body>
</html>



And in HTML5, your code format:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
   
</body>
</html>



How to write html code?

You can write HTML code in word pad, notepad, notepad++, DW etc. But I like to use Notepad++.
At first you have to take a new page in HTML format (index.html), I mean file's extension will be ".html". Now open it with notepad++.
HTML opening tag is <html> and closing tag is </html>. All code will be written between the middle <html> and </html>. For HTML, your main format:

<html>
<head>
    <title>.....</title> </head>
    <body>
        .......
    </body>
</html>



And in HTML5, your code format:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
   
</body>
</html>



Tuesday, September 29, 2015

HTML 5

HTML5 is the latest version of HTML. You can make your site more easily by HTML5. Here are some code is rejected  from HTML and some code is added in HTML5.





HTML5 is also a markup language to make a website. You can make your own website by using HTML5 and CSS/CSS3 both coding. So we will start learning HTML, HTML5, CSS and CSS3. So stay with us. Keep in touch

Monday, September 28, 2015

What is HTML?

HTML is a markup language. H = Hyper, T = Text, M = Markup & L = Language. So we can say the meanings of HTML is Hyper Text Markup Language.

Some people say that it is a programming language. But it is a great mistake. You can say its a markup language. HTML latest version is HTML5.

Its a kind of markup language who contain a set of markup tags. Each HTML tag describes different document content. We will start HTML learning tutorial. It is coming soon. So wait and watch

Saturday, September 12, 2015

How to make a website

If you want to make a web site, it is very easy. But have to know how. For this reason, you have to know coding knowledge. HTML/HTML5 & CSS/CSS3 is must.

With HTML & CSS you can create your own Web site. But if you want to ad a nice view, You should know JS (Java Script).





And PHP or other programming language make dynamic your web site. There are many kind of programming language, like PHP, Python, dotNET etc.
But you can use CMS (Content Delivery Network) like "WordPress", "Joomla" etc. I think its a easy way to make a web site.
So its your choice, that how can make you your own web site..
Thank you