Skip to main content

Basic CSS Tutorial with Responsive HTML simple portfolio page template (example) and CSS Style sheet

 Basic CSS Tutorial with Responsive HTML simple portfolio page template (example) and CSS Style sheet


Basic CSS Tutorial with Responsive HTML simple portfolio page template (example) and CSS Style sheet. 

HTML is the foundation Markup language of a webpage (Read more about HTML) while CSS is used to decorate the construction. CSS makes your webpage attractive. Below is given code example of basic HTML simple portfolio page template and CSS Style sheet. 

Copy HTML code of your first portfolio website  and paste in your code editor or notepad of your Windows PC (if you don’t have any code editor) and save the file as html file. (You can do it by changing extension of the file from .TXT to .HTML). 

Copy CSS code of your first portfolio website and paste in your code editor or notepad of your Windows PC (if you don’t have any code editor) and save the file as styles.css (You can do it by renaming the file as styles and change extension of the file from .TXT to .CSS). 

Create a New folder and save both files in that folder. It is necessary to save style sheet CSS file in the same folder with HTML index file of your portfolio. (You can also write your css code in your html file Read more to learn)

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>Your Portfolio</title>
</head>
<body>
    <header>
        <h1>Your Name</h1>
        <p>Web Developer</p>
    </header>

    <section id="about">
        <h2>About Me</h2>
        <p>Add a brief description about yourself here.</p>
    </section>

    <section id="projects">
        <h2>Projects</h2>
        <!-- Add your project details here -->
        <div class="project">
            <h3>Project Title</h3>
            <p>Description of the project.</p>
            <a href="#">View Project</a>
        </div>
    </section>

    <section id="contact">
        <h2>Contact Me</h2>
        <p>Email: email@example.com</p>
        <p>LinkedIn: linkedin.com/yourprofile</p>
        <p>GitHub: github.com/yourusername</p>
    </section>

    <footer>
        <p>&copy; 2023 Your Name</p>
    </footer>
</body>
</html>


CSS (styles.css)

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em;
}

h1 {
    margin: 0;
}

section {
    padding: 2em;
}

#about, #projects, #contact {
    background-color: #f4f4f4;
}

h2 {
    color: #333;
}

.project {
    margin-bottom: 1em;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em;
    position: fixed;
    bottom: 0;
    width: 100%;
}


Now play with it and create your first portfolio website.


Popular posts from this blog

Top 100 completely Free & Open‑Source Tools for Developers and IT Students

Open‑source software empowers education by removing cost barriers and giving schools freedom to innovate. Here’s a curated list of 100 tools , divided into 10 categories , covering everything from school management to creative arts, coding, and cloud solutions. 🏫 1. School Management & Administration Moodle – LMS for courses, grading, and collaboration. OpenSIS – Student Information System. Fedena CE – ERP for admissions, exams, and timetables. OpenEduCat – Modular education management system. SchoolTool – SIS for small/medium schools. Chamilo – LMS with e‑learning focus. ILIAS – LMS for universities and schools. ATutor – Accessible LMS. Canvas LMS – Popular LMS platform. Open eSchool – SIS for K‑12. 📚 2. Teaching & Learning Tools LibreOffice – Office suite. OnlyOffice – Collaborative office suite. GeoGebra – Math visualization. Anki – Flashcards with spaced repetition. Tux Paint – Drawing tool for kids. Scratch – Coding for beginners. Stellarium – Astronomy ...

What is freelancing and how to start earning Online as a beginner?

What is freelancing and How to start earning Online as a beginner? Free lancing means being independent, free to choose the workplace, free to choose the schedule and free to choose your wages. Everybody has to do something for living, a business or a job. Freelancing is in between business and job, it is like a business to provide paid services to your client or a customer. People now a days take this term for online jobs or some IT work only, but its not the same. You can provide any service from home or at your own workplace.   2.    What is difference between freelancing and remote jobs? Freelancing is providing your services for a project, you are totally responsible to complete that project in time, customer has nothing to do with your working hours or work place.   While remote job is employment where an employer hires you for some project and you are duty bound to work at your home or some workplace (remote) with a timetable and daily tasks given by...

How to avoid plagiarism in Ai generated Article and top 9 plagiarism detection tools ?

How to avoid plagiarism in Ai generated Article and top 9 plagiarism detection tools ? To avoid plagiarism  in Ai generated Article for a website or a blog , follow these guidelines: 1. Cite Sources Properly:    When using information, quotes, or ideas from other sources, provide proper citations. Follow the citation style (APA, MLA, Chicago, etc.) recommended by your institution or publication. 2. Paraphrase and Summarize:   Instead of copying verbatim, rephrase the information in your own words while maintaining the original meaning. Remember to cite the source even if you've paraphrased. 3. Use Quotation Marks:    When directly quoting a source, use quotation marks and provide an accurate citation. This indicates that the text is directly taken from another author. 4. Understand Plagiarism Policies:   Familiarize yourself with the plagiarism policies of your institution, organization, or platform. Different entiti...