+ 1

Let's see if anyone can align two words left and right on same line with only html

haha

31st Dec 2016, 7:35 PM
Yash Jain
Yash Jain - avatar
11 Answers
+ 4
<body> Hello<div align="right">Yash</div> </body>
31st Dec 2016, 8:06 PM
IvĂĄn
IvĂĄn - avatar
+ 3
@Yash Jain Yes they are. <p> element insert a line just in the end
31st Dec 2016, 11:49 PM
IvĂĄn
IvĂĄn - avatar
+ 3
@Yash Jain "align" is a deprecated way of align, if it were css then I would have to type "style='align..."
1st Jan 2017, 5:28 AM
IvĂĄn
IvĂĄn - avatar
+ 3
@Yash Jain Sorry, I forgot that I wasn't the only one IvĂĄn here xD
1st Jan 2017, 5:36 AM
IvĂĄn
IvĂĄn - avatar
+ 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
1st Jan 2017, 5:35 AM
Yash Jain
Yash Jain - avatar
+ 1
They aren't aligned on the same line
31st Dec 2016, 8:08 PM
Yash Jain
Yash Jain - avatar
+ 1
Nice try IvĂĄn
31st Dec 2016, 8:10 PM
Yash Jain
Yash Jain - avatar
0
One of possible ways: <body> Hello <div style="float:right;">Yash</div> </body>
31st Dec 2016, 11:45 PM
Ivan G
Ivan G - avatar
0
U are kinda using css @Ivan G
1st Jan 2017, 5:00 AM
Yash Jain
Yash Jain - avatar
0
U are supposed to use only html@Ivan G
1st Jan 2017, 5:03 AM
Yash Jain
Yash Jain - avatar
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.
1st Jan 2017, 10:49 AM
Ivan G
Ivan G - avatar