101.school
CoursesAbout
Search...⌘K
Generate a course with AI...

    Introduction to HTML

    Receive aemail containing the next unit.
    • Introduction to Web Development and HTML Basics
      • 1.1Understanding Web Development
      • 1.2Overview of HTML
      • 1.3Basic HTML Syntax and Tags
      • 1.4HTML Elements
    • HTML Advanced Level
      • 2.1Lists, Tables, and Forms in HTML
      • 2.2HTML5 Elements
      • 2.3HTML Semantics
      • 2.4HTML Validation
    • Introduction to CSS
      • 3.1Understanding the CSS Syntax
      • 3.2CSS Selectors, Properties, and Values
      • 3.3CSS Box Model and Layout
    • CSS Advanced Level
      • 4.1CSS Positioning and Display
      • 4.2CSS Animations and Transforms
      • 4.3Responsive Design with CSS

    Introduction to Web Development and HTML Basics

    Basic HTML Syntax and Tags

    family of markup languages for displaying information viewable in a web browser

    Family of markup languages for displaying information viewable in a web browser.

    HTML, or HyperText Markup Language, is the standard markup language used to create web pages. It is the backbone of any website and is an essential skill for any aspiring web developer. This article will introduce you to the basic syntax and tags used in HTML.

    Understanding HTML Syntax

    HTML documents are made up of tags. These tags are enclosed in angle brackets, like <tag>. Most tags come in pairs and surround the content they affect. The opening tag is <tag> and the closing tag is </tag>. The content goes between these tags.

    For example, to create a paragraph in HTML, you would use the <p> tag:

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

    Introduction to HTML Tags

    There are many HTML tags, each serving a different purpose. Here are a few commonly used ones:

    • <h1> to <h6>: These tags are used for headings, with <h1> being the largest and <h6> being the smallest.
    • <a>: This is the anchor tag, used to create hyperlinks.
    • <img>: This tag is used to embed images.
    • <div>: This is a container tag that is used to group other elements.

    Creating a Simple HTML Page

    Now that you know some basic tags, let's create a simple HTML page. Here's an example:

    <!DOCTYPE html> <html> <head> <title>My First Web Page</title> </head> <body> <h1>Welcome to My Web Page</h1> <p>This is a paragraph.</p> <a href="https://www.example.com">This is a link.</a> </body> </html>

    In this example, <html> is the root element. The <head> element contains meta-information about the document, and the <title> tag specifies the title of the web page. The <body> tag contains the content of the web page.

    By understanding the basic syntax and tags of HTML, you've taken your first step into the world of web development. Practice using these tags until you're comfortable with them, and you'll be well on your way to creating your own web pages.

    Test me
    Practical exercise
    Further reading

    Hey there, any questions I can help with?

    Sign in to chat
    Next up: HTML Elements