Class 1 | Introduction & Basics | Learn HTML
Introduction
HTML stands for Hyper Text Markup Language. It is the standard markup language used to create web pages. Along with CSS, and JavaScript, HTML is a cornerstone technology used to create web pages, as well as to create user interfaces for mobile and web applications. Web browsers can read HTML files and render them into visible or audible web pages.
HTML Basics
HTML Documents
All HTML documents must start with a type declaration:
<!DOCTYPE html>
See the below exampe to understand more:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Lorem ipsum</h1>
<p>Dummy Text.</p>
</body>
</html>
The HTML document itself begins with <html> and ends with </html> tag. The visible part of the HTML document is between <body> and </body> tag.
HTML two parts first is <head> and </head> other is <body> and </body>. In these tag we write html code and enhance the page.
In first portion of head we write titile, link external sheets like CSS, JS etc.
In second portion of body we write all content which we want to display to end user.
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
HTML Paragraphs
HTML paragraphs are defined with the <p> tag: Like
<p> This is a paragraph. </p>
Many of tags are come with closing tag like <tag-name> </closing-tag-name>.
We close all tags with adding forward slash first. This is good for paractice that first you write tag with closing tag to avoid errors in future.
HTML Images
HTML images are defined with the <img> tag. The source file (src), alternative text (alt), and size (width and height) are provided as attributes. See the below example how we can use this in HTML.
<img src=“image.jpg" alt=“Alternate text” width="104” height=“142“>
All things we need to know is done. With this information we can build a simple webpage without any restrictions.
Thanks for reading
