1.Does the HTML tags and elements mean the same?
No. HTML elements are basically defined by the starting tag, may contain some content and a closing tag.For example, <h2>Heading2</h2> is a HTML element but just <h2> is a starting tag and </h2> is a closing tag.
2. What does tags and attributes mean HTML?
Tags are basically the primary component of the HTML and they basically define how the content should be structured/formatted, whereas Attributes can be used along with the HTML tags to basically define the characteristics of the element. For example, <p align=”center”>I am a Paragraph</p>, in this the term ‘align’ is basically the attribute using by then which we will align the paragraph to show in the center of the view.
3. What are void elements in HTML?
HTML elements which do not have closing tags or do not need to be closed are Void elements. For Example <br />, <img />, <hr />, etc.
4. What is the ‘class’ attribute in HTML?
The class attribute is used to specify the class name for an HTML element. Multiple elements in HTML can have the same class value. Also, it is mainly used to associate the styles written in the stylesheet with the HTML elements.
5.What is the difference between the ‘id’ attribute and ‘class’ attribute of HTML elements?
Multiple elements in HTML can have the same class value, whereas a value of id attribute of one element cannot be associated with another HTML element.
6.What does multipart form data mean?
Multipart form data is one of the values of the enctype attribute. It is used to send the data present in the file to the server-side for processing some information.
7.Describe the basic HTML layout structure?
Every web page on the internet has different many components to display the specifies content on to a specific UserInterface.
But still, there are few things which have to be templated and are globally accepted by everyone way to structure the web page, such as:
<header> Tag: It basically stores the beginning information about the web page.
<footer> Tag: It represents the last section of the webpage.
<nav> Tag: It basically holds navigation menu of the HTML page.
<article> Tag: It is a set of related information.
<section> Tag: It is used inside the article block to define the basic structure of a page.
<aside> Tag: It contains the Sidebar content of the page.
8.What are the various formatting tags that are available in HTML?
HTML has many formatting tags:
<b> – It makes the text bold
<i> – It makes text italic
<em> – It basically makes the text italic but with some added minute semantics importance
<big> – It increases the font size of the text by a maximum of one unit / one pixel
<small> – It decreases the font size of the text by a maximum of one unit / one pixel
<sub> – It makes the text basically a subscript
<sup> – It makes the text basically a superscript
<del> – It basicaly displays the text as strike out text
<strong> – It basically marks the text as important
<mark> – It highlights the text
<ins> – It basically displays the as added text
15. What is the difference between the <strong> tag, <b> tag and <em> v/s <i> tags?
The effect of these many tags on a normal webpage of the using the tags <strong>, <b> and <em>, <i> is the same. <b> and <i> tags stands basically for bold and the italic.
These are the two tags which basically only apply the font styling and bold tag which is nothing but <b> tag, which just adds more ink to the text, these tags don’t say anything about the text.
Whereas, <strong> and <em> tags represent that the span of text is of strong importance or more importance and emphatic stress respectively than the rest of the text. These tags have semantic meaning.
16.What is the main significance or importance of the <head> tag and the <body> tag available in HTML?
<head> tag is a tag which basically provides the information about the HTML document that we have created.
<head> tag should always be enclosed within the <html> tag, because <html> tag is the parent for the <head> tag.
This tag should always contain the metadata(Data about the web page) about the webpage and the tags which are enclosed by head tag are available like <link> tag, <meta> tag, <style> tag, <script> tag, etc.which are basically not displayed on the web page.
Also, there should always be only one <head> tag in the entire Html document that has been created and it should always be present before the <body> tag.
<body> tag is a tag that will define the body of the HTML document.
It should always be enclosed within the <html> tag, as it is the child of the <html> tag.
All the contents which needs to be displayed on the web page like images, links, buttons, text, audio, video, contents, using elements like <p>, <img> tag, <audio> tag, <heading> tag, <video> tag, <div> tag, etc. will always be enclosed by the <body> tag.
Also, there can be only one body tag in the complete HTML document and will always be after the <head> tag.
SevenMentor Pvt Ltd
Call the Trainer and Book your free demo Class for now!!!
© Copyright 202! | Sevenmentor Pvt Ltd.