HTML Basics

This is part of “An intro to Web” series of posts, with content from the Enki app. If you stumbled upon this, you can start from the beginning.

HTML elements are the foundation on which the page is built. To specify that the following code is HTML, an <html> tag should open and close the document:

Elements give content meaning based on their function. For example, a page heading becomes <h_>, ranging from <h1>, the most important (and typically largest), to <h6>, the least important (and typically visually smallest) heading.

Paragraphs: <p>, images: <img>, and hyperlinks: <a> are also important semantic building blocks.

To give them meaning, however, they must be enclosed in a <body> element, which establishes what part of the HTML document the browser has to represent:

The part of the HTML that is not displayed in the web page itself, but helps the browser decide how to display the content is called head. It usually contains information such as the title of the web page displayed in the browser’s tab and links to the CSS document that contains the styles used in this page:

Learn More

Andrei Calabangiu

Content Manager

About Enki

  • AI-powered, customized 1:1 coaching
  • Fully customized to team needs
  • Pay only for active learners and results

More articles