πšƒπšžπšπš˜πš›πš’πšŠπš•πšœ π™΄πš‘πšŽπš›πšŒπš’πšœπšŽπšœ π™ΆπšŽπš π™²πšŽπš›πšπš’πšπš’πšŽπš πš‚πšŽπš›πšŸπš’πšŒπšŽπšœ πš‚πš’πšπš— πš„πš™ π™»πš˜πš πš’πš—


Learn HTML

Introduction

HTML is the standard markup language for Web pages.
With HTML you can create your own Website.

What is HTML?


stands for Hyper Text Markup Language
HTML is the standard markup language for creating Web pages
HTML describes the structure of a Web page
HTML consists of a series of elements
HTML elements tell the browser how to display the content
HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.

A Simple HTML Document

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

Syntax

In HTML, the syntax consists of opening and closing tags that surround the content. For example, a paragraph is enclosed within paragraph tags

The DOCTYPE

in older versions of HTML were longer because the HTML language was SGML based and therefore required a reference to a DTD.
HTML 5 authors would use simple syntax to specify DOCTYPE as follows :

<!DOCTYPE html>

Character Encoding

5 authors can use simple syntax to specify Character Encoding as follows :

<meta charset="UTF-8">
The above syntax is case-insensitive.

The <link > tag

So far you were writing <link> as follows :

<link rel = "stylesheet" type = "text/css" href = "stylefile.css">

HTML 5 removes extra information required and you can simply use the following syntax :

<link rel="stylesheet"href="stylefile.css">

2023 W3Resources. All rights reserved.