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.

3,134 thoughts on “HTML Tutorial For Beginners: Create Your First Website Today”

  1. Looking for clarity? Get social media audit report with actionable recommendations tailored to your goals.
    Our services include social media audit for brands.
    Why choose us? We offer platform-specific strategies.
    Imagine knowing exactly what works and what doesn’t. With buy social media audit service, you can increase organic reach.

    Start today with Order social media audit online and transform your marketing.
    Looking for social media audit for brands? Find everything you need at SEO SEA Marketing.
    Facebook
    Instagram
    Reddit
    LinkedIN

  2. Капельница при похмелье – это эффективным методом лечения, который помогает устранить симптомы алкогольной интоксикации. Похмелье сопровождается недостатком жидкости, что проявляется головной болью, тошнотой и общей слабостью. Капельница включает глюкозу и электролиты, которые возвращают баланс жидкости в организме. Использование капельницы для лечения похмелья позволяет быстро устранить симптомы, обеспечивая очищение организма. Внутривенное введение жидкости ускоряет процесс восстановления. Капельница в домашних условиях может оказаться полезной, но требуется медицинская помощь для правильного подбора компонентов. Существуют и народные средства: различные травы, например, мяту или зверобой, которые способствуют улучшению состояния. Однако капельница является наиболее эффективным методом облегчить недомогание после пьянки. На сайте vivod-iz-zapoya-krasnoyarsk021.ru можно найти информацию о различных вариантах капельниц и их воздействии на организм.

  3. Вызов нарколога на дом в Красноярске — это ключевая услуга для людей‚ испытывающих трудности с зависимостями. Профессиональная помощь‚ включая помощь при зависимостях‚ становится доступной в комфортной обстановке. Сайт vivod-iz-zapoya-krasnoyarsk021.ru предлагает услуги нарколога в Красноярске‚ включая анонимное лечение и реабилитацию. При вызове врача на дом‚ пациент получает не только медицинскую помощь при зависимости‚ но и психологическую реабилитацию. Визит нарколога на дом поможет определить оптимальную стратегию лечения. Домашний визит врача обеспечивает конфиденциальность и удобство. Помните‚ что быстрое обращение к специалисту может изменить жизнь. Не откладывайте вызов нарколога‚ если вы или ваши близкие нуждаются в поддержке.

  4. Алкогольная зависимость — это серьезная проблема , которая требует профессиональной помощи . В городе владимире работают специализированные центры по помощи алкоголикам, предлагающие экстренный вывод из запоя и лечение алкоголизма . При алкогольной интоксикации важно быстро распознать симптомы и обратиться за медицинской помощью . Профессиональные наркологи в владимире предлагают консультации, обеспечивая безопасное восстановление после запоя и лечение похмелья . Процесс реабилитации от алкоголизма включает в себя программы для лечения зависимых, помогая не только пациентам , но и поддерживая родственников алкоголиков . Профилактика алкогольных заболеваний также играет важную роль в предотвращении рецидивов .

  5. Struggling to keep up with algorithm changes? Our top social media audit companies ensure your strategy stays relevant and competitive.
    A comprehensive social media audit software evaluates platform-specific trends. It helps you identify content bottlenecks.
    Our experts analyze free social media audit tools and paid social media audit solutions to deliver actionable insights.

    Without this insight, you risk spending on ineffective ads.

    Take control of your social presence now with a professional social media audit agency and future-proof your marketing.

    Discover which social media audit agency fits your needs.

    Our team specializes in social media audit vs social media analysis.

    Facebook
    Instagram
    Reddit
    LinkedIN

  6. В современном обществе зависимость от алкоголя и наркотиков превращается серьезной проблемой. На территории Красноярска предоставляется возможность вызвать нарколога на дом срочно, которая дает возможность быстро получить профессиональную помощь в кратчайшие сроки. На интернет-ресурсе vivod-iz-zapoya-krasnoyarsk020.ru доступна информация о доступных услугах нарколога, таких как консультации и лечение зависимостей. Опытный нарколог обеспечит медицинскую помощь на дому, осуществит консультацию, назначит лекарственную терапию и обеспечит психологическую помощь. Лечение зависимостей может включать реабилитационные программы и конфиденциальное лечение, что имеет большое значение для многих людей. Не откладывайте обращение за помощью – обратитесь за помощью уже сегодня!

  7. Капельницы для лечения похмелья – является работающим средством для восстановления организма после употребления алкоголя. В городе Красноярск медицинские услуги в виде вливание глюкозы и электролитов позволяет быстро облегчить проявления похмелья, включая головная боль, тошнота и слабость. Медицинские учреждения в Красноярске предлагают лечение с использованием энтеросгеля с целью детоксикации. Гидратация организма также имеет большое значение в процессе восстановления. Важно помнить о необходимости консультации врача прежде чем начинать лечение. Для получения дополнительной информации посетите сайт vivod-iz-zapoya-krasnoyarsk020.ru.

  8. Наркологическая помощь в владимире становится все более востребованной‚ особенно когда речь идет о борьбе с алкоголизмом. Нарколог на дом круглосуточно владимир оказывает услуги для людей‚ нуждающихся в незамедлительной поддержке. В рамках наркологической клиники проводится очищение организма от наркотиков и алкоголя‚ что является первым шагом к оздоровлению. Лечение алкоголизма включает в себя облегчение абстиненции‚ что позволяет облегчению состояния пациента. Круглосуточная помощь нарколога обеспечит необходимую медицинскую помощь при алкоголизме в любой момент. Консультация нарколога поможет составить индивидуальную программу лечения алкоголизма, учитывающую все нюансы пациента. Реабилитация зависимых включает психотерапию для зависимых‚ что способствует восстановлению психологического состояния и адаптации к жизни без алкоголя. Поддержка близких играет важную роль в процессе лечения; Анонимное лечение зависимости даст возможность пациенту обращаться за помощью без боязни осуждения. Вызывая нарколога на дом‚ вы делаете первый шаг к счастливой жизни.

Leave a Comment

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

Scroll to Top