What is HTML?
It stands for ‘Hyper Text Markup Language’. When we build a web page, HTML is used to create a structure of our web page. Let me bring a metaphor. A web page we want to build appropriately is a car. Then, HTML can signifies the car body. The CSS, which is the language to design a web page, signifies a painting progress to color your car. JavaScript, the language to dynamically control your web page, is definitely an engine of your car.
Basic, but essential tags
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello HTML!</title>
</head>
<body>
<h1>Basic HTML</h1>
</body>
</html>
<!DOCTYPE html>
defines that this document is HTML5-based<html>
is the root element of an HTML page<head>
contains meta information about the page<title>
specifies a title for the HTML page<body>
defines the document’s body
Elements
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello HTML!</title>
</head>
<body>
<p>This is a paragraph</p>
<a href="https://www.w3schools.com">This is a link</a>
<img src="https://example.com/image" alt="W3Schools.com" width="104" height="142">
</body>
</html>
<p>
defines a paragraph<a>
defines a link.- You are required to use
href
(Hypertext Reference) argument to specify the desired link.
- You are required to use
<img>
defines an image on your web page- You are required to use
src
argument to specify the path of your desired image. - You can adjust its size with
width
andheight
argument.
- You are required to use
HTML was invented by Timothy John Berners-Lee, and He also invented the beginning of the Internet too.