How to link css file to html

  • <!doctype html>
    <link rel=“stylesheet” href=“style1.css”>
    <div id=“centered”>
    <title>Connor Lamb For Senate!</title>
    <h1>Connor Lamb For Senate!</h1>
    <h2>Vote For Connor Lamb Today!</h2>
    <p>Connor Lamb, a distinguishable man of whom fought in the military as a marine. As a marine in the army Connor Lamb knows what must be done in order for our civilization to survive.</p>
    <h1>The Man Who Cares</h1>
    <p>Connor Lamb hates those people who say they will change things if they get elected, and when they do get elected they never stick with their word.</p>
    Next code is the css
    h1 {
    text-align: center;
    maragin: 0;
    padding: 0;
    padding-top: 10px;
    width: 800px;
    text-align: left;
    bordder: 0px;
    padding: 0;
    margin; 0 auto;
    h2 {
    font-size: 14;
    h3 {


  • @Some-Body169

    As far as I can tell, this is not a Notepad++ question, so please don’t ask it here.

Log in to reply