Tribute Page - Preview not working

Tell us what’s happening:
Unrelated to my code. My question is, is anyone aware of why the “preview” or “console” function that allows you to see your progress would not be working? I can’t see my progress as I’m coding, and I know at the very least that I’m doing SOMETHING, as I’ve copied and pasted my code so far into Sublime text/opened it as an html link just to be sure. I’m just unable to see preview anything on free code camp.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="David Sinclair Tribute" />
    <title id="title" name="David Sinclair">Dr. David Sinclair</title>
    <link rel="stylesheet" href="style.css">
      <h1>Dr. David Sinclair</h1>
      <div class="img-div" id="img-div">
      <img class="sinclair" id="image" src=""></div><label for="image" id="img-caption">Dr. David Sinclair is a professor at Harvard University who specializes in research related to aging.</label>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/111.0.1661.62

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Welcome to our community!

You didn’t create properly a link the css file:

<link rel="stylesheet" href="style.css">

Ah, thank you for that! Hadn’t actually even got far enough to notice that lol. I did update that, and it will let me refresh the page and allow me to see style/code changes for a moment after refreshing, but after within a few seconds the preview goes away and I can’t see it again unless I back out to the main menu and come back to it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.