Vue Introduction
Vue is a JavaScript framework for building web pages. This course uses Vue 3.5.45 with Vite 6.4.6.
A first look
This small page shows one heading.
<h1>Hello, Vue!</h1>A short line
This line shows a short greeting.
<p>Welcome to Vue.</p>Example
<template>
<div>
<h1>Hello, Vue!</h1>
<p>Welcome to Vue.</p>
</div>
</template>Key points
- A framework is a set of ready-made tools for building web pages.
- Vue takes JavaScript values and shows them as page content.
- A web page is a document that a browser shows.
- Vue runs in the browser with JavaScript.
In this example, the page shows a heading. The heading reads Hello, Vue!. A short line follows the heading. The line reads Welcome to Vue. Vue turns this markup into HTML on the page.
Note
This course uses Vue 3.5.45 with Vite 6.4.6.
Try it Yourself
Edit the code, then press Run.
Running is simulated
Exercise
What is Vue?