Thursday, March 14, 2019

how to learn html code for begginers,easy step by step

Learn HTML code


INTRODUCTION:
#what is HTML?
=>HTML stands for Hyper Text Markup Language.HTML is used to create internet web pages.
HTML is a stage free language that can be utilized on any stage such as Windows, Linux, Mac and so on.

Element:-
It is very easy to create an HTML document. You need just two things, a basic content manager and browser.when you spare an HTML record, you can utilize either the .htm or the .html document expansion. 
The basic tags that are included in every HTML file.
There are four tags-
1.<html>...</html>:
=>This tag is used to indicate that this is a  an HTML file.The <HTML> tag encloses all other HTML tags.
2.<head>.....</head>
=>This tag is used to indicate the header section of the HTML file. It is always placed after <html>tag.
3.<title>...</title>
=>This tag demonstrates the title of this HTML page. The title is what  is  display on the upper left corner of the browser when you view a web page.
4.<body>....</body>
=>Everything inside the <body> tag is display on the  browser  inside the main browser window.

Example:-
<!DOCTYPE HTML> 
<html>
      <head>
            <title>This is my first program.</title>
</head>
      <body>
        Hello! everyone, How are you?
       </body>
</html>
Some commonly used attributes in the <body> tags:-

Attributes            syntax
Bgcolor               bgcolor=”color”
Background         background=”image.jpg”
Text                       text=”color”
Link                       link=”color”
Alink                      alink=”color”
Vlink                       vlink=”color”




Program code:-

<!DOCTYPE HTML> 
<html>
      <head>
            <title>This is my Second program.</title>
</head>
      <body bgcolor="red" text="blue">
        Hello! everyone, How are you?The bgcolor has been set to red and text color has been set to bule.
       </body>
</html>
Section Heading tags:
1.<h1>............................<h6>
=>Heading are defined with the <h1>  to  <h6> tags. <h1> tags define the largest heading and <h6> define the smallest heading.


program code:-

<!DOCTYPE HTML> 
<html>
      <head>
            <title>This is my third program.</title>
</head>
      <body bgcolor="yellow" text="blue">
                <h1> This is section heading </h1>
                <h2> This is section heading </h2>
                <h3> This is section heading </h3>
                <h4> This is section heading </h4>
                <h5> This is section heading </h5>
                <h6> This is section heading </h6>
        </body.
</html>



No comments:

Post a Comment