Git Product home page Git Product logo

dsc-2-18-04-html-intro-lab-online-ds-pt-031119's Introduction

HTML Intro - Lab

Introduction

It's time to practice making a well formated HTML document!

Objectives

You will be able to:

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

The In-Browser IDE

We want to make it easy for you to both be able to edit an HTML file and for us to be able to run tests to verify that your code is correct. Rather than asking you to do this locally, we're just going to take advantage of the Learn in-browser IDE. You'll see a button towards the top of this page "Open IDE" (just to the left of the GitHub and Raise Issue icons). When we ask you to edit a file "in your text editor", just click on that link, click on the index.html file name in the left hand column.

If the button doesn't appear to work for you (it opens up blank), go here and set your learning environment to "IDE in broswer".

When you run your tests, just type learn into the bottom of the three boxes which is a terminal for you to use with the in-browser IDE. Once your tests are passing, type learn submit there to tell us that you're done!

Instructions

Open index.html in your text editor (the in-browser IDE). Add a doctype tag at the top of the file indicating that the rest of the file will be HTML code. Then 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.

Then add a title within the head and make sure that it isn't blank.

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 working through these assignments, your general workflow should center on writing code in the text editor and periodically running the test suite in the terminal to check your work.

Another great way to track your progress is to open up the HTML document in your browser and watch how each change you make in the text editor affects the visual layout in the browser. If you're using a local development environment, you can open the HTML file directly in your browser. If you're coding in the Learn IDE, check out this Help Center article that explains how to spin up and connect to a simple remote server.

Once you have the HTML document open in your browser, you can make changes to it in the text editor, save the file, refresh the page in the browser, and see the changes instantly.

Resources

Summary

Well done! You just practiced writing your own structured HTML document!

dsc-2-18-04-html-intro-lab-online-ds-pt-031119's People

Contributors

loredirick avatar mathymitchell avatar peterbell avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.