CSE223 Introduction To Web Authoring
CSE223 Introduction To Web Authoring
Problem Statement: -
Align a picture in the left, middle and right of the HTML page.
Solution: -
Left Alignment of picture named Sparky with extension JPEG, default alignment to the left,
<img src="Sparky.jpeg" alt="Sparky Image" width="250" height="350">
1
<!DOCTYPE html>
<html>
<header>
<Title>Marwan Walaa</Title>
</header>
<Body>
<br>
<br>
</Body>
</html>
Another Solution
We can use another way using text align in a <div>.
</div>
2
Align the image center,
<div style="text-align: center;">
</div>
</div>