Connect with us

HTML

HTML Attributes

An attribute define the additional information of an HTML element and is placed inside the element’s opening tag. An attribute come in name/value pairs

mm

Published

on

An attribute define the additional information of an HTML element and is placed inside the element’s opening tag. An attribute come in name/value pairs ex: name=”value”.

The Lang Attribute

The language is declared in the lang attribute.
Example:–

<!DOCTYPE html>

<html lang=”en-US”>

<head>

<title>The language Attribute Example</title>

</head>

<body>

<p> en define English language and US define county </p>

Code…..

</body>

</html>

The Title Attribute

The title attribute gives a suggested title for the element. It is also displayed as a tooltip when cursor comes over the element or while the element is loading.

Example:–

<!DOCTYPE html>

<html lang=”en-US”>

<head>

<title>The Title Attribute Example</title>

</head>

<body>

<span title=”webpage/ element html”> this is example of title of element or web page </span>

Code…..

</body>

</html>

The Class Attribute

The class attribute is used to associate an element. We can use more the one class of one element.
Example:–

<!DOCTYPE html>

<head>

Also Read :   WooCommerce Development Company

<title>The Class Attribute Example</title>

</head>

<body><span class=”ele1 ele2 ele3 ……”> this is example of class of element </span>

Code…..

</body>

</html>

The Style Attribute

The style attribute use for specify Casecading Style Sheet (CSS) rules within the element. Style attribute are width, color, height, text decoration, align, bgcolor, id etc…

Example:–

<!DOCTYPE html>

<head>

<title>The Style Attribute Example</title>

</head>

<body>

<span style=”color:#fff;”> this is example of styling of element </span>

Code…..

</body>

</html>

Hi, Thank you for reading my article. I am Victor, a professional blogger from Jaipur, India.I started webetutorial for blogging & sharing solution for developer questions, and now it’s empowering globally by helping them to make money.I am writing about starting & managing a blogs, WordPress, Magento, Social Media, SEO, Marketing, making money online, Investment, Finance, Gadgets, Fitness and more.

Continue Reading
Advertisement
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

eight − three =

HTML

HTML Character Sets

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

mm

Published

on

To display an HTML page properly, a web browser must know the character set to use.

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

ASCII supported numbers (0-9), English letters (A-Z), and some special characters. UTF-8 (Unicode) covers almost all of the characters and symbols in the world.

ISO-8859-1 was the default character. It also supported 256 different character codes.
The HTML charset Attribute:-
This is specified in the <meta> tag:-

<meta charset=”UTF-8″>

Also Read :   HTML Summary
Continue Reading

Subscribe to our newsletter

Enter your email address to subscribe to blog and receive notifications of new articles by email.
100% Privacy. No spam guaranteed

Trending