HTML Basics

Learn to Code Today!

Learn 10x faster: coding, no-code and data skills. Join millions of users mastering new tech skills and accelerating their career with Enki.
Get started

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

About Enki

  • Fully personalized online up-skilling
  • Unlimited AI coaching
  • Designed by Silicon Valley experts

More articles

Meet your AI-enabled coach

Professional athletes have a coach for every aspect of their performance. Why can’t you for your work? Enki’s AI-powered coaching on-demand - combined with state of the art, structured learning content - makes this a reality.
1
1:1 AI Coaching
How do I remove duplicate emails?
Convert the list to a set and back to a list. Sets automatically remove duplicates.
2
Personalized Exercises
3
Interactive practice

Unlock full access to all skills on Enki with a 7-day free trial

Get started