Some hidden concepts in HTML


Hi

There are so many concepts available in HTML, which one we donot know. But if you are going to give some interview as web developer then they can ask this type of simple question

1. What is the Attribute in HTML ?

>> Attribute provide the additional information about element in HTML. It will be available in start tag

Example

<a href="https://chandradev819.wordpress.com">This is my blog</a> 

Note: Here href is the attribute

Some other example of attribute in HTML are
a. Class
b. Id
c. Style
d. Title

2. What is the HTML Meta element ?
>> Meta data is the information about data.

The tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.

The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services

One very good example of meta data to refresh page on every 2 second

We can use like this


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="refresh" content="2">
</head>
<body>
<a href="https://chandradev819.wordpress.com">This is my blog</a> 
</body>
</html>

Posted in HTML. 1 Comment »