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>

Advertisement

2 thoughts on “Some hidden concepts in HTML

  1. Addriana Camis January 29, 2018 / 6:42 pm

    I love it! Thank you. It made it clear!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.