Giter Site home page Giter Site logo

html-warmup-challenges's Introduction

HTML Warmup Challenges

As a front end developer, it is important to make your HTML structure as clean and as semantic as possible. Creating semantic HTMl not only helps you and your team understand the skeleton of your website, but it also makes your page more accessible as well. Below you will find a list of review questions on how to structure HTML elements, some exercises using your DevTools, as well as a few layouts to rebuild.

Review Questions

Below are a list of questions. Write the solutions to each question out (yes, with pen and paper). Practicing writing it out will help you retain the information so that when you need it later, you are more likely to remember!

  1. Write an opening and closing article tag.
  1. How do you link an external stylesheet to your HTML document? Write the element, its attributes, and indicate where it should be placed in the markup.
  1. Write an article tag with the class of post-content.
  1. Write an section tag with two classes: day-1 and day-2
  1. What are two different methods for creating a submit action in an HTML form?
  1. How might you create a navigation bar? Think about how to make it semantic and remember to include hyperlinks. It should include hyperlinks to Home, About, Bio, and Contact pages. (hint: try drawing out a wireframe of the nav bar before writing the tags)
  1. Describe an HTML attribute. What is it? How do you write one? Where is it placed?
  1. Refactor this line of code to be more accessible: <img src="mountain.jpg"/>
  1. How do you link your JavaScript code in your HTML file? Write the element and indicate where it should be placed in the markup.

Practice Your DevTools

Find three different websites that you use frequently and have great user interfaces. Open your DevTools and examine their site, paying close attention to the use of their HTML elements and overall structure.

  1. What is one thing that you really like about the site? It could be a fancy navigation bar, an easy to use form, a photo gallery, or even the way a blog has been structured. Take note on how they implemented it using your DevTools.
  2. Are there any HTML elements that you aren't familiar with? Take a moment to google them and write down when they can be useful.
  3. What are 2-3 things you would change in their HTML structure to make it more semantic. Do they use a lot of divs and spans?
  4. Find a form on their website and what type of tags they are using. Are there places that could be improved in their form as well?

Practicing Layout Structure and Semantic Elements

Use the following semantic tags to create a basic structure of the following templates. Think about which elements are most fitting and how they can be used to create the structure. It might help to sketch out the boxes and columns (aka draw a quick wireframe) and fill in each of the spots with what tag you want to use.

resume template

restaurant menu

admin dashboard

html-warmup-challenges's People

Contributors

ericweissman avatar

Watchers

 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.