/    Sign up×
Community /Pin to ProfileBookmark

Is that useful to use this attributes?

Hello everybody,
I think that this is the first time for me to write a post in this section ^_^

I need your answer please

1- I saw in some scripts this:
<p style=”margin-top: 0; margin-bottom: 0″>

what the advantege of this attributes: “style=”margin-top: 0; margin-bottom: 0″”
what id do?
they put it in every <p> tag!!
Is that useful?

2- I also saw this:
<td><div align=”center”>text</div></td>
or
<td><p align=”center”>text</p></td>

why did they put <div> or <p>
I think it’s better to be like this:
<td align=”center”>text</td>

what is the right? My code or their code???

3- I saw this also:
<div align=”center”>
<center>
some tags here
</center>
</div>

why did they put a two Tags for align the text??
and if it’s wrong.. what is the right tag to put: <center> or <div align=”center”>?

and big thanx for you

thanx in advance ?

“Creative”

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 17.2006 — 
  • 1. Removes the margin/gap of the <p> element.


  • 2. The element in the <td> can aid in breaking long lines. Plain text within a <td> is not always wrapped.


  • 3. Same as above.


  • Both methods of centering are invalid when using html 4 strict DTD, use css.
    Copy linkTweet thisAlerts:
    @NogDogFeb 17.2006 — Aslo note that there is a [i]lot[/i] of poor and often invalid HTML mark-up out there on the internet. Do not assume that any HTML you see out there is correct, proper, or the best way to do it. If you see a page with code that looks strange, try submitting it to the [url=http://validator.w3.org/]HTML Validator[/url] first to see if it's even valid before analyzing whether it is something you should learn more about.
    ×

    Success!

    Help @Creative spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...