Bruce Lee - Tribute Page

So I kind of missed the plot when it said to have your own style and only realised after I had finished the page.
I decided to keep it anyway because the colours worked well with the image I used etc.
Feedback is appreciated as I’m a super rookie at this.

Tribute page

Edit: Fixed certain issues with the Tribute page code.

1 Like

Hi

HTML Codepenlinter

  • The p2 element is not a valid HTML element.
  • The ‘align’ attribute is no longer valid on the pand should not be used.

At line 13

<p2>Time line of Bruce Lee's life:</p2>

At line 30

<p align="left">Although his life was short lived, he achieved a variety of things, ranging from his love for martial arts and his career as an actor. You can find more information at his <a href="https://en.wikipedia.org/wiki/Bruce_Lee" target="_blank">Wikipedia entry</a></p>

Documentation:


http://getbootstrap.com/css/#type-alignment

Cheers and happy coding :slight_smile:

Thanks for this, I understand the p2 part now, which was using the font size of the .body right?

However can you help me a little more with the align thing you mentioned. If I remove the align=“left” from that P element the text becomes a text-center style paragraph instead of being aligned to the left as it currently is, so what is happening there right now? And is there a way to remedy this for the code to be correct whilst achieving the same result?

You tried with the class text-left ( like the Bootstrap example)?

Cheers and happy conding :slight_smile:

Oh! Fixed it up now. Thanks for your help! Also one more question, i’m not sure if you know the answer or not. So as you said the align="left function is no longer valid, why does it still pull the text to the left? This is just me being curious.

https://www.w3.org/TR/html401/present/graphics.html#h-15.1.2
https://www.w3.org/TR/html401/conform.html#deprecated

Deprecated
A deprecated element or attribute is one that has been outdated by newer constructs. Deprecated elements are defined in the reference manual in appropriate locations, but are clearly marked as deprecated. Deprecated elements may become obsolete in future versions of HTML.
User agents should continue to support deprecated elements for reasons of backward compatibility.
Definitions of elements and attributes clearly indicate which are deprecated.
This specification includes examples that illustrate how to avoid using deprecated elements. In most cases these depend on user agent support for style sheets. In general, authors should use style sheets to achieve stylistic and formatting effects rather than HTML presentational attributes. HTML presentational attributes have been deprecated when style sheet alternatives exist (see, for example, [CSS1]).
Obsolete
An obsolete element or attribute is one for which there is no guarantee of support by a user agent. Obsolete elements are no longer defined in the specification, but are listed for historical purposes in the changes section of the reference manual.

Cheers and happy coding :slight_smile: