/    Sign up×
Community /Pin to ProfileBookmark

Can something have both a "class" and something else?

Can I do

[QUOTE]

<input type=”text” class=”something” value=”hello” name=”hi”>

[/QUOTE]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@Jarrod1937Apr 30.2010 — Can I do
[code=html]
<input type="text" class="something" value="hello" name="hi">
[/code]

[/QUOTE]

Why not? ?

You could even be crazier and do something like:
[code=html]
<input type="text" value="hello" name="hi" class="something" id="somethingelse" style="font-weight:bold;" title="some tooltip text"/>
[/code]
Copy linkTweet thisAlerts:
@narutodude000authorApr 30.2010 — Ok thanks.
Copy linkTweet thisAlerts:
@tirnaApr 30.2010 — you can even have multiple classes like

[CODE]
class="class_1 class_2 class_n"
[/CODE]


but only 1 unique id.
×

Success!

Help @narutodude000 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...