Tuesday

Web Designing 6: HTML Attributes and Values

Welcome to my blog, I’m happy to know that you are reading this post now. A couple of days ago, we started this tutorial on web designing and I believe that if you have been going through this tutorials, you will be able to design a simple website that may contain at least your name and probably your whole profile. 
Today, we will still be discussing another important and yet fundamental to web designing.

What is HTML Attribute? HTML Attributes are information added to the elements and used to include a particular characteristic to the HTMLelements. If you are new to this blog or has forgotten what HTML elements means, then you have to read it up Here
HTML attributes are always written together with a value (e.g. name="value") and are put at the opening tag of an HTML element.

For example, if you want the heading to be placed at the center of your page instead of being displayed on the left by default, you can add the align attribute to the tag:
<h1 align="center">
The value will give the specific information about the attribute. A value is commonly written with the equal sign and is enclosed by quotation marks. (e.g. name="value")

Example 3   
<!---Webpage starts here -->     
<html>   
<head>   
<title>All About HTML</title>   
</head>   
<!---Content starts here -->     
<body>   
<h1 align="center">What is HTML?</h1>   
<p> I learnt HTML programming at www.domanto.com  </p>   
</body>   
<!---Content ends here -->     
</html>   
<!---Webpage ends here -->     

With these tools as basic knowledge to web designing, our next lesson will be based on other tags to beautify our websites, there are other tags like the color tags which most of us will definitely be interested in using for designing.


Assignment: What is the difference between HTML elements and HTML attributes?

0 comments:

Post a Comment