Coder Social home page Coder Social logo

galeheidi / kwk-well-formed-html-document-lab-kwk-students-l1-stl-061818 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/kwk-well-formed-html-document-lab-kwk-students-l1-stl-061818

0.0 1.0 0.0 14 KB

License: Other

Ruby 99.40% HTML 0.60%

kwk-well-formed-html-document-lab-kwk-students-l1-stl-061818's Introduction

Well-Formed HTML Document Lab

Objectives

  1. Add an appropriate doctype tag at the top of an HTML file.
  2. Enclose the HTML contents of a site inside html tags.
  3. Structure an HTML document with head and body tags.
  4. Add title tags to give the page a title that will show up in the browser tab.

Introduction

Every HTML page needs some basic structural elements in order to function properly. Image the process of building a house - each house is different on the inside; the layout, the windows and doors, down to the furniture... all unique in each home. But, every house needs a strong foundation. Every house needs a skeleton of weight bearing beams, the frame of the house. If it didn't have these, it wouldn't matter what was inside... the house wouldn't stay standing long enough to decorate!

HTML is the same. Every web page a house that needs a well-formed frame. In this lab, your task is to build that frame, what we refer to as document structure.

Instructions

  • Open index.html in your text editor
  • Add a doctype tag at the top of the file indicating that the rest of the file will be HTML code
  • Create opening and closing html tags to enclose the remainder of your page's content.
  • Add opening and closing head and body tags within the outer html tags to break your HTML document up into two sections.

Remember, the head section generally contains data intended for the web browser, and the body section contains the content our users will see and interact with on the page.

You can run the tests with this lab via learn. Make sure you save the file before running the test suite. Failing tests will provide helpful error messages that you can use to debug your code — read them closely for hints!

Viewing your work in the browser

While you can run httpserver using the Learn IDE, because we're working on the document structure, the page will be blank. None of this work is part of the visible portion of the page. You can, however, add some text inside the body tag of your HTML. If you've set up the page correctly, your text content should appear!

Resources

kwk-well-formed-html-document-lab-kwk-students-l1-stl-061818's People

Contributors

aviflombaum avatar danielseehausen avatar gj avatar enoch2k2 avatar curiositypaths avatar maxwellbenton avatar

Watchers

James Cloos 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.