Html Css Mistakes

5 months ago

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Do you like this presentation?

7 comments

Comments 1 - 7 of 7 comments previous next Post a comment

  • rubelonline rubelonline 5 months ago
    This presentation is now at Technology Story.
    Follow the link: http://tinyurl.com/yza9hnl
  • makripon IICT, BUET 5 months ago
    thanks bazlur. this article is really nice. I think this would help designer/developer to avoid common mistakes. I expect more slide from you.
  • we4tech nhm taveer hossain khan 5 months ago
    hu hu!, my mistake my mistake!, i should have thanked 'Bazlur bhai' instead of 'Barek bhai'
  • teksymmetryan Tasawr Interactive 5 months ago
    You are always welcome Hasan vi to praise barek :D
  • kaziekram kazi mohammad ekram 5 months ago
    Mashaallah great articl bro. Thanks for sharing ...:)
  • guest1f9143 Saidur Rahman 5 months ago
    nice presentation. Lot of things i learn from here.
  • we4tech nhm taveer hossain khan 5 months ago
    Excellent slide! i’m proud of you barek bhai! very mature presentation!
Login or Signup to post a comment
Login to SlideShare
Login to Twitter
Edit your comment Cancel

Html Css Mistakes - Presentation Transcript

  1. Some Frequent Mistakes made with html and css
    Bazlur Rashid
    Tasawr Interactive
    9th March 2010
  2. Issues to be discussed
    -Not initializing the tags
    -By-passing writing css with html
    -Ignoring Relevant Tags
    -Not Concentrating on reducing the number of tags
    -Using inline styling
    -Writing Identical Styles Separately
    -Not declaring generic font family.
    -Not using semantic class names
    -Using px for font size
    -Not Using alter tags for images
  3. Not initializing the tags
    * {
    margin: 0;
    padding: 0;
    }
    a { color: #f00; text-decoration: none}
    a: hover { color: #0f0; text-decoration: underline}
    We can also apply various style to other tags like headers, label, textareaand other input types
  4. By-passing writing css with html
    When need to leave a gap to the top of a box easy to write <div>&nbsp;</div> or <br /> than writing “margin-top” in the css file
  5. Ignoring Relevant Tags
    Make a div like heading rather using the tags h1, h2 ….
    Making a div like label, p, span rather using those tags
    Making a div like label, p, span rather using those tags
  6. Not Concentrating on reducing the number of tags
  7. Using inline styling
    The ability to add style to a tag by using the style=”" attribute can be handy, but it also sort of defeats the whole purpose of using CSS
  8. Writing Identical Styles Separately
    It's common to see a style applied to many different elements, even though the style is the same. Leave the style off each separate element and style them all in one go later on, like this:
    h1, p, #footer, .intro {  font-family:Arial,Helvetica,sans-serif; }
  9. Not declaring generic font family.
    Often we just write
    font-family: ‘Myriad Pro’;
    instead of
    font-family: ‘Myriad Pro’, ‘Tahoma’ ,’Arial’;
  10. Not using semantic class names
    Again going back to being able to easily change
    the style of a site using CSS, keep in mind that
    your site will likely change when naming your
    tag classes. Using the class name “bigyellowbox”
    might seem like a good idea now, but in a couple
    of years will it still make sense when you change
    the colour to blue?
  11. Using px for font size
    Deprives IE to change the font-size:
    1em is equal to the current font size. The default
    text size in browsers is 16px. Set font-size to
    62.5% in body style if the default font-size to be
    set is 12px.
    So, the default size of 1em is 12px.
  12. Not Using alter tags for images
    Happy to leave like
    <imgsrc="images/logo.jpg" width="23" height="13" border="0" alt="" />
    <imgsrc="images/user.jpg" width="23" height="13" border="0" alt=“tasawr" />
  13. Questions ?

Tasawr InteractiveTasawr Interactive + Follow

387 views, 0 favs, 2 embeds more

About this presentation

Usage Rights

© All Rights Reserved

Stats

  • 0 Favorites
  • 7 Comments
  • 11 Downloads
  • 367 Views on
    SlideShare
  • 20 Views on
    Embeds
  • 387 Total Views

Embed views

  • 18 views on http://www.technologystory.net
  • 2 views on http://www.slideshare.net

more

Embed views

  • 18 views on http://www.technologystory.net
  • 2 views on http://www.slideshare.net

less

Accessibility

Additional Details

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint

Follow SlideShare