Q&A for How to Insert Spaces in HTML

Return to Full Article

Search
Add New Question
  • Question
    If I define lines of text as individual paragraphs, I get a blank space between lines. How do I get rid of that space?
    Community Answer
    Use a line break instead of the paragraph break.
  • Question
    Can I specify more than one CSS class for any HTML element?
    Community Answer
    Yes, it's very simple too. Inside the class attribute, add all the classes you want the element to have, separated by a space. For example, if you had a tag needing the classes "blueFont" and "underline," the class attribute would be: class="blueFont underline"
  • Question
    How do I space HTML code vertically?
    Community Answer
    The most basic is to simply style it with margin and/or padding. Alternatively, read into absolutely positioning an element, then you can specify exactly where on the page you want in, pixel for pixel.
  • Question
    How can I put text side by side?
    Community Answer
    Make a or tag right below the tag for the text you want to side by side. Make sure its in the table tag.
  • Question
    What is the code to add padding in HTML?
    Chloe Lin
    Community Answer
    You can use CSS. In between the curly brackets, type padding: 10px. You can replace 10px with anything, you can use measurements, pixels, percentages, etc..
  • Question
    How to make spaces between letters?
    Stockriderj
    Community Answer
    Just type your letter with a space in between, like: "a b". HTML will allow you to do that.
Ask a Question

      Return to Full Article