HTML CODE PART 1

ALIGNING THE WORDS.

In this example we are going to see the different types of alignments and we will learn how to use them.....

WHY ALIGNMENT IS USEFUL IN WEB DESIGN?

Alignment is one of those things that comes hand-in-hand when working with grid systems. The subject of alignment isn’t simply a matter of choosing whether or not you want to align text or images to the left or right of a design (though those decisions obviously still matter), instead, we employ alignment to improve our designs. Proper alignment in your designs will make them visually more appealing and will also make it easier for users to scan over a page, sub-consciously also offering a calmer reading experience.

All of the elements in your design will have to be aligned in some way, whether this is just plain text on your page, images mixed within the text (or even header or hero images), videos, buttons and call-to-actions, links (within the text or in modules such as a navigation section) or any other elements you might have.

Grids will go some way to helping you solve alignment issues or decisions in your design, but what we need to focus on here is how the different elements, groups of elements or particular modules in your design work together. I’ve emphasized from the beginning the importance of a cohesive user experience, and getting alignment right is one of those really important things that can help to enhance an experience for the user.

Alignment also allows us to make conscious decisions about where elements are placed and how they interact with each other. Creating good alignment bridges the visual gap between every element in your design, helping us to create relationships between the elements that we have. Otherwise, we’d have a design that has blocks of text and images all over the place, making little sense with no sense of structure.

There are three align

  1. Left align
  2. Center align
  3. Right align

EXAMPLE...

In this example we can see that there are three sentences all three are aligned in different forms we can use this kind of alignment and make our web page more beautiful, aligned, reactive and responsive

CODE

<html> 
<title>web page</title>
<head><center><h1>excercise</h1></center></head>
<body text="black">
<h2>
<p align="left">
[name]:kartik<br>
[age]:16
</p>
<p align="center">
[ph,no]:585551<br>
[adress]:banglore
</p>
<p align="right">
[rg,no]:karnataka<br>
[sem]:india sem
</p>
</h2>
</body>
</html>


OUTPUT






Comments

Popular posts from this blog

PROG9

ADDING TABLE IN HTML

PROG8