I just finished up my Product Landing page project. Looking for some feedback. How is the structure of my code, use of id/classes, color scheme(I tried to match it from The Simpsons), etc. Any feedback is appreciated!
The link is here:
Thanks,
Charles
1 Like
Hi @cdurflinger,
HTML
Line 22:
The frameborder attribute on the iframe element is obsolete. Use CSS instead.
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/fSfOEBriE3I?rel=0&controls=0&showinfo=0&start=16" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
MDN documentation:
<iframe>: The Inline Frame element - HTML: HyperText Markup Language | MDN
Deprecated attributes:
frameborder: Obsolete since HTML5
The value 1 (the default) tells the browser to draw a border between this frame and every other frame.
The value 0 tells the browser not to draw a border between this frame and other frames.
You should instead use the CSS property border and its longhand properties to create borders around <iframe>
s.
Design:
- Red background make black letters hard to read (see screenshots):
Screenshots
Cheers and happy coding
Note:
Tools used:
validation:
The W3C Markup Validation Service
screenshots and testing:
GitHub - puppeteer/puppeteer: Node.js API for Chrome