सीधे मुख्य सामग्री पर जाएं

How to write a HTML code?

 Writing HTML (Hypertext Markup Language) involves creating a set of instructions that web browsers use to structure content on the web. Here's a basic guide to writing HTML code:

  1. Create a New HTML Document:

    html
    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Your Page Title</title> </head> <body> <!-- Your content goes here --> </body> </html>
    • <!DOCTYPE html> declares the document type and version of HTML.
    • <html> is the root element of the HTML document.
    • <head> contains meta-information about the HTML document, such as character set and viewport settings.
    • <body> contains the content of the HTML document.
  2. Adding Headings:

    html
    <h1>This is a Heading 1</h1> <h2>This is a Heading 2</h2> <!-- ... --> <h6>This is a Heading 6</h6>
  3. Paragraphs:

    html
    <p>This is a paragraph of text.</p>
  4. Lists:

    • Unordered List:
      html
      <ul> <li>Item 1</li> <li>Item 2</li> <!-- ... --> </ul>
    • Ordered List:
      html
      <ol> <li>Item 1</li> <li>Item 2</li> <!-- ... --> </ol>
  5. Links:

    html
    <a href="https://www.example.com">Visit Example.com</a>
  6. Images:

    html
    <img src="image.jpg" alt="Description of the image">
  7. Forms:

    html
    <form action="/submit" method="post"> <label for="username">Username:</label> <input type="text" id="username" name="username"> <br> <label for="password">Password:</label> <input type="password" id="password" name="password"> <br> <input type="submit" value="Submit"> </form>
  8. Tables:

    html
    <table border="1"> <tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>Row 1, Cell 1</td> <td>Row 1, Cell 2</td> </tr> <!-- ... --> </table>
  9. Divs (Division):

    html
    <div> <!-- Content goes here --> </div>

Remember that HTML provides the structure for your web content, and you can use CSS (Cascading Style Sheets) for styling and JavaScript for interactivity. Always close HTML tags properly and adhere to web standards for better compatibility across different browsers.

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट

Board exam hub Education channel

English Video - By Gyan Verma Maths& physics - By Rupesh Verma Chemistry - By Pankaj Maurya Telegram Channel : https://t.me/boardexamhub Facebook profile : https://www.facebook.com/profile.php?id=100086124387125 Facebook page : https://www.facebook.com/111476228415400 Instagram page : https://www.instagram.com/boardexamhub / Playlist -- Maths playlist-- https://youtube.com/playlist?list=PL02zjMGbqVMaeHVpnnyV_7Z18dZ2BX4UD Physics playlist -- English playlist -- https://youtube.com/playlist?list=PL02zjMGbqVMapWfNCloBWurOc9Pv_1dZA Chemistry playlist --

App code

Web Storage API Search Learn about app Request a call Laws or Rules Supports and helps Instagram Youtube facebook blogger he be ge ye ...

Determiners example

Determinors 1.Artcles (uppad/उपपद) [A],[An],[The] 2.possessive adjective(अधिकार वाचक विशेसन ) [my,our,your,his,her,their,its,one's] 3.Quantifiers(परिमाण वाचक ) [Some,Any,Every,More,Much,Few,Little] 4.Ordinals(क्रमवाचक ) [First,Second,Third,Last,Next] 5.Numbers(संख्यावाचक ) [one,two,three,four,five] 6.Demonstrative pronouns(संकेतवाचक सर्वनाम ) [This,That,Those,These] 7.Predeterminors(पूर्बनिर्धरक ) [All,All of,What,Such,Both,Rather]