SOOPRO Pathshala provides HTML Interview Questions and Answers
HTML stands for HyperText Markup Language . It is the language for creating webpages.
HTML tags are the keywords that are used to produce web pages in various formats.
Marquee is used for scrolling text on a web page.
Attributes are the properties that can be added to an HTML tag.
b tag is used to display the written text in bold format.
i tag is used to display the written text in italic format.
u tag is used to display the written text in underline format.
makes text strong
Tim Berners-Lee
1991
HTML 5
.HTML or .HTM
140
The head tag contains meta information about the document
The title element specifies a title for the document
The body tag contains the visible page content
The h1 tag defines a large heading
The h1 tag defines a smallest heading
The declaration defines this document to be HTML5
The tag defines a paragraph
An unordered list uses <ul> </ul> tags, and each element of the list is written between <li> </li> tags. The list items are displayed as bullets rather than numbers.
An ordered list uses <ol> </ol> tags, and each element of the list is written between <li> </li> tags. The list items are displayed as numbers rather than bullet points.
An element in HTML is a set of tags that define a specific part of a web page. It consists of a start tag, content, and an end tag.
HTML creates a web page's structure and content, while CSS defines its appearance and layout.
An empty sequence of space characters is called white space in HTML. It is considered a single-space character.
The alt attribute displays text in place of an image whenever the image cannot be loaded due to technical issues.
The <meta> tag provides additional information about the web page, such as the author, description, and keywords. It is located within the <head> section of the HTML document.
HTML 5 is the updated version of HTML. What makes this newer version of HTML better is the added features that support audio, video, and new styling elements which differ from old version.
No, Not all tags need to be closed. There are self-closing tags that don't require closing tags.
Semantics in HTML are styles used to define the meaning of content elements in webpages. It provides meaning to the tags and code written.
You can underline text by simply using the <u> tag.
You can add a button to an HTML page by using the button tag.
A tag used for marking up a part of the text or document. It can also be used to group elements together for styling purposes.
SVG stands for scalable vector graphics. It is used to describe visuals in XML language.
The !DOCTYPE is an instruction used by web browsers to determine the version of HTML the website is written in.
HTML headings are defined using the <h1> to <h6> tags.
<h1> defins the most important heading with the biggest font size.
<h6> defines the least important heading and has the smallest font size.
To create a basic table in HTML:
Use the <table> tag to define the table.
Create rows with the <tr> tag.
Define headers using the <th> tags.
Add data cells using <td> (table data) tags.
You can use the color property in CSS to change the color of text in HTML.
To add a scroll bar in HTML, you can use CSS to control the overflow behavior of an element.
To add a footer in HTML, you can use a <footer> element or a <div> element with an appropriate class or ID.
To create a form in HTML, use the <form> element. Inside this element, add various input fields using different HTML elements such as <input>, <textarea>, <select> and more.
The <div> and <span> tags are both HTML elements used for grouping and structuring content, but they have different objectives.
<div> is a block-level element, which starts on a new line and takes up the full width available by default.
To embed audio in an HTML document, use the <audio> element.
HTML encoding refers to converting special characters in HTML into their respective character entities.
Optimize the load time of an HTML page by scalling down image and media sizes, compressing CSS and JavaScript files, merging files to decrease HTTP requests, and using lazy loading for non-urgent scripts and images.
The onblur() method specifies actions to take when an element loses focus. This frequently validates input fields before users move to the next field.
The <a> tag in HTML defines a hyperlink, allowing navigation from one page to another.
Hypertext Markup Language.
Comments in HTML can be added using the syntax.
Block-level elements in HTML start on a new line and occupy the full available width of their parent container. Examples of block-level elements include <div>, <p>, <h1> to <h6>, and <li>. Inline elements, on the other hand, do not create line breaks and only occupy the necessary width for their content. Examples of inline elements include <span>, <a>, <strong>, and <em>.
The "colspan" attribute in an HTML table is used to specify the number of columns that a table cell should span or occupy.s