๐ฉ๐ปโ๐ HTML Questions
โ HTML vs HTML5
โ HTML element vs tags
โ HTML Semantic elements A semantic element clearly describes its meaning to both the browser and the developer.
Examples of non-semantic elements:
<div>and<span>- Tells nothing about its content.Examples of semantic elements:
<form>,<table>, and<article>- Clearly defines its content.article aside details figcaption figure footer header main mark nav section summary โ Semantic HTML
An important principle in web design is the idea of using HTML elements to indicate what they actually are, rather than how they may appear in the browser by default. This is known as using semantic HTML.
Some of the benefits from writing semantic markup are as follows:
- Search engines will consider its contents as important keywords to influence the page's search rankings (see SEO)
- Screen readers can use it as a signpost to help visually impaired users navigate a page
- Finding blocks of meaningful code is significantly easier than searching though endless divs with or without semantic or namespaced classes
- Suggests to the developer the type of data that will be populated
- Semantic naming mirrors proper custom element/component naming
โ What is the purpose of
Doctypeโ What is
OGtag why is that required and how that worksโ Why
metatag and what it serveโ Why its important to use the
nav,article,aside,menu,header,footerwhen every things can be achieve just bydivโ HTML Data attributes
โ What does
preandcodetag doesโ
spanvsdivโ Why
sampandkbdtagsโ Accessibility in HTML and explain
ARIAโ
a11yin Webโ What is accessibility and why is that required
โ What is the purpose of
altattribute in Image element in HTMLโ LazyLoading image
โ Meta type and Doctype purpose
โ Working of iframe
โ Self closing tags & Optional tag
โ HTML template language
โ HTML markup validity
โ HTML Preprocessor