Skip to content

francishuang/SemanticHTMLPortfolioProject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.4%
  • CSS 29.8%
  • HTML 22.8%