4.35. Introduction to HTML: basic structure, tags and attributes: Popular frameworks and libraries (React, Angular, Vue)

Introduction to HTML

HTML, or HyperText Markup Language, is the standard markup language for documents designed to be displayed in a web browser. HTML is the foundation of any website or web page you see on the internet. It is one of the main tools that any front-end developer needs to understand and use effectively.

Basic structure of HTML

A basic HTML document consists of three main parts: the head (<head>), the body (<body>), and the HTML tag (<html>).

  • The <html> is the root of the HTML document and everything that is part of the HTML document must be within this tag.
  • The <head> contains metadata about the document, such as the page title, links to CSS, JavaScript scripts, and more. This information is not displayed in the main content of the web page, but is vital to the functionality of the page.
  • The <body> This is where the main content of the HTML document is placed. This includes text, images, lists, links, videos and more.

HTML tags and attributes

HTML uses 'tags' to mark different types of content. Each tag begins with a angle bracket (<) and ends with an angle bracket (>). Each HTML element has an opening tag and a closing tag, with content in between. For example, to create a paragraph, we use the opening tag <p>, followed by the paragraph text, and then the closing tag </p>.

HTML attributes are used to provide additional information about HTML elements. They are always specified in the opening tag and usually come in name/value pairs. For example, the link tag (<a>) uses the 'href' attribute to specify the URL of the link.

Popular frameworks and libraries

While HTML, CSS and JavaScript are the fundamental tools for web development, there are several libraries and frameworks available that can help speed up the development process and create more efficient and effective websites.

React

React is a JavaScript library for building user interfaces. Developed by Facebook, React allows developers to create large web applications that can change data without reloading the page. React's main advantage is development speed and efficiency, thanks to its reusable component system.

Angular

Angular is a JavaScript framework developed by Google. It allows developers to create rich and efficient web applications with a single page. Angular is known for being comprehensive and efficient, with a large set of built-in tools and functionality.

Vue

Vue is a JavaScript framework for building user interfaces. Compared to React and Angular, Vue is known for being lighter and easier to learn, making it an excellent choice for smaller projects or for developers who are just starting to learn front-end development.

In short, HTML is the foundation of web development, but development efficiency and effectiveness can be improved by using libraries and frameworks such as React, Angular and Vue. The choice of framework or library to use will depend on the specific needs of the project and the developer's experience.

Now answer the exercise about the content:

Which of the following statements is true about the basic structure of an HTML document?

You are right! Congratulations, now go to the next page

You missed! Try again.

Article image Formatting text with HTML

Next page of the Free Ebook:

40Formatting text with HTML

5 minutes

Obtenez votre certificat pour ce cours gratuitement ! en téléchargeant lapplication Cursa et en lisant lebook qui sy trouve. Disponible sur Google Play ou App Store !

Get it on Google Play Get it on App Store

+ 6.5 million
students

Free and Valid
Certificate with QR Code

48 thousand free
exercises

4.8/5 rating in
app stores

Free courses in
video, audio and text