From the course: Spring Web MVC 6

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Fragment the home page into modular components

Fragment the home page into modular components - Spring Tutorial

From the course: Spring Web MVC 6

Fragment the home page into modular components

- [Instructor] Now that we have our index.html flow set up correctly, let's take a closer look at the HTML. This HTML has got a top header section, which has a lot of menu items: Home, Products, About, Contact, etc. Then there is a main section, which displays the content that is very specific to this HTML, and then here is a footer section. Let's head over to the IDE and take a close look at the code. So, on the index.html, you first have the head section, which is referring to a lot of images, fonts, etc, and in the body, we have this header section, we have the main section, that is specific content for index.html, and the footer section. Now, the header and the footer sections will essentially be the same for any other HTML template that will add consequently for the other use cases in this project, which means it is repetitive code, and we do not want that the header and the footer repetitively sits in all…

Contents