Tuesday, 14 February 2017

Menuitem Tag HTML 5

Menuitem Tag HTML 5 Example

The HTML <menuitem> element represents a command that a user is able to invoke through a popup menu. This includes context menus, as well as menus that might be attached to a menu button.
A command can either be defined explicitly, with a textual label and optional icon to describe its appearance, or alternatively as an indirect command whose behavior is defined by a separate element. Commands can also optionally include a checkbox or be grouped to share radio buttons. (Menu items for indirect commands gain checkboxes or radio buttons when defined against elements <input type="checkbox"> and <input type="radio">.)

<!DOCTYPE html>
<html>
<body>

Mark tag HTML 5

Mark tag HTML 5 Example 

Mark is highlighter as we used in our notebook to highlight something in same way you can do it on your webpage. In previous version of HTML you do with by changing background color of span.

Main tag HTML 5

Main tag HTML 5 example


The main tag specifies the main content of a document. The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application. The content inside the <main> element should be unique to the document. It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.

The main tag is better for SEO point of because search can better understand with the help main container text that what is exactly particular page is stand for.


<!DOCTYPE html>
<html>
<body>

Figure Tag HTML 5


Figure  Tag HTML 5 Example

HTML 5 introduce figure tag for apply image on your webpage. You may think that what about img tag? Yes it still in use but there was a problem with img tag, when you want to apply some caption to related image then you will add some HTML tag but if you are using figure tag then you have figure caption tag for display caption. Figure tag is container of graphics element which is use in conjunction of img and figure caption tag. So figure has better description processing option.

There are some exceptions. Graphics that are just graphics should still be listed as <img>. The reason regular graphics deserve different treatment is because they’re not necessary to the content on the page. If someone can’t see the graphic, they’d still get a clear message from your site.

<figure>