Giter Club home page Giter Club logo

2020-html-reinforcement-revision-2's Introduction

HTML Reinforcement Revision 2

Instructions

You are encouraged to read up and research if you are unsure of your answers.

Submission of answers

Submission via Google Forms

Please use code sandbox to submit your answers. Click on "share > copy sandbox link" and paste the link to the Google form provided.

codesandbox

Submission via GitHub

Open up the assignment page and click on the "Add or create" button then select "link".

googleclass

When the prompt appears, paste in your GitHub repository URL that contains the solutions.

googleclass

The GitHub repository URL is as shown.

googleclass

Once you have loaded it successfully, click on the "Turn In" button.

googleclass


Contents

Question 1
Question 1 Preview
Question 2
Question 2 Preview
Question 3
Question 3 Preview
Question 4
Question 4 Preview
Question 5
Question 5 Preview
Question 6
Question 6 Preview
Question 7
Question 7 Preview
Question 8
Question 8 Preview


Given this HTML code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <link href="style.css" type="text/css" rel="stylesheet">
    <title>Document</title>
  </head>
  <body>
      
      <h1>This is a sentence that is awesome.</h1>
      <h1>This is also awesom.</h1>
      <h1>This is too is awesome.</h1>
      
      <script src="script.js"></script>
  </body>
</html>

Write an inline CSS to be applied to <h1></h1> that would change its background color to red and its text color to white.

Question 1 Preview [back to contents]

question1-preview


Given this HTML code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <link href="style.css" type="text/css" rel="stylesheet">
    <title>Document</title>
  </head>
  <body>
      
      <h1>This is a sentence that is awesome.</h1>
      <h1>This is also awesom.</h1>
      <h1>This is too is awesome.</h1>
      
      <script src="script.js"></script>
  </body>
</html>

Write an internal CSS to be applied to <h1></h1> that would change its background color to blue and its text color to white.

Question 2 Preview [back to contents]

question2-preview


Given this HTML code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <link href="style.css" type="text/css" rel="stylesheet">
    <title>Document</title>
  </head>
  <body>
      
      <h1>This is a sentence that is awesome.</h1>
      <h1>This is also awesom.</h1>
      <h1>This is too is awesome.</h1>
      
      <script src="script.js"></script>
  </body>
</html>

Write an external CSS to be applied to <h1></h1> that would change its background color to green and its text color to white.

Question 3 Preview [back to contents]

question3-preview


Using position property create three different colored boxes that would sit next to each other.

Question 4 Preview [back to contents]

question4-preview


Using position property create a single page webpage that has three sections with a navbar that would follow along as you scroll.

Question 5 Preview [back to contents]

question5-preview


Given the following code:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link href="style.css" type="text/css" rel="stylesheet" />
    <title>Static Template</title>
  </head>
  <body>
    <div class="main">
      <div class="box">
         <p>i'm in a box</p>
      </div>
    </div>
  </body>
</html>
.main {
  height: 300px;
  width: 300px;
  border: 5px red solid;
}

.box {
  height: 100px;
  width: 100px;
  background-color: salmon;
}

Using what you have learned in padding, border and margin add in codes such that:

  1. the pink box is centered.
  2. the pink box has a blue dotted border of 5px.
  3. the text "i'm in a box" does not touch the edges of the box.

Question 6 Preview [back to contents]

question6-preview


Create a simple colored box that would scale according to the size of the screen.

Question 7 Preview [back to contents]

question7-preview


Create a single page website that has a navigation bar, a background image and text over it.

The theme of the site is to your discretion. However, please refrain from creating socially inappropriate or mature contents.

Question 8 Preview [back to contents]

question8-preview

2020-html-reinforcement-revision-2's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.