What steps should I take to create a stylish HTML profile with well-organized CSS?

Looking for a way to display photos, biographies, personal details, and more on a webpage? We've got you covered! You can customize the layout using semantic HTML and CSS styles. Build your design online at http://jsfiddle.net/ and thank us later!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Yard Sales onproducts.line</title>
<link rel="stylesheet" href="" type="text/css" media="screen" />

</head>
<style type="text/css" >
#space {

    margin-bottom:1.2em;

       }
ul {
    width: 100%;
    float: left;
    margin: 0 0 3em 0;
    padding: 0;
    list-style: none;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ccc; 
    border-top: 1px solid #ccc; }
 li {
    float: left; }
 li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    color: #069;
    border-right: 1px solid #ccc; }
     </style>
<body> 
<ul>

<li><a href="#">Home</a></li>

<li><a href="#">Members</a></li>

<li><a href="#">Rollers</a></li>

<li><a href="#">Info</a></li>
</ul>
 <br/>
  <br/>
   <br/>
    <br/>
<div id="space">
<a href="#">Roberto Kirt</a>



</div>
<!--<ul><li><a href="#">'.$name2+'</a></li>
<li><a href="#">'.$name2+'</a></li>
<li><a href="#">'.$name2+'</a></li></ul>-->

<table width="1768" cellpadding="0" cellspacing="0" border="0.5">
  <tr>
    <td width="493" height="149"><img style="border:#666 1px solid;" src="images/profileimages/8.jpg" alt="Angel Pilier                   "align="left" width="100" height="130" border="1" /></td>
    <td width="1275"><table width="880" border="0.5" cellpadding="0" cellspacing="0">
      <tr>
       <td width="145" height="31"> </td><td></td>
      </tr>

      <tr>
        <td height="44" align="right">Born:</td><td width="735">1975-11-23</td>

      </tr>
      <tr align="right">
        <td height="38"></td>
       >
      </tr>
      <tr>
        <td height="36" align="right">Died:</td><td width="735">0000-00-00</td>

      </tr>
    </table></td>
  </tr>
  <tr><td height="31" colspan="2">&nbsp;</td></tr>
  <tr>
    <td height="31"><a href="#">Photos</a></td>
    <td rowspan="7"><table width="885" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="145" height="31" align="right"> Nationality:</td><td width="740"></td>

  </tr>
  <tr align="right">
    <td height="25">&nbsp</td>

  </tr>
  <tr>
    <td height="24" align="right">Spouse:</td><td width="740"></td>
  </tr>
  <tr align="right">
    <td height="28">&nbsp</td>

  </tr>
  <tr>
    <td height="27" align="right">Ocupation:</td><td width="740">Pianist</td>

  </tr>
  <tr align="right">
    <td height="27">&nbsp</td>

  </tr>
   <td height="27" align="right">Childhood:</td><td width="740"></td>

  </tr>
     <tr align="right"><td height="27">&nbsp</td>

  </tr>
     <td height="27" align="right">Tracks:</td><td width="740"></td>

  </tr>
  <tr align="right">
    <td height="119">&nbsp</td>

  </tr>
</table>
</td>
  </tr>
  <tr>
    <td height="25">  <a href="#">Biography</a></td>

  </tr>
  <tr>
    <td height="25"> <a href="#">Life</a></td>

  </tr>
  <tr>
    <td height="26"><a href="#">Tell an Anecdote</a></td>

  </tr>
  <tr>


  </tr>
  <tr>


  </tr>
  <tr>
    <td><iframe width="700" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Rochester,+New York,+United States&amp;sspn=0.119541,0.110378&amp;ie=UTF8&amp;hq=&amp;hnear=Rochester,+New York,+United States&amp;z=14&amp;output=embed"></iframe></td>
   <!--<img src="images/foto.jpg" alt="nada" width="422" height="165" />-->
  </tr>
</table>

</body>
</html>

Answer №1

Dear @fello, there are several considerations to keep in mind for your layout:

1) Utilize external stylesheets whenever possible to avoid making the HTML page heavy and needing to rewrite CSS for each new page.

2) Opt for a div-based structure over tables for increased flexibility. Refer to this for further insight.

3) Avoid excessive use of <br/> tags; instead, utilize margin and padding for spacing.

4) Every browser has default properties applied, so consider using a reset sheet.

5) For semantic markup references, explore the following links:

a)

b) http://css-tricks.com/snippets/html/html5-page-structure/

c)

Answer №2

In my opinion, incorporating a CSS framework such as Twitter Bootstrap can help you create a fantastic and mobile-friendly layout quickly :)

Answer №3

Consider using hcard for improved microformat integration. Learn more about hcard and other microformats here.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How can I dynamically generate multiple Reactive Forms from an array of names using ngFor in Angular?

I am in the process of developing an ID lookup form using Angular. My goal is to generate multiple formGroups within the same HTML file based on an array of values I have, all while keeping my code DRY (Don't Repeat Yourself). Each formGroup will be l ...

Is it possible to dynamically alter the text and contrast of your entire website?

In the realm of MVC 4 and Visual Studio 2013: I am pondering over how to dynamically change the text on my website with the simple click of a button. The same goes for adjusting contrast. Are there any plugins or techniques that could facilitate this proc ...

Tips on linking a condition-reaction to document.querySelector

I am struggling to connect the condition-reactions to the input id of passid. I am unsure where to place the document.querySelector() method in order to link the indexed conditions correctly. Below is the code snippet: <!doctype html> <html> ...

CSS: Caption text below image remains on same line

I am struggling with positioning a div that contains an image and a caption. My goal is to make the caption break into a new line when it reaches 95% of the width of the image. Despite my efforts, I can't seem to achieve this. The text always pushes ...

Developing an interactive web interface with HTML

I've been attempting to design a flexible HTML page that replicates the layout of a Java applet clock, but I'm unsure if my current approach is correct. Below is an example of the three-clock image set that I am currently working on. My method i ...

Selenium is unable to interact with iframes

I'm attempting to extract the Job Description and Job Requirements from this specific link using selenium. Check out my code below: driver = webdriver.Firefox() url = "https://www.jobsbank.gov.sg/ICMSPortal/portlets/JobBankHandler/SearchDetail.do?id= ...

Interactive HTML and PHP form designed to compute and display the result of a straightforward mathematical equation

I'm looking to add a dynamic HTML/php form on my webpage that can solve the following formula instantly without any page refresh. I am confused about the best approach and the code required to make it happen. The formula I want to implement is as fol ...

Getting data from an HTML file with AJAX

I have a JavaScript application where I am trying to retrieve an HTML file in order to template it. Currently, I am using the following method: var _$e = null; $.ajax({ type: "GET", url: "/static ...

Alter numerous classifications based on varying circumstances at regular intervals

This code snippet is designed to change randomly all the <div class="percentx"> elements, for example from <div class="percent31"> to <div class="percent52"> (with values between 1-100). It works smoothly. I ...

Explore a Wordpress HTML code

I own a WordPress website using the Photolux theme. My desire is to extract HTML elements such as titles and tags, but for some reason they are not visible. Just to clarify, I am not interested in reading the XML format. If anyone has any suggestions or ...

Using jQuery and HTML to create numerous links that direct to a solitary iframe

I created a basic overlay setup using css, html, and jQuery. Here's how it looks: <a class="activator" id="activator" style="" href="#">hello</a> <div class="overlay" id="overlay" style="display:none;"></div> <div style="d ...

I am looking for a way to create a fixed bottom navbar that evenly spreads out the links across the entire width of the screen. It should also be responsive

:) I'm experimenting with my fixed bottom navbar in bootstrap.. It's working to some extent.. But unfortunately, the links in my navbar won't justify.. I've tried everything I can think of.. I want it to be responsive so the current ...

What is the best way to include a .AVI file in an HTML document?

I have come across some examples of .AVI in HTML on the internet. However, my page seems to be having issues. It displays fine in Chrome on my computer. But in Internet Explorer, there is a bar at the top and the videos appear blank afterwards. It ...

The Kendo Grid is refusing to show up within the popup window

I am new to using Angular 2 and Kendo UI. Currently, I am attempting to include a grid inside my pop-up window. While I have successfully displayed the pop-up, adding the grid has proven challenging. The grid is not appearing as expected ...

Utilizing CSS to Select Specific Sections

I'm curious about how to target a section element with a specific id like #dress in CSS3. Here is my code snippet: <section id="dress"> <p>Lorem Ipsum..................................of Lorem Ipsum.<> </section> Here's ...

Issue with jquery .click function not triggering after CSS adjustment

In the process of creating a fun game where two players take turns drawing on a grid by clicking <td> elements. Currently, I have implemented the functionality to toggle the background color of a <td> element from black to white and vice versa ...

Tips for loading a webpage with optimal speed and efficiency

I am inspired by the sleek design of Apple's website and want to replicate some of its features in my project (best viewed on FF, Chrome, Safari): Initially, the page appears empty except for the header - but the final height of the page is already ...

Centering an Image of Unspecified Dimensions Both Vertically and Horizontally with Hover Effect on Anchor

To achieve both horizontal and vertical centering of an image with unknown dimensions, I need to use max-width and max-height to constrain it within a container size of 101x84. Additionally, I want the image to display an icon in the middle when hovered ov ...

Determine how to use both the "if" and "else if" statements in

/html code/ There are 4 textboxes on this page for entering minimum and maximum budget and area values. The condition set is that the maximum value should be greater than the minimum value for both budget and area. This condition is checked when the form i ...

Capture the onclick attribute with jQuery and then reapply it

I am facing a challenge with a page that has several calendars composed of HTML tables where each day is represented by a td. The td elements have an onClick attribute which I need to manipulate using jQuery. Specifically, I need to remove the onClick attr ...