About

Breaking

Thursday 11 May 2017

HTML Basic Examples









HTML Documents
All HTML documents must start with a document type declaration: <!DOCTYPE html>.

The HTML document itself begins with <html> and ends with </html>.

The visible part of the HTML document is between <body> and </body>.





HTML दस्तावेज़
सभी HTML दस्तावेज़ एक दस्तावेज़ प्रकार घोषणा से शुरू होने चाहिए: <! DOCTYPE html>।

HTML दस्तावेज़ स्वतः <html> से शुरू होता है और </ html> से समाप्त होता है

HTML दस्तावेज़ का दृश्य भाग <body> और </ body> के बीच है





Example

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>



RESULT


My First Heading

My first paragraph.





















HTML Headings
HTML headings are defined with the <h1> to <h6> tags.

<h1> defines the most important heading. <h6> defines the least important heading:  





HTML शीर्षकों
एचटीएमएल शीर्षकों को <h1> से <h6> टैग के साथ परिभाषित किया गया है

<H1> सबसे महत्वपूर्ण शीर्षक को परिभाषित करता है <H6> कम से कम महत्वपूर्ण शीर्षक परिभाषित करता है:

Example
 
<html>
<body>

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

</body>
</html>


                      RESULT

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

 

HTML Paragraphs
HTML paragraphs are defined with the <p> tag:

HTML पैराग्राफ को <p> टैग से परिभाषित किया गया है:

 Example

<html>
<body>

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

</body>
</html>

                       RESULT    


This is a paragraph.
This is another paragraph



HTML Links
HTML links are defined with the <a> tag:

HTML लिंक
HTML लिंक <a> टैग के साथ परिभाषित हैं:


 Example




<html>
<body>

<a href="https://www.codeslover.blogspot.com">This is a link</a>

</body>
</html>


                                                                      
                            RESULT




                                                                    This is a link





HTML Images
HTML images are defined with the <img> tag.

The source file (src), alternative text (alt), width, and height are provided as attributes:

HTML छवियां
HTML छवियों को <img> टैग से परिभाषित किया गया है

स्रोत फ़ाइल (src), वैकल्पिक पाठ (Alt), चौड़ाई, और ऊंचाई विशेषता के रूप में प्रदान की जाती हैं:

 Example

<html>
<body>

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

</body>
</html>
 


                                                            



                                                                     RESULT










No comments:

Post a Comment