MTA HTML & CSS Questions and Answers 100% Pass
html The container for all of the HMTL markup. head Contains the information about the webpage. Does not show in the webpages. title text to display on the browser tab. body The container for the content that will be displayed on the webpage. h1 The biggest heading. h2 A subheading - the second biggest. p The paragraph tag. b Bold text tag. em Italic or emphasized text - a relative element. u Underline text tag. a href=""A link to Google/a Hyperlinked text. The filename for the first webpage in a website. li/li A single bullet in a list.ul/ul A container for a bullet-point list. ol/ol A container for a numbered list. body {background-color: orange;} Makes the color of the page orange. h1 {color: orange;} Makes the main heading's font color orange. body {width: 1000px; margin: auto;} Centers the entire webpage. li:hover {background-color: orange;} Changes the background-color of a list item to orange when the mouse cursor is over it. p {text-shadow: 2px 2px orange;} Adds an orange drop-shadow to letters in a paragraph. pseudo-class Used to define a special state of an element. text-decoration: none; Used to get rid of an underline, overline, line-through, or a combination of lines to selected text. External Style Sheet A file containing only CSS syntax (no document content or elements) and should carry a MIME type of "text/css." Inline Style Sheet Allows you to apply a unique style to one HTML element at a time. Internal Style Sheet Used to add a unique style for a single document. font-style Specifies the font style for a text
Document information
- Uploaded on
- May 8, 2024
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers