Home > Article > Web Front-end > How to use bootstrap official website template
The method to use the Bootstrap official website template is as follows: visit the Bootstrap official website, select and download the template. Unzip the downloaded ZIP file. Create an HTML file that links the Bootstrap CSS and JavaScript files. Copy the HTML, CSS, and JavaScript code from the template file and paste it into the HTML file you create. Save the HTML file and run the template.
How to use Bootstrap official website templates
Bootstrap official website provides a wealth of templates to help developers quickly build responses style websites and apps. Using these templates is very simple, just follow the following steps:
1. Select the template
Visit the official Bootstrap website (https://getbootstrap.com/) and click " Templates tab. In the list of templates that appears, browse and select the one that best suits your needs.
2. Download Template
Click the "Download" button of the selected template to save the template ZIP file to your computer.
3. Unzip the template
Unzip the downloaded ZIP file and extract the file contents to a folder of your choice.
4. Create an HTML file
Using a text editor, such as Visual Studio Code or Sublime Text, create a new HTML file.
5. Link the Bootstrap files
In the <head>
section of the HTML file, add the following code to link the Bootstrap CSS and JavaScript files :
<code class="html"><link rel="stylesheet" href="css/bootstrap.min.css"> <script src="js/bootstrap.min.js"></script></code>
6. Copy the template content
Open the unzipped template folder and find the index.html
file. Copy the HTML, CSS, and JavaScript code from the file and paste it into the HTML file you created.
7. Run the template
Save the HTML file, drag and drop it into your browser or run a local web server such as Apache or Nginx. You should see the template render into the browser.
Tip:
The above is the detailed content of How to use bootstrap official website template. For more information, please follow other related articles on the PHP Chinese website!