How To Use HTML Attributes
Guys, we have seen few HTML Tags and their usage like <h1></h1> <h2></h2> <p></p> and other tags. We used them so far in their simplest form, but most of the HTML tags
can also have attributes, which are extra bits of information.
So Guys , If you feel that this tutorials help you in anyways, you can support us to create or writing more contents by donating here , I have put the link in description below....
For PayTm : +918518013539
For PayPal Account : https://www.paypal.me/bschandel
For PayPal Email : balwantchandel007@gmail.com
An Attribute is used to define the characteristics of an HTML element and is placed inside the
element's opening tag. All attributes are made up of two parts: a name and a value:
The Name is properly you want to set. For example, the paragraph element
in the example carries an attribute whose name is align, which you can use to indicate
the alignment of paragraph on the page.
The value is what you want the value of the property to be set and always put within
quotations. The below example shows three possible values of align attribute: left,
center and right.
Copy And Paste (Base Code)
index.html (Base Code)
<html> <!-- Opening Tags -->
<head>
<title>Welcome to my Static Websites</title><!-- Define Title -->
</head>
<body> <!-- Body Openning -->
<h1 align='center'>Welcome to my First Web Page</h1><!-- Define heading -->
<p align='left'>Possible Attributes Examples</p>
<p align='right'>Possible Attributes Examples</p>
<p align='right'>Possible Attributes Examples</p>
</body><!-- Body Closing -->
</html><!-- Closing Tags -->
Copy And Past this code on Your Notepad or any editor , save this file whatever name you want but .html extension is must define. Enjoy the Programming... And If you face any problem to this code. So, Feel Free to Comment us. I'll reply your comment as soon as possible.
Copy And Past this code on Your Notepad or any editor , save this file whatever name you want but .html extension is must define. Enjoy the Programming... And If you face any problem to this code. So, Feel Free to Comment us. I'll reply your comment as soon as possible.
So Guys , If you feel that this tutorials help you in anyways, you can support us to create or writing more contents by donating here , I have put the link in description below....
For PayTm : +918518013539
For PayPal Account : https://www.paypal.me/bschandel
For PayPal Email : balwantchandel007@gmail.com
Comments
Post a Comment