FE Interview Questions Flashcards
1
Q
What is the difference between an HTML element and a HTML tag?
A
HTML elements communicate to the browser how to render text.
It includes an opening tag, the content and a closing tag. (i.e. it’s a whole element in the DOM, a paragraph with text is a single element)
A HTML tag on the other hand is simply a tag with angle brackets (i.e. the p tag, the HTML tag).
2
Q
What tags have disappeared in HTML5?
A
frame, frameset, noframe, applet, bigcenter, basefont
3
Q
What are data- attributes good for?
A
They are new attributes that were added to allow the storage of sensitive page or application specific data for which no existing attributes exist.