I generally use a manual process:
- Look at the page, figure out the semantic elements, and build the HTML
- Slice up the images I think I’ll need
- Start writing CSS
- Tweak and repeat different steps as necessary
Got a better approach, or a tool?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have a fairly natural way of coding. The key is to treat the page like a document or an article. If you think of it like this the following becomes logically clear:
The page title is a top level heading
The navigation is a table of contents, and thus an ordered list – you may as well use an ol over a ul.
Section headers are h2, sections within those sections are h3s etc. Stack them up.
Use blockquotes and quotes where possible. Don’t just surround it with ‘.
Don’t use b and i. Use strong and em. This is because HTML is structural rather than presentational markup. Strong and emphasis tags should be used where you’d put emphasis on the word.
<label>your form elements.Use
<acronym>s and<abbr>s where possible, but only in the first instance.The easiest: always, always give your images some alternate text.
There’s lots of HTML tags you could use that you probably haven’t – address for postal addresses, screen code output. Have a look at HTML Dog for some, it’s my favourite reference.
That’s just a few pointers, I’m sure I could think of more.
Oh, and if you want a challenge write your XHTML first, then write the CSS. When CSS-ing you aren’t allowed to touch the HTML. It’s actually harder than you think (but I’ve found it’s made me quicker).