HTML comments can be used to _____ sections of code for testing purposes.
- 'disable'
- 'highlight'
- 'modify'
- 'run'
HTML comments can be utilized to 'disable' sections of the code. When developers are troubleshooting or testing changes to a web page, they might want to temporarily disable certain sections without deleting them. By placing the code inside HTML comment tags, it's effectively made invisible and non-executable to browsers, thus disabling it without removing it.
Can the "style" attribute override the styles defined in external stylesheets?
- No, external stylesheets always have higher priority.
- No, the "style" attribute can only modify existing styles.
- Yes, but only if the external stylesheet uses the "!important" declaration.
- Yes, inline styles generally take precedence over external stylesheet styles.
Inline styles (styles defined using the "style" attribute directly within an HTML tag) have a higher specificity than styles from external stylesheets. This means that they will typically override any conflicting styles specified in an external CSS file or a