Link to home
Start Free TrialLog in
Avatar of Marilyn Mesa
Marilyn Mesa

asked on

I have a question about my web design project. My h2 tags aren't showing up.

Hi, I validated my html it says no errors.  

Here is my message I got : Document checking completed. No errors or warnings to show.
but still no h2 tags??

I validated my css and it says this: Error: Non-space characters found without seeing a doctype first. Expected e.g. <!DOCTYPE html>.
From line 1, column 1; to line 1, column 6
body {↩    b
Error: Element head is missing a required instance of child element title.
From line 1, column 1; to line 1, column 6
body {↩    b
Content model for element head:
If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element.
Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element.

Here is the html and css:
Can you check it?  Thanks...I asked on stackflow and noone knew.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Travel With Us</title>
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,800" rel="stylesheet">

    <link href="style.css" rel="stylesheet" type="text/css">

</head>
<body>
  <header>
     <div id="header-text">
        <h1>Travel With Us</h1>
        <h2>Travel to the most fun and exciting places with us.  Make the right choice and choose luxury.</h2>
     </div>
   </header>
    <div class="main">
      <h3>Why You Should Choose Our Travel Plan</h3>
      <p>We have planned over 25,000 extravagant trips through out the world.
      When you choose us your choosing style, elegance, and all the ementies you love.</p>
    <div class="value-props">
    <div class="value">
      <img src="img/diamond-icon.png" alt="diamond"/>
      <h2>Elegance</h2>
      <p>We offer complete elegance in our packages.</p>
    </div>
    <div class="value">
      <img src="img/diamond-icon-1.png" alt="diamond"/>
      <h2>Elegance</h2>
      <p>We offer complete luxury in our packages.</p>
    </div>
    <div class="value">
      <img src="img/diamond-icon-2.png" alt="diamond"/>
      <h2>Elegance</h2>
      <p>We offer complete comfort in our packages.</p>
    </div>

    </div><!--value-props-->
    </div><!--main-->


</body>
</html>

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
}

header {
    background-image: url('img/sea-2052650_1920.jpg');
    background-position: center center;
    background-size: cover;
    height: 900px;
    width: 100%;
}

#header-text {
    margin: 0 auto;
    text-align: center;
    position: relative;
    top: 25%;
    width: 60%;
}

h1 {
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 70px;
    font-weight: 500;
    line-height: 60px;
    margin: 0;
}

h2 {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 100;
    margin: 10px 0;
    line-height: 30px;
}

h3 {
  font-size: 1.75em;
  font-family: 'Quicksand', san-serif;
  margin: 10px 0;
  text-align: center;
  font-weight: 400;
}

p {
  text-align: center;
  font-size: 1.5em;
  margin: 0 auto;
  line-height: 28px;
}

.main {
  padding: 40px;
  margin: auto;
  width: 60%;

}

.value-props {
  margin: 40px auto;
  width: 60%;
}

.value {
  border: 1px solid gray;
  padding: 40px 0;

}

.value {
  text-align: center;
}
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dbrunton
color: #fff; is white (check your stylesheet codes).

 font-family: 'Open Sans', sans-serif; should be  font-family: "Open Sans", sans-serif;
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Marilyn Mesa
Marilyn Mesa

ASKER

wow, thanks.  I get it the background is white, duh.   Thanks so much.   Love you Forever:)  I'm looking for a coding mentor.   This is a great website.   Thanks so much.   This is only me practicing but I want to learn coding for UX Design.   I'll think of you if I need help.  All three commentors really helped alot:)
Question answered.