The header (Developer Portfolio)

Generate a developer portfolio as HTML from simple key: value lines. This stage reads name, title, bio and email and prints the header exactly like this (title, bio and email lines only if given; name defaults to Anonymous): Escape &, <, and " in every value. Other lines are ignored for now.

Input: Lines key: value.

Output: The header HTML.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Split each line at the first : only: values may contain colons.

More Developer Portfolio practice