Bold A Single Line In Html Table [closed] - Stack Overflow

    1. Home
    2. Questions
    3. Tags
    4. Users
    5. Companies
    6. Labs
    7. Jobs
    8. Discussions
    9. Collectives
    10. Communities for your favorite technologies. Explore all Collectives

  1. Teams

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams.

    Try Teams for free Explore Teams
  2. Teams
  3. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Get early access and see previews of new features.

Learn more about Labs Bold a single line in html table <td> [closed] Ask Question Asked 12 years, 6 months ago Modified 12 years, 6 months ago Viewed 93k times 7 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I have used the following code to make a table but in the tag i only need the XYZ to be bold and all others to be unbold. But when I used this code the whole is going bold. I don't wish to use a css style sheet with this file. Someone please tell me how I can achieve this.

<table width=100%> <tr> <td><center><b>XYZ<b><br>Aabc<br>+91-xxxxxxxxx<br>[email protected]<center></td> </tr> </table>

Thanks in advance.

Share Improve this question Follow asked May 30, 2012 at 6:54 Harikrishnan's user avatar HarikrishnanHarikrishnan 8,04514 gold badges67 silver badges113 bronze badges Add a comment |

4 Answers 4

Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 9 <table style='width:100%;'> <tr> <td style='text-align:center;'> <span style='font-weight:bold;'>XYZ</span><br> Aabc<br> +91-xxxxxxxxx<br> [email protected]</td> </tr> </table>

http://jsfiddle.net/n5WZt/

Share Improve this answer Follow answered May 30, 2012 at 7:14 Stefan's user avatar StefanStefan 3,9002 gold badges27 silver badges39 bronze badges Add a comment | 5
  1. You should use a style sheet.
  2. There is a simple typo: The / is missing in the second occurrence of <b>.
Share Improve this answer Follow edited May 30, 2012 at 6:58 Matt Handy's user avatar Matt Handy 30k3 gold badges90 silver badges114 bronze badges answered May 30, 2012 at 6:56 Oskar Berggren's user avatar Oskar BerggrenOskar Berggren 5,6091 gold badge20 silver badges37 bronze badges 1
  • 2 To clarify, @Oskar is saying you need to close your tags. <b>XYZ</b>, and your center </center> – hookedonwinter Commented May 30, 2012 at 6:57
Add a comment | 5

please close your all tag

<table width=100%> <tr height=11%> <td><center><b>XYZ</b><br>Aabc<br>+91-xxxxxxxxx<br>[email protected]</center></td> </tr> </table> Share Improve this answer Follow answered May 30, 2012 at 6:58 CSS Guy's user avatar CSS GuyCSS Guy 1,9843 gold badges18 silver badges27 bronze badges Add a comment | 2

You got wrong spelling in HTML tag, close b tag forgot /, try this:

<table width=100%> <tr> <td><center><b>XYZ</b><br>Aabc<br>+91-xxxxxxxxx<br>[email protected]<center></td> </tr> </table> Share Improve this answer Follow answered May 30, 2012 at 6:58 Someth Victory's user avatar Someth VictorySometh Victory 4,5512 gold badges25 silver badges27 bronze badges Add a comment |

Not the answer you're looking for? Browse other questions tagged or ask your own question.

  • The Overflow Blog
  • We'll Be In Touch - A New Podcast From Stack Overflow!
  • The app that fights for your data privacy rights
  • Featured on Meta
  • More network sites to see advertising test
  • We’re (finally!) going to the cloud!
  • Call for testers for an early access release of a Stack Overflow extension...

Linked

1 Make contents of a table or td tag bold 8887 Why does HTML think “chucknorris” is a color? 4404 Change an HTML input's placeholder color with CSS 1585 How can I center an absolutely positioned element in a div? 2303 HTML: Valid id attribute values? 2349 Retrieve the position (X,Y) of an HTML element 2199 HTML 5: Is it <br>, <br/>, or <br />? 2735 How do I create an HTML button that acts like a link? 2322 How do you parse and process HTML/XML in PHP? 1926 Where should I put <script> tags in HTML markup?

Hot Network Questions

  • Strange Brackets in String Writing
  • User temp folder is 103GB. Is it safe to delete?
  • Accused of violating NDA on thesis
  • Finite subgroups of multiplicative complex numbers.
  • What is the origin of the term "Dog Character" in the context of fighting games?
  • C# basic calculator
  • Are periodic functions such as sine and cosine defined on surreal numbers?
  • Will Spirit trade with SAVEQ when it recovers?
  • How to utilize zener diode specs
  • Do longer papers have lower chances of being accepted because they take up more "space" in a journal issue (STEM)
  • Why am I getting no output in tcpdump even though there is data being sent and received when using network namespaces?
  • Do rediscoveries justify publication?
  • Advantages of information criteria over cross-validation
  • What is the Calvinist/Reformed solution to the Problem of Hell?
  • Is there a theorem in metaphysics that basically says, "Biting the bullet will be inevitable in any metaphysical theory?"
  • Condition IF in Tikz
  • Why does 写真に収めとこ mean take a picture? And what is the purpose of とこ in this case?
  • Installing MacTex on new machine -- where do my .cls and .sty files go?
  • An idiom similar to 'canary' or 'litmus test' that expresses the trend or direction a thing is pointed
  • How does the Warlock's invocation Gaze of Two Minds interact with a creature with the Invisible Condition?
  • Does the canonical distribution assign probability to microstates or macrostates?
  • How to stop Apple Sports live activities watch notifications?
  • Generator breaker trips when hooked up for backfeed
  • The Talking Dog's Treats
more hot questions lang-html

Từ khóa » Html Bold Line In Table