Code highlights logo

Learn

HTML Fundamentals

HTML Basics

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It is used to structure and display content on the internet. HTML is comprised of various tags that are used to define the structure of a webpage.

The basic structure of an HTML document consists of several parts:

  • DOCTYPE declaration: This tells the browser which version of HTML the page is written in. The current version is HTML5 and the DOCTYPE declaration for this version is <!DOCTYPE html>.
  • HTML element: The <html> element is the root element of an HTML document. It contains all the other elements on the page.
  • Head element: The <head> element contains meta information about the document, such as the title of the page, links to external stylesheets, and other important data that is not displayed on the page itself.
  • Body element: The <body> element contains the visible content of the web page, including text, images, links, and other elements.
  • Tags and attributes: HTML tags are used to define the structure and content of the web page. Tags are enclosed in angle brackets (<>) and can have attributes that provide additional information about the tag.

Instructions

1.

Inside the <head> tag, add a page title that says:

1Travel guide

Sign up to start coding

Already have an account?

Sign In

Course content