Skip to content

Latest commit

 

History

History
116 lines (80 loc) · 6.12 KB

2-add-content.md

File metadata and controls

116 lines (80 loc) · 6.12 KB

Adding content to an HTML page

Previously we saw how to create the structure of an HTML page. Now we want to begin adding content to our resume. Specifically, we want to add an email address, social media, education and experience.

Update the header

Most resumes feature the name of the person at the top as the "title" of the resume. This is a perfect place to use an h1 tag. We can also add a little separation between the header and the rest of the page by using two hr tags with some text in between.

  1. Inside index.html, change the text "YOUR NAME" to be your name. Change "YOUR TITLE" to your general title - or the title you might like to have - for example, "SOFTWARE ENGINEER".

    NOTE If you want your resume to look like the example we're working towards, follow the casing of the sample text in the HTML template. For example, replace YOUR TITLE with "SOFTWARE ENGINEERING STUDENT", using all capital letters. Once we add the CSS styling to our resume, you can experiment with casing to add additional customization to your resume.

Creating email and social media links

Let's create a link to your email address and any social media you wish to share on your resume. You'll use the a tag, which stands for "anchor". a has one attribute named href (short for hypertext reference). href will contain the address you want the link to point to. When a user selects the link, they will be taken to the page. If you want to create a link to an email address, you will use mailto: in front of the address; this will open the user's email client.

  1. Inside index.html, and below the comment which reads <!-- contact info including social media -->, add the following HTML to add a link to your email, replacing your-email@example.com with your email address:

    <p>
        <i class="fa fa-envelope" aria-hidden="true"></i>
        <a href="mailto:your-email@example.com">your-email@example.com</a>
    </p>
  2. The page automatically updates with your email address

    NOTE Notice that there is an i tag here - this will eventually contain a little envelope icon. Right now, it just shows up as a square, and that's because you need to add an icon font to your page. Don't worry about that for now - we'll do that in the next section, and that square will magically turn into an envelope.

  3. Repeat this for any social media that you want to add. Here are some different icons that you can use for the various social media platforms. Swap out the class of the i element with any of the following values.

    • fab fa-twittter
    • fab fa-linkedin
    • fab fa-github
    • fab fa-facebook
  4. Similarly, swap out the href of each a element with the appropriate hyperlink for each social media page, and be sure to change the link text as well. For example, if I wanted to add my GitHub and LinkedIn links to my resume, the HTML would look something like this:

    <p>
        <i class="fab fa-github" aria-hidden="true"></i>
        <a href="github.com/gh-username">gh-username</a>
    </p>
    <p>
        <i class="fab fa-linkedin" aria-hidden="true"></i>
        <a href="linkedin.com/linkedin-username">linkedin-username</a>
    </p>

IMPORTANT Whenever you add a link to a page you want to ensure the text which is displayed for the link (commonly referred to as link text) accurately describes the target of the link. Text like here or click here aren't accessible because they don't help the user understand the significance of the link. Using good link text makes your pages accessible to all.

Creating lists

Lists come in two varieties in HTML - ordered (with numbers or letters) and unordered (bullet points). ol is used to create an ordered list and ul is used to create an unordered list; li indicates each "list item" in a list. Let's use an unordered list to create a list of our work experience.

You can add as many (or as few) work experience entries as you like, modifying the text as appropriate.

  1. Inside index.html, below the comment which reads <!-- your work experience -->, add the following HTML to create the list:

    <h3><b>JOB TITLE</b></h3>
    <p>
    		Company Name | 2008 - 2010
    </p>
    <p>
    		Describe what you did in this position with one summary sentence and no more than 3 bullet points with specific highlights
    </p>
    <ul>
    		<li>Cool accomplishment</li>
    		<li>Cool accomplishment</li>
    		<li>Cool accomplishment</li>
    </ul>
  2. Swap out JOB TITLE for your previous job title (for example, SOFTWARE ENGINEER).

  3. Change the "Company Name" and date as appropriate.

  4. Add a short description that sums up your responsbilities.

  5. Update the li items to add 3 accomplishments from that work experience.

  6. Repeat the above HTML for each work experience. Put a br tag in between work experience entries to insert or "break" a space between them.

Finishing out our resume

Let's fill in the final sections of the resume...

  1. Inside index.html, below the comment which reads <!-- your skills AKA buzzwords -->, add the following HTML and include any skills that you have.

        <p>HTML, CSS, GitHub, VS Code...</p>
  2. Below the comment which reads <!-- your education -->, add the following HTML for your education information and update the text to represent your education:

    <b>YOUR MAJOR</b>
    	<p>
    		Your university or school
    	</p>
    	<p>
    		2018-2022
    	</p>
  3. Below the comment which reads <!-- about you -->, add the following HTML and update it with a short blurb on who you are and what kind of company you want to work for:

    <p>A brief paragraph about you and what kind of job/company you are looking to work for.</p>
  4. The window updates with your new information

Summary and next steps

You've now added the information for your resume! You also explored some of the most common HTML tags. But you may notice the display of the page is a little plain. Let's see how we can use CSS to style the page.