Enhancing SEO capabilities
SEO optimizes a website to be correctly indexed by a web crawler. A web crawler is a special-purpose software on most search engines and can identify and index websites so that they are easily discoverable and linkable through their platforms.Angular Universal does a great job of SEO by prerendering content during build time. Some web crawlers cannot execute JavaScript and build the dynamic content of an Angular application. Prerendering with Angular Universal eliminates the need for JavaScript, thus allowing web crawlers to do their best to identify the web application.We can also help SEO by defining several tags in the <head>
element of the main index.html
file of an Angular application, such as title
, viewport
, and charset
:
<head>
<meta charset="utf-8">
<title>GhPortfolio</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
...