HTML Tutorial For Beginners: Create Your First Website Today

HTML stands for Hypertext Markup Language. HTML was originally based on the Standard Generalized Markup Language (SGML), a much larger, more complicated document-processing system. To write HTML pages, you won’t need to know much about SGML. Whether you want to create a basic webpage or a sophisticated website, you must first understand HTML.

Who Invented HTML?

Physicist Tim Berners-Lee invented HTML in 1991. He created it to organize and distribute documents online.

boAt Airdopes 141 Power  Performance Pure Sound!

HTML Boilerplate (Basic Structure)

All HTML documents follow to a typical layout called a boilerplate:

Explanation

  • <!DOCTYPE html> : It specifies this is an HTML5 document.
  • <html lang="en"> : This is the root element of an HTML page, with the language specified.
  • <head> : It contains metadata like CSS styles, titles etc.
  • <meta charset="UTF-8"> : It ensures the correct display of the characters you use on your website.
  • <title> : It defines the title of the page.
  • <body> : Contains the content of the webpage.

Sorry, I mistakenly wrote “c” at the end of the closing </html> tag in the above video. Please ignore this.

HTML Headings

There are six heading tags :

html-heading-element

Explanation:

  • <h1> is the most important heading.
  • <h6> is the least important heading.
  • Headings are used by search engines to understand page layout.

Caution

Don’t use headings to display text in boldface type or to make certain parts of your page stand out more. Even though the result may appear as intend, it will not properly represent the structure of your page in the markup. This comes into play for search engines, accessibility, and some browsers.

Paragraph and Line Break

Paragraphs are created using the <p> tag and <br> tag for line breaks.

Example:

paragraph-code-snap
output-of-paragraph-tag-new

How to Comment in HTML

You can put comments into HTML pages to describe the page itself or to provide some kind of indication of the status of the page. Some source code control programs store the page status in comments, for example. Text in comments is ignored when the HTML file is parsed; comments never show up onscreen- that’s why they’re comments. Comments look like the following:

<!-- This is a comment -->

How to Add an Image in HTML

After you have an image, you can include it on your web page. Inline images are placed in HTML documents using the <img> tag. This tag, like the <hr> and <br> tags, has no closing tag in HTML.

<img src="image.jpg" alt="A sample image" width="500" height="300">

Explanation

  • src : Indicates the location of the image file.
  • alt : Provides alternative text for accessibility.
  • width & height : Specifies the measurements of the image.

Creating Links

<a> Developers use this tag to create a hyperlink. Example:

<a href="https://www.bitramind.com">Visit My Blogging Website BitraMind Everyday👨🏾‍💻</a>

Explanation

When you create links using <a>, the link has two parts: the href attribute in the opening <a> tag, and the text between the opening and closing tags that serves as a hot spot for the link. This link tells the browser to load the website “bitramind.com“.

Horizontal Line

The <hr> tag creates a horizontal line to divide content. Example:

<p>First section</p>
<hr>
<p>Second section</p>

How to Create a Table in HTML

All the components of a table are placed within a <table>…..</table> element. Here’s the simple code example that produces the table.

<table border="1">
    <tr>
        <th>Name</th>
        <th>Age</th>
    </tr>
    <tr>
        <td>Arpan</td>
        <td>23</td>
    </tr>
    <tr>
        <td>Tony</td>
        <td>60</td>
    </tr>
    <tr>
        <td>Riya</td>
        <td>29</td>
    </tr>
</table>
html table

This is the output of the above code. Notice that the table starts with a <table> tag and its attributes and ends with a </table> tag.

Explanation

  • <table> : Creates a table.
  • <tr> : Defines a row.
  • <th> : Defines a table header.
  • <td> : Defines a table cell.

Creating Lists

There exist two kinds of lists: ordered and unordered.

Ordered List (<ol>)

<ol>
    <li>HTML</li>
    <li>CSS</li>
    <li>JavaScript</li>
</ol>
ordered-list

Ordered lists are surrounded by the <ol>….</ol> tags (ol stands for ordered list), and each item within the list is included in the <li>….</li> (list item) tag. When the browser displays an ordered list, it numbers and indents each of the elements sequentially. You don’t have to number the items yourself, and if you add or delete items, the browser automatically renumbers them when the page loads next time.

Ordered lists are good for steps to follow or instructions to the readers or when you want to rank the items in a list.

Unordered List (<ul>)

<ul>
    <li>Apple</li>
    <li>Banana</li>
    <li>Cherry</li>
</ul>
unordered list

People often refer to unordered lists as bulleted lists. Each element in the list has the same marker instead of a number. The markup to create an unordered list looks just like an ordered list except that the list is created by using <ul>….</ul> tags rather than ol. The elements of the list are placed within <li> tags, just as with ordered lists.

Browsers have standardized on using a solid bullet to mark each item in an unordered list by default.

9 Brand Shaastras: The Power of Branding!

Conclusion

This guide explained the fundamentals of HTML, featuring its structure, headings, images, tables, lists, comments, and hyperlinks. By learning these components, you can begin creating your own web pages. Continue to practice and experiment with HTML to enhance your abilities!

Don’t forget to comment on how you liked this HTML tutorial.

5,361 thoughts on “HTML Tutorial For Beginners: Create Your First Website Today”

  1. This novel is perfect for anyone who has ever felt like they were waiting for their life to begin. Liz’s story is a reminder that life is happening right now, in the messy and unplanned moments. A Better Than the Movies PDF is a great resource for readers who want to access this wisdom instantly. It is a book that balances the fantasy of rom-coms with the grounding reality of true affection.

  2. Wes Bennett is the book boyfriend you didn’t know you needed. His patience and understanding of Liz make him a standout character. A Better Than the Movies PDF is a great way to experience his charm firsthand. It is a story that explores the difference between the idea of love and the reality of it, concluding that the reality is far superior.

  3. Steinbeck’s critique of the war and the military-industrial complex through the character of Adam is subtle but poignant. It reflects the disillusionment of the post-WWI era. History and political science students find these sections revealing. Using an East of Eden PDF helps in locating specific political commentary within the text. Our analysis draws out these political themes, discussing Steinbeck’s pacifist leanings. We help you see the political dimension of this primarily domestic drama.

  4. The book challenges the idea of the “happy ending.” A Wuthering Heights PDF offers a resolution that is peaceful but not necessarily happy for everyone. It is a realistic conclusion to a tragic tale. The digital text allows you to contemplate the fate of the characters. Did they get what they deserved? The ebook format gives you the time and space to reflect. It is a mature, complex story that treats its readers with respect. Download it and discover why it has fascinated readers for over 150 years.

  5. Unlock a world of romance and witty banter with Lynn Painter’s beloved novel. The story of Liz and Wes is a testament to the fact that first impressions are often wrong. Whether you are reading a physical copy or a Better Than the Movies PDF, the experience is equally magical. It is a book that encourages you to throw away the script and live in the moment, embracing the unexpected twists of life and love.

  6. Ultimately, the book asks: Can we be better than our parents? Can we break the cycle? It is the question of every generation. The answer lies in timshel. To find the answer, you must read the book. An East of Eden PDF is your tool for discovery. Our platform is dedicated to this question, offering resources that help you explore your own answer. We invite you to join the millions who have found hope in the pages of this masterpiece.

  7. The dynamic between Cal and Aron Trask serves as a modern retelling of the biblical story of Cain and Abel, set against the backdrop of World War I. It is a story of jealousy, rejection, and the desperate need for paternal love. If you are conducting research on these biblical allusions, utilizing an East of Eden PDF can streamline the process of gathering quotes and evidence. Our website specializes in these literary connections, offering a roadmap for students and casual readers who want to see how Steinbeck adapted the ancient scriptures into a 20th-century American classic. https://eastofedenpdf.site/ John Steinbeck East Of Eden Pdf Free

  8. For those who love to travel, a digital library is a must. You can take hundreds of books with you. This classic should be one of them. A Pride and Prejudice PDF is the perfect travel companion. Our website facilitates reading on the move. We believe that great literature should go where you go. Take the Bennet family on your next adventure. https://prideandprejudicepdf.site/ Pride And Prejudice Full Book Online Free Pdf Download

  9. Every lover of romance novels owes a debt to Wuthering Heights, the archetype of the tortured romantic hero. You can trace the roots of this trope by reading a Wuthering Heights PDF. Heathcliff is the blueprint for the brooding, dangerous lover, yet he is far more complex than his modern imitators. The novel explores the destructive power of obsession rather than idealizing it. A digital copy allows you to analyze the nuances of his character, separating the romantic myth from the tragic reality of his life. It is a crucial text for understanding the evolution of the romance genre. https://wutheringheightspdf.site/ Wuthering Heights Burlington Books Pdf

  10. This novel is a celebration of the rom-com genre, perfect for fans who know every line of “You’ve Got Mail.” Liz’s attempts to curate her life are thwarted by the unpredictable nature of love. A PDF download is a great way to access this story of self-discovery and romance. It is a narrative that encourages you to let go of the script and embrace the beautiful chaos of real life. https://betterthanthemoviespdf.site/ Better Than The Movies Online Pdf​

  11. Why carry a heavy book when you can have the entire novel on your phone? The digital age has made classics more accessible than ever. If you want to read Austen on the bus or in a queue, a digital file is the answer. Searching for a Pride and Prejudice PDF is a smart move for the modern reader. Our website offers a gateway to this convenience. Enjoy the flexibility of reading a masterpiece whenever you have a spare moment. https://prideandprejudicepdf.site/ Marvel Pride And Prejudice Pdf

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top