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

Sorry, we no longer support your browser Please upgrade to Microsoft Edge, Google Chrome, or Firefox. Learn more about our browser support.
    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, 7 months ago Modified 12 years, 7 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,05514 gold badges68 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
  • The ghost jobs haunting your career search
  • Breaking up is hard to do: Chunking in RAG applications
  • Featured on Meta
  • The December 2024 Community Asks Sprint has been moved to March 2025 (and...
  • Stack Overflow Jobs is expanding to more countries
Visit chat

Linked

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

Hot Network Questions

  • How to find the power of each individual bulb in a 50-bulb circuit
  • Why Are Guns Called 'Biscuits' In America?
  • Where in the world does GPS time proceed at one second per second? Is there a map?
  • Symmetrically scale object along profile on a single axis
  • Traversal Heap Sort (No Extractions)
  • Help designing a 24 to 5 volt converter
  • Nonograms that require more than single-line logic
  • Low impedance rail to rail logic output implementation?
  • Mentioning owning a business on an interview
  • Confused by excess of wires in light fitting (UK)
  • Options for wiring a switch and lights with minimal wire length
  • Citing volatile sources
  • USA Visa for Travel Agent
  • Did I accidentally delete files? How can I recover them?
  • Reference request on Niels Henrik Abel
  • Definite Integral doesn't return results
  • Can President sign a bill passed by one Congress once a new Congress has been sworn in if the bill is delayed being presented to him (there’s a lag)?
  • Why would a brief power-down NOT constitute a reboot?
  • Why is the position of the minus sign inside the tikz node shifted upwards when using the unicode-math package?
  • Is there a difference between V and F in German?
  • How to understand why 2nd overtone with shorter wave length than 1st overtone has lower frequency
  • apply_each_single_output Template Function Implementation for Image in C++
  • looking for help with a difficult similar triangle problem
  • How can I create TikZ annotations with arrows and braces for parts of a formula?
more hot questions lang-html

Từ khóa » Html Bold Line In Table