Beginner's Guide to HTML

Beginner's Guide to HTML

HTML can seem overwhelming at first. At WynHouse Software, we want to make complex topics make sense. That's why we made an easy-to-understand guide to HTML for beginners like you. Let's get started.

What is HTML?

Short for HyperText Markup Language, HTML is the standard markup language for structuring a webpage and its content. HTML is commonly assisted by Cascading Style Sheets (CSS) and JavaScript.

Each webpage has its own HTML. For example, if your website consists of a homepage, services page, blog page, and about page, your HTML files would look similar to the following:

  • index.html (default)
  • services.html
  • blog.html
  • about.html

HTML Basics

Tags

Tags are the starting and ending parts of an HTML element. They begin with the "<" symbol and end with the ">" symbol. Whenever there is something written inside "<" and ">", they are referred to as tags.

Example:

<tagname> </tagname>

Elements

An HTML element includes the tags, as well as what's getting visually displayed on the webpage. Generally, they consist of a start tag, content, and an end tag.

Example:

<tagname> Insert content here. </tagname>

Attributes

Attributes are used to provide additional information about HTML elements. They are always specified in the opening tag of an element and generally provide additional styling to the element.

Example:

<tagname align="center"> This is telling the element what to do. </tagname>

Structure of a Webpage

The following is the typical layout of HTML for your webpages. This continues to get more complex as you add more and more content to each page. Possible content could include headings, paragraphs, links, images, and more.

No alt text provided for this image

Page Titles

The title of your webpage is one of the most important pieces of metadata. This is the text browsers display in the tab for your page. This title is also what Google displays in their search engine results.

No alt text provided for this image
No alt text provided for this image


Paragraphs

Let's start adding some parts we can actually see on the webpage. The <p> element defines the content inside of it as a distinct paragraph.

No alt text provided for this image
No alt text provided for this image


Headings

Headings are like titles, but ones that are actually displayed on the webpages. Possible headings include <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. These headings are ranked by priority, <h1> being the most prominent and <h6> being the least.

No alt text provided for this image
No alt text provided for this image


Unordered Lists

Lists can make your website copy easier to read. To put words or phrases in an unordered list format, you wrap them with <ul> tags. Unordered lists show up like bullet points on your webpage.

No alt text provided for this image
No alt text provided for this image


Ordered Lists

What's the difference between unordered lists and ordered lists? While unordered lists appear like bullet points, ordered lists are denoted by numbers.

No alt text provided for this image
No alt text provided for this image


Line Breaks

Since HTML condenses several consecutive spaces and tabs, line breaks have a similar role to a return key. Line breaks are an example of HTML elements that do not follow the typical element structure, as they don't require content in between start and end tags.

Example 1.

Notice how the second paragraph appears without the <br/> element.

No alt text provided for this image
No alt text provided for this image

Example 2.

Now, notice how paragraph two appears with the addition of the <br/> element.

No alt text provided for this image
No alt text provided for this image


Comments

Comments are not displayed by the browser, but can help developers document their HTML source code. For example, developers can write notes to themselves or others in the code without having it show up on the webpage.

No alt text provided for this image
No alt text provided for this image


W3Schools

W3Schools is a great resource to use when getting the hang of HTML. Their website serves as a completely free reference for web developers, covering topics such as HTML, CSS, JavaScript, and more.

Try It Yourself Feature

Among W3School's features includes a helpful "try it yourself" tool. W3schools presents thousands of code examples across their site. By using this online editor, you can alter examples and execute code experimentally before implementing it. This helps you to determine what works and what doesn't, aiming to eliminate potential errors on your project. Try it out here!

Summary

HTML is a fundamental part of web development. This front-end development language sets the structure of a website's pages and works together with CSS and JavaScript to provide your final result.

Not confident that you can master this kind of project on your own? Consider the help of our software developers at WynHouse Software.

To view or add a comment, sign in

More articles by Emilie Mitchell

  • Ecommerce 101: What You Need to Know

    Think about the last time you made a purchase online. How long has it been? A month? A week? Maybe just a day? As you…

  • Introduction to JavaScript

    Before starting this introduction, you don't need to have any knowledge of JavaScript; however, you should be…

  • Beginner's Guide to CSS

    HTML and CSS have a close relationship. Before starting this guide, you should have a basic familiarity with HTML, as…

  • Do I Need a Landing Page?

    Studies show that businesses capture leads at a higher rate by sending traffic to specified landing pages rather than…

  • Tech Terms You Should Know From A-Z

    We get it. When you’re new to an industry, it can feel like you’ve stumbled into a conversation where everyone is…

  • 10 Laws Every Digital Product Should Follow

    What's the most valuable non-design skill that a designer can have? An understanding of the psychology that explains…

  • Why Can’t I Find Your Website?

    Did you know that 9 out of 10 people don’t even make it past the first page of search results? This means that if your…

  • Having a User-Friendly Website Makes an Impact

    Humans have a shorter attention span than a goldfish. Yes, you read that right.

  • How to Become an Expert in Your Field for Free

    Free learning has never been more accessible. The ability to gain professional skills and knowledge is at your…

  • The Importance of Branding

    If you find yourself asking: "Why is branding important?" there's a better question to ask: "When isn't branding…

Others also viewed

Explore content categories