Giter Site home page Giter Site logo

francishuang / semantichtmlportfolioproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeschool-projects/semantichtmlportfolioproject

0.0 2.0 0.0 592 KB

Add semantic HTML elements to your portfolio.

Home Page: https://codeschool-project-demos.github.io/SemanticHTMLPortfolioProject/

License: MIT License

HTML 22.76% CSS 29.82% JavaScript 47.42%

semantichtmlportfolioproject's Introduction

Semantic HTML Portfolio

Welcome to the Semantic HTML Portfolio Project! For this project, we'll be converting a portfolio created using basic HTML tags (div, span, etc) to use HTML 5's more semantic tags.

Please follow the instructions below to complete the project. Be sure to run tests to make sure your tests are passing before submitting your code.

What You'll Build

We'll be using the Build a Portfolio Using HTML and CSS project as a starting point and converting it to use semantic HTML elements. The result won't look that different than before, but this will introduce a few new HTML elements into the mix to help make our HTML more clear. Here's a sample of what this could look like:

Sample Portfolio

What You'll Learn

We'll use a bunch of HTML 5 elements, including:

  • header
  • footer
  • main
  • nav
  • section

If you've never used these elements, we recommend taking the Front-End Formations course to get familiar with these elements before jumping in.

Live Demo

Wondering what this project will look like when you've completed it? Follow this link to see a live version of this project.

Getting Started

To get started with this project, head over to the Semantic HTML Portfolio project on Code School, and begin!

To get setup locally, run the following commands:

npm install
npm start

Tasks

Complete the following tasks to complete this project.

Convert the Header

The element with a class of "header" isn't using the most semantic HTML tag it could be using. Switch it to use an element that most accurately wraps the header content for a page.

Semantic Navigation

Our .nav element in the header of the page isn't using the most semantic HTML tags it could be using. ul is the correct one for this list of navigation items, but we should wrap this element with a more semantic element to indicate it is a navigation. Go ahead and add this.

Create Sections

Each of the main content areas of our portfolio could be switched from using div tags to something that more accurately describes them as sections of our page. Update the .tagline, .skills and .contact sections to use a more semantic HTML tag.

Main Content

Our 3 main sections make up the focus of our page. Wrap these three sections (tagline, skills and contact) in an HTML element that gives it the correct focus.

Footer

Lastly, the element with a class of footer isn't the most semantic use of that area either. Luckily HTML 5 has a much better element we can use for footers. Update this element to use the semantically correct tag.

Next Steps

Now that your site is working, the next step would be to deploy it to production!

Putting this site up on GitHub pages is a bit different than some other projects because the code is all in the /src directory. There’s a nifty way to push this directory to a GitHub branch, which allows you to use GitHub pages with it! Try running this Git command for this project:

git subtree push --prefix src origin gh-pages

This will push the src folder up to GitHub on the gh-pages branch. After that, you should be able to open up http://username.github.io/SemanticHTMLPortfolioProject, where username is your GitHub username.

semantichtmlportfolioproject's People

Contributors

adamfortuna avatar sergiocruz avatar

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.