DIGIT-ARC read-only archive · snapshot: July 23, 2026

HTML help

12 posts · originally from https://geek.digit.in/community/threads/html-help.180412/

A
Abhishek532 Original post #1
Dec 31, 2013 at 12:02 PM
Hii Guys

I'm currently learning HTML.I wanted to know if there was a way to shift a Hyperlink text a few spaces forward??
Example-


Email __________ Password___________

Login

Is there a way to shift the "Login" button a bit forward under the "Password" field??

Thanks in advance

Abhishek532
harshilsharma63
Dec 31, 2013 at 4:38 PM
Hint: use div and relative positioning.
RBX
RBX #3
Dec 31, 2013 at 5:04 PM
For pure HTML, put a series of   before button control.

Code:
123 <input type="text" /><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" />

I hope you'll learn CSS as well. Therefore, try not to focus on styling right now; it is a better practice to keep it in a file different from HTML.
harshilsharma63
Dec 31, 2013 at 5:52 PM
For pure HTML, put a series of &nbsp; before button control.

Code:
123 <input type="text" /><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" />

I hope you'll learn CSS as well. Therefore, try not to focus on styling right now; it is a better practice to keep it in a file different from HTML.

Using inline CSS for just a few elements is okay. Also, it's more elegant than adding spaces.
RBX
RBX #5
Jan 1, 2014 at 10:22 AM
Using inline CSS for just a few elements is okay. Also, it's more elegant than adding spaces.

I agree, but perhaps not for someone still learning HTML.
harshilsharma63
Jan 1, 2014 at 11:08 AM
I agree, but perhaps not for someone still learning HTML.

I agree that CSS for an HTML begineer will not be very easy to understand, but why introduce him to bad practices (using &nbsp)? it's just like telling someone to use clrscr() in C.
RBX
RBX #7
Jan 1, 2014 at 11:48 AM
I agree that CSS for an HTML begineer will not be very easy to understand, but why introduce him to bad practices (using &nbsp)? it's just like telling someone to use clrscr() in C.

I meant to introduce him to HTML entities, forgot a link. HTML Entities

I never read a book on HTML and perhaps started using CSS quite early; learned about the HTML entities too late for someone claiming about having knowledge of HTML.
I find it is better to get a full understanding of features and their caveats before totally abandoning them. Even if we know that using clrscr() is a bad practice, using it and encountering errors is the best way to remember how bad it actually is.
A
Jan 1, 2014 at 10:55 PM
Thanks to everyone for replying


First of all guys I'm only 13


@RazorbladeXtreme Sorry but I couldn't understand your code. I think it's high level for me .Could you please suggest me some other easier commands?
@harshilsharma63 Can you give me an example and a syntax to help me understand this command?

Thanks in advance
Abhishek532
harshilsharma63
Jan 2, 2014 at 6:33 AM
You can check this link: HTML Layouts also check css layout syntax.
lywyre
lywyre #10
Jan 2, 2014 at 1:23 PM
@Abhishek

Try this for left margin:
Code:
<a href="#" style="margin-left:20px;">Login</a>

You can learn Basics of HTML, CSS and more at W3Schools Online Web Tutorials
beingGamer
Jan 2, 2014 at 2:17 PM
just use table with 2 rows 4 coumns & put the login button in 4th cell in 2nd row
_____________________________________
|username|_________|password|_________|
|________|_________|________|Login |
A
Jan 2, 2014 at 5:56 PM
Thanks to everyone!!

Problem solved ;)