• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

explain main.html <link rel=….> in Raspberry Pi Web Server using Flask to Control GPIOs

Q&A Forum › Category: Raspberry Pi › explain main.html <link rel=….> in Raspberry Pi Web Server using Flask to Control GPIOs
0 Vote Up Vote Down
Joe Margevicius asked 2 years ago

Hi, I’ve gone thru your RPi webserver using Flash demo, and don’t understand part of the <head> section in the main.html code.  Specifically, how was <link rel= ….> created ?  I looked up maxcdn, which is now Stackpath, but I don’t see any help there.  Thanks!

Question Tags: RPi Web Server
4 Answers
0 Vote Up Vote Down
Joe Margevicius answered 2 years ago

… oh, and I do see how you got the <link rel= …> code by going to https:maxcdn.bootstrapcdn.com and selecting the CSS link, but can you provide a bit more info about that part?  … i.e. enough to be able to do more sophisticated programs?  Thanks!

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
That line of code is adding a link to an external Bootstrap CSS file to the web page. This CSS file will be used to style the page’s elements according to the Bootstrap framework’s design and layout rules.
That tutorial was created a long time ago. At the time, it was the way to integrate bootstrap on your project via CDN.
 
Now, if you want to use the latest version, you can check the links here: 
https://www.jsdelivr.com/package/npm/bootstrap
https://getbootstrap.com/docs/5.3/examples/
 
I hope this answers your question.
 
Regards,
Sara
 
 

0 Vote Up Vote Down
Joe Margevicius answered 2 years ago

Thank you Sara ! …. this example was a more recent re-post of yours, and I now understand it. (you can close this question). 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.