HTML Crash Course

Anujkumar Yadav
2 min readFeb 23, 2021

--

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).

Html is not a programming language, meaning it doesn’t have the ability to create dynamic functionality. Instead, it makes it possible to organize and format documents. It allows the user to create and structure sections, paragraphs, heading links, and blockquotes for web pages and applications.

Versions of HTML:-

The first version of HTML was developed by physicist Tim Berners-Lee in 1990, and the first publicly available version was released in 1991. Since then, HTML has been updated numerous times to address advances in technology.
The current standardized version is HTML5, which has been in use since 2014.

HTML Editors:-

Visual Studio code

Sublime Text

Atom

  • The <!DOCTYPE html> the declaration defines that this document as an HTML5 document.
  • The <html></html> element is the highest level element that encloses every HTML page.
  • The <head></head> element holds meta information such as the page’s title and charset.
  • The <title></title> the element specifies a title for the HTML page.
  • The <body></body> tag encloses all the content that appears on the page.
  • The <h1> the element defines a large heading
  • The <p> the element defines a paragraph

What is an HTML Element?

An HTML element is defined by a start tag, some content, and an end tag.
The HTML element is everything from the start tag to the end tag.
Tags are used to mark up the start of an HTML element and they are usually enclosed in angle brackets.
EX : <h1> Hello World !</h1>

What are the HTML attributes?

HTML attributes provide additional information about HTML elements.
Attributes are always specified in the start tag.
Example –
The <a> the tag defines a hyperlink, the href attributes specifies the URL of the page.
<a href=https://www.google.com> Visit Google </a>

Golden Rules for using HTML tags –

  • You must always use angle brackets for tags.
  • you must always close a tag after opening it.
  • When using multiple tags, the tags must be closed in the order in which they were opened.

Ex :
<strong><em> Hello </em></strong>

Hope you like it.

Thank you for reading.

--

--