HTML5 Viewport tag tutorial for beginners

html5 Viewport tutorial

Viewport its Usage in HTML

Viewport tutorial for responsive page

In HTML5 feature is for web developer or designer to take control the viewport, using this meta tag.
It is used for view the web pages as viewer requested specifications i.e width and height of based on screen resolutions automatically it will adjust the web page.
As a meta tag where ever this feature is require you need to use this as metadata.

Example: <meta name=”viewport” content=”width=device-width, initial-scale=1.0”> In discussion held on showing example of meta data tag of viewport will taken care of screen sizes based on screen adjusted.

HTML5 script tag usage

script tag its usage

In HTML script is used to write client-side JavaScript.
Will see an example with its usage

Example: <script> function firstFunction { document.getElementById("hello").innerHTML = "Hello World!"; } </script> <p id=”hello”></p>

html5 base tag
Base tag usage

In HTML base tag is used to specify base URL and base target for all relative URLs in a page.

Example: <base href=”” target=”_blank”>

Harisystems is optimized for learning, testing and training. courses are designed to be simplified to improve reading and basic understanding for beginners to expert level. Tutorials and examples are constantly reviewed to avoid errors, however we cannot warrant full correctness of all content. if any found need to correct write us at we Harisystems is not responsible for any with this tutorials, While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2020 by Harisystems. All Rights Reserved.
Copyright © Harisystems 2020