Git Product home page Git Product logo

html-css-review's Introduction

HTML and CSS

Why is this important?

This workshop is important because:

HTML is the oldest and most fundamental language of the web. It contains a page's content, provides structure for that content, and gives the browser important metadata about the page.

CSS lets us style a web page, creating sites that stand out visually. It is an incredibly powerful tool too.

What are the objectives?

After this workshop, developers will be able to:

  • Recognize common HTML tags and attributes.
  • Describe the structure of an HTML document.
  • Apply CSS styles to HTML elements based on tag, class, or id.
  • Distinguish among block, inline, and inline-block elements.
  • Draw the CSS box model.

Where should we be now?

Before this workshop, developers should already be able to:

  • Navigate the files in their computer using a command line interface (terminal).
  • Create a file with the terminal, modify it with a text editor, and save it.
  • Describe the roles of servers, clients, and browsers.
  • Explain how HTML, CSS, and JavaScript contribute to a website's front end.

HTML Structure

calder-mobile

Many sources compare well-structured HTML to a tree. We can also think of it as a top-down architecture, like a mobile.

If you were asked to build this mobile with HTML and CSS, what classes and ids would you use?

Check For Understanding

  1. Sketch out a wireframe for the website from the following image, and label it with semantic HTML elements, class names, or ids.

  1. What are some tags you might include in the head of this page's HTML?

  2. Draw the tree structure for the HTML you designed.

  3. What are some CSS text, font, or color rules you might use to create this site?

  4. What are some CSS layout or positioning rules you might use to create this site?

  5. Bonus: what portions of the web page in the image above might be controlled by JavaScript?

Discussion

Answer the questions assigned to your group and record your responses on the board. Feel free to do some research if you're not sure! Some places to check: resource.md, WDI fundamentals, or the sites in More Resources.

AFTER we have gone around and talked about your answers to these questions, please have someone from your team type up your answers in the Google doc.

Independent Practice

Check your understanding with this site recreation training! This is a common web development interview task, especially for front end roles.

Closing Thoughts

Semantic HTML is an expectation among modern web developers. Take care to choose semantic HTML elements, class names, and ids. (Semantic naming is also a best practice in JavaScript and across programming languages.)

Masterful CSS requires a lot of memorization (to know what properties can be changed) and experimentation. Don't be afraid to look things up and try things out. You'll build your toolkit over time, and you'll continue searching for the properties you need even as an expert developer.

The most important things to practice right now are:

  • using meaningful tags, classes, and ids.
  • following best practices to write clean, readable code.
  • memorizing syntax for CSS rules, including tag, id, and element selectors.
  • linking external CSS files to HTML and debugging issues with relative and absolute paths.

More Resources

html-css-review's People

Contributors

bgveenstra avatar mnfmnfm avatar cofauver avatar

Watchers

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