Q1: What are the advantages of HTML5 over previous version
Q2: Difference between HTML tags and elements?
Q3: What is empty tag/element
Q4: What is a ‘Marquee’ Tag in HTML?
Q5: What new features were added to HTML5?
Q6: Difference between span and div?
Q7: Difference between localStorage and sessionStorage.
Q8: What is Geolocation API in HTML5
Ans: This is a browser api that is used to get user location.
this method getCurrentPosition() is used to get latitude & longitude
<!DOCTYPE html>
<html>
<body>
<p>Click here to get the position.</p>
<button onclick="getLocation()">click here</button>
<p id="demo"></p>
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
</body>
</html>
Q9: Is all HTML tags in a pair?
Q10: How to insert a comment in HTML?
Q11: What is an image map is HTML?
Q12: How to add copyright symbol in HTML
Q13: How to keep list elements straight in HTML
ANS: Use Styel
<style>
ul{
list-style-type:none;
}
li{
display:inline-block;
}
</style>
then list :
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
Q14: Describe basic structure of the HTML
Ans: <html>
<head>
<title></title>
</head>
<body>
<h1>hhh </h1>
</body>
</html>
Note: Write your answer in comment section
Q1: What are the advantages of HTML5 over previous version
ReplyDelete1. It will help to use audio or video with loading flash player on browser.
ReplyDelete2.it will provide more element like Article, nav, section,header , footer...
3.cross browser supporting.
4.more lightweight.
5.Goe location to get proper address.
(Ibrahim Mohammed)
HTML5 isn't a proprietary code. ...
ReplyDeleteIt provides audio and video support. ...
The coding with HTML5 is clear and consistent. ...
There is more consistency with websites because of HTML5. ...
There are more page layout elements available for your content. ...
It offers search engine optimization benefits.
HTML5 isn't a proprietary code. ...
ReplyDeleteIt provides audio and video support. ...
The coding with HTML5 is clear and consistent. ...
There is more consistency with websites because of HTML5. ...
There are more page layout elements available for your content. ...
It offers search engine optimization benefits.
Shivam Verma
In html5 all browser support is there whether browser supports or not.....geolocation is there and offline application cache is there in html5... Error handling feature also there in html5
ReplyDelete(Bushra zainab siddiqui)🤚
DeleteAdvantages of HTML5 over HTML previous version are.
ReplyDelete1. SIMPLE AND CONSPICUOUS SYNTAX.
2. IN-BUILT MULTIMEDIA FEATURE.
3 COMPATIBILITY
4. UPDATE WITH USER GEOGRAPHICAL LOCATION
5. CLIENT SIDE STORAGE.
(IRSHAD ANSARI)
3)HTML elements with no content are called empty elements or empty tag.
ReplyDeleteis an empty element without a closing tag.
Empty elements can be "closed" in the opening tag like this:
. HTML5 does not require empty elements to be closed.
Shivam verma
HTML tags means only character or word which is covered by angle brackets<>.these are the example of HTML tag.. HTML elements means+"content"+combination this is heading (bushra zainab siddiqui)
ReplyDeleteAn empty tag is a tag which has only starting tag and no closing tag.. (Bushra zainab siddiqui)
ReplyDeleteAnswer 2.
ReplyDeleteTags
Tags are the bits that are encapsulated in those angular brackets (which are basically ‘less than’ and ‘greater than’ symbols): < and >.
ELEMENT:
An element (usually) consists of two tags: the opening tag and the closing tag. It starts with the opening tag, continues until it’s closed, and consists of everything in between, including other element.
Answer 3.
Empty tag:
These are the tags that only have to start tag but do not have any closing tag. There are many tags which are called empty tags: -
1.img tag
2. hr tag
3. br tag
IRSHAD ANSARI
I added some example of all the question. But is shows some error of tag that not allowed.
ReplyDeleteSo sorry
Same happend with me....i also added example of Q but something went wrong....
DeleteYes I have checked, it is not allow in comment section,
DeleteBot no issue, the objective is to you guys should know that.
Answer 5.
ReplyDeleteNew features added to HTML 5
Defines an article in a document
Defines content aside from the page content
Isolates a part of text that might be formatted in a different direction from other text outside it
Defines additional details that the user can view or hide
Defines a dialog box or window
Defines a caption for a element
Defines self-contained content
Defines a footer for a document or section
Defines a header for a document or section
Defines the main content of a document
Defines marked/highlighted text
Defines a scalar measurement within a known range (a gauge)
Defines navigation links
Represents the progress of a task
Defines what to show in browsers that do not support ruby annotations
Defines an explanation/pronunciation of characters (for East Asian typography)
Defines a ruby annotation (for East Asian typography)
Defines a section in a document
Defines a visible heading for a element
Defines a date/time
Defines a possible line-break
Answer 4
ReplyDeleteThe MARQUEE tag is used to auto scroll the text, image and other inline-block elements. The HTML marquee tags create a scrolling Or a moving elements across HTML document vertically or horizontally. This tag is very helpful for creating a notifications, or moving content. But marquee is an old tag that is why it is called as out dated tag and it is no longer available in HTML5.
(Bushra zainab siddiqui)
Web application can store data locally within the users browser HTML web storage provides two objects for storing data on the client windows. Local Storage-stores data with no expiry date. Windows. Session Storage-stores data for once(data is lost when the browser tab is closed). (Bushra zainab siddiqui).
ReplyDelete