HTML

HTML

HyperText Markup Language

HTML (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (CSS) or functionality/behavior (JavaScript).

"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.

HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as <head>, <title>, <body>, <header>, <footer>, <article>, <section>, <p>, <div>, <span>, <img>, <aside>, <audio>, <canvas>, <datalist>, <details>, <embed>, <nav>, <search>, <output>, <progress>, <video>, <ul>, <ol>, <li> and many others.

An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by "<" and ">". The name of an element inside a tag is case-insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <title> tag can be written as <Title>, <TITLE>, or in any other way. However, the convention and recommended practice is to write tags in lowercase.

The articles below can help you learn more about HTML.

Key resources

HTML Introduction

If you're new to web development, be sure to read our HTML Basics article to learn what HTML is and how to use it.

Introduction to HTML

At its heart,

is a language made up of elements, which can be applied to pieces of text to give them different meaning in a document (Is it a paragraph? Is it a bulleted list? Is it part of a table?), structure a document into logical sections (Does it have a header? Three columns of content? A navigation menu?), and embed content such as images and videos into a page. This module will introduce the first two of these and introduce fundamental concepts and syntax you need to know to understand HTML.

Prerequisites

Before starting this module, you don't need any previous HTML knowledge, but you should have at least basic familiarity with using computers and using the web passively (i.e., just looking at it and consuming content). You should have a basic work environment set up (as detailed in Installing basic software), and understand how to create and manage files (as detailed in Dealing with files). Both are parts of our Getting started with the web complete beginner's module.

Note: If you are working on a computer/tablet/other device where you don't have the ability to create your own files, you could try out (most of) the code examples in an online coding program such as JSBin or Glitch.

Guides

This module contains the following articles, which will take you through all the basic theory of HTML and provide ample opportunity for you to test out some skills.

Getting started with HTML

Covers the absolute basics of HTML, to get you started — we define elements, attributes, and other important terms, and show where they fit in the language. We also show how a typical HTML page is structured and how an HTML element is structured, and explain other important basic language features. Along the way, we'll play with some HTML to get you interested!

What's in the head? Metadata in HTML

The head of an HTML document is the part that is not displayed in the web browser when the page is loaded. It contains information such as the page <title>, links to CSS (if you want to style your HTML content with CSS), links to custom favicons, and metadata (data about the HTML, such as who wrote it, and important keywords that describe the document).

HTML text fundamentals

One of HTML's main jobs is to give text meaning (also known as semantics), so that the browser knows how to display it correctly. This article looks at how to use HTML to break up a block of text into a structure of headings and paragraphs, add emphasis/importance to words, create lists, and more.

Creating hyperlinks

Hyperlinks are really important — they are what makes the web a web. This article shows the syntax required to make a link and discusses best practices for links.

Advanced text formatting

There are many other elements in HTML for formatting text that we didn't get to in the HTML text fundamentals article. The elements here are less well-known, but still useful to know about. In this article, you'll learn about marking up quotations, description lists, computer code and other related text, subscript and superscript, contact information, and more.

Document and website structure

As well as defining individual parts of your page (such as "a paragraph" or "an image"), HTML is also used to define areas of your website (such as "the header", "the navigation menu", or "the main content column"). This article looks into how to plan a basic website structure and how to write the HTML to represent this structure.

Debugging HTML

Writing HTML is fine, but what if something goes wrong, and you can't work out where the error in the code is? This article will introduce you to some tools that can help.

要查看或添加评论,请登录

Kowshika K的更多文章

  • AI in Cybersecurity

    AI in Cybersecurity

    AI powered cybersecurity can monitor, analyze detect, and respond to cyber threats in real time. As AI algorithms…

  • Topaz Lab's GigaPixel?AI

    Topaz Lab's GigaPixel?AI

    Topaz Labs' Gigapixel AI is a state-of-the-art image enhancement tool designed to upscale and refine images using…

  • Gen AI

    Gen AI

    Generative AI (Gen AI) refers to artificial intelligence models designed to generate content, such as text, images…

  • TELERADIOLOGY

    TELERADIOLOGY

    DEFINITION OF TELERADIOLOGY Teleradiology refers to the practice of a radiologist interpreting medical images while not…

  • The Importance of Database Management: Exploring MongoDB

    The Importance of Database Management: Exploring MongoDB

    The Importance of Database Management: Exploring MongoDB In today’s data-driven world, effective database management is…

  • Harnessing the Power of Generative AI: A New Era of Innovation

    Harnessing the Power of Generative AI: A New Era of Innovation

    In recent years, generative AI has emerged as a groundbreaking technology, reshaping industries and redefining…

  • Crafting my learning experience: MindFulAI

    Crafting my learning experience: MindFulAI

    I've been on an enlightening adventure into the world of application development for the last two months, beginning…

    2 条评论
  • JAVASCRIPT

    JAVASCRIPT

    What Exactly is JavaScript? Not to be confused with Java, JavaScript—created by Netscape Communications—first appeared…

  • Front End Developer

    Front End Developer

    A front-end developer is a type of software developer who specializes in creating and designing the user interface (UI)…

  • Frequency Shift Keying

    Frequency Shift Keying

    Frequency Shift Keying FSK is the digital modulation technique in which the frequency of the carrier signal varies…

    1 条评论

社区洞察

其他会员也浏览了