Best Computer Classes In Jaipur
HTML Interview Questions for Practice
When preparing for an HTML interview, here are some commonly asked questions:
What is HTML and why is it used?
- HTML (HyperText Markup Language) is the standard language for creating web pages and web applications. It structures the content on the web.
What are some new features introduced in HTML5?
- HTML5 introduced new elements like
<article>,<section>,<nav>,<header>,<footer>,<figure>,<figcaption>,<aside>, and<main>, among others. It also includes new APIs for local storage, canvas drawing, video and audio embedding, and more.
- HTML5 introduced new elements like
How do you create a hyperlink in HTML?
- A hyperlink is created using the
<a>tag with thehrefattribute. Example:<a href="https://www.example.com">Link Text</a>.
- A hyperlink is created using the
What is the difference between
<div>and<span>?<div>is a block-level element used for grouping larger chunks of content, while<span>is an inline element used for styling small parts of text or content within other elements.
How can you include CSS in an HTML document?
- CSS can be included in an HTML document in three ways: inline (using the
styleattribute within HTML elements), internal (using the<style>tag within the<head>section), and external (linking an external CSS file using the<link>tag).
- CSS can be included in an HTML document in three ways: inline (using the

Comments
Post a Comment