+ 1
Let's see if anyone can align two words left and right on same line with only html
haha
11 Answers
+ 4
<body>
Hello<div align="right">Yash</div>
</body>
+ 3
@Yash Jain Yes they are. <p> element insert a line just in the end
+ 3
@Yash Jain "align" is a deprecated way of align, if it were css then I would have to type "style='align..."
+ 3
@Yash Jain Sorry, I forgot that I wasn't the only one IvĂĄn here xD
+ 2
@IvĂĄn your method does not align them on the same line but @Ivan G's method align them but he uses css so can anyone do that with only html
+ 1
They aren't aligned on the same line
+ 1
Nice try IvĂĄn
0
One of possible ways:
<body>
Hello <div style="float:right;">Yash</div>
</body>
0
U are kinda using css @Ivan G
0
U are supposed to use only html@Ivan G
0
@Yash I do use only HTML with style attributes. My code doesn't contain any Cascade Style Sheets. So you're wrong. And these attributes like align are not recommended to use AFAIK.