HTML Elements

HTML elements are the building blocks of web pages. They are used to define the structure of a page, the content of a page, and the way that content is displayed.

There are many different HTML elements, but some of the most common include:

  • <html> element: This is the root element of an HTML document. It defines the entire document.
  • <head> element: This element contains the metadata for a document, such as the title, the author, and the keywords.
  • <body> element: This element contains the main content of a document.
  • <h1> element: This element defines a large heading.
  • <p> element: This element defines a paragraph.
  • <img> element: This element defines an image.
  • <a> element: This element defines a hyperlink.
  • <form> element: This element defines a form.

Task

A basic structure for your portfolio page has been set up. Add a h1 element between the header element with the text Welcome to My Portfolio and run the code to see the results and experiment with the code to get used to it.

ADVERTISEMENT
ADVERTISEMENT