HTML Flashcards
What does HTML stand for?
Hypertext Markup Language
What is a website?
A website is a collection of individual but related web pages often stored together and hosted by a web server. Web pages are usually held together and hosted by a web server.
What are the three layers of web pages?
The content layer
The presentation layer
The behaviour layer
What is a content layer?
This layer is where the content of the webpage, such as text and images, are placed. It is also where the page structure, such as frames, tables and hyperlinks are placed.
What is a presentation layer?
This layer is where the visual impact of the web page is created and contains the styles that are created and added to be used, such as colour themes fonts etc. You will develop the presentation layer of your web page.
What does CSS stand for?
cascading stylesheet
What is the behaviour layer?
The layer is where all actions, such as controlling elements (except hyperlinks) on a webpage are created. These are usually created using scripting languages like JavaScript.
What is the head layer?
The head section starts with <head> and closes with </head>. The web browser does not usually display objects between these tags. Only a few titles are universally accepted within the head section of a web page.
How do you write a comment in HTML?
To leave a comment in HTML place a <!-- to start the comment. To end the comment you should place a --> after the comment.
What are the basic building blocks of an HTML document?
The basic building blocks of an HTML document are elements, which are represented by tags.
What is the purpose of a DOCTYPE declaration in HTML?
The DOCTYPE declaration specifies the version of HTML used in the document and helps the web browser to display the document correctly.
What is the difference between an HTML element and an HTML attribute?
An HTML element is a piece of content that is surrounded by opening and closing tags, while an HTML attribute is a characteristic of an element that is specified within the opening tag.
What is semantic HTML?
Semantic HTML is a way of writing HTML that gives meaning to the content on a web page, rather than just describing how it should look.
What is the purpose of the alt attribute in the IMG tag?
The alt attribute provides alternative text for an image, which is displayed in place of the image if it cannot be loaded or read by assistive technologies for accessibility purposes.
What is the difference between an inline element and a block-level element in HTML?
Inline elements are displayed inline with the surrounding text, while block-level elements take up the full width of the container and create a new line after the element.