HTML Flashcards
What is the internet?
Its a wire that connects the client and the server
Why should we keep our html css and js separate?
For organisation
The golden rule of separation of concerns:
● html = content/structure
●css = style
●js = behavior/interaction
What is the anatomy of an html element?
An opening tag and a closing tag woth content in between
What is <p>?
A paragraph
What is <span> ?</span>
A short text
What is <pre> ?
An abomination
what is <ol> ?
ordered list
what is <ul> ?
unordered list
what is <section> used for
used to group similar elements
what is <article> used for ?
used for thing that can be shared (articles,blogposts…)
what is <aside> used for ?
used for extra elements (ads etc..)
what is <header> used for?
used for content at the beginning of your document.
what is <footer> used for?
used for content at the end of your document.
what is special about the <img></img> tag
its self closing