- COMP.CS.200
- 1. HTML: basics
- 1.9 HTML1: Attendance and activity (Sample solutions)
HTML1: Attendance and activity (Sample solutions)ΒΆ
During this session, one team shows the sample solution. The rest of the teams are going through the following questions:
Why do we use the head and body tags in the html file?
Why do we need to set character encoding for the webpage?
Why did we use UTF-8?
How do we declare character encoding for our webpage?
What is https://validator.w3.org/ used for? Why is validation important?
What are headings in a web page?
What is the tag for the main heading element?
Why is the order in which you use different heading levels important?
About <br> tag:
Why you should use <p> to mark paragraphs instead of <br> to simply create line breaks and empty lines?
Can you think of any situations where using <br> would be beneficial or even appropriate?
About lists:
When should you use <ul> and when <ol>?
What other kinds of lists there are in HTML and when are they used?
<em> and <strong> are used to indicate emphasis or strong importance. Can you name other tags which are used to attach semantic meaning to inline text passages?
<sup> is used for superscript but how would you mark subscript?
Recall the anchor tag states: active, unvisited, visited. Which component does keep track of the state? Is state forever? How can you restore unvisited state?
UTF-8 is using space in a very optimal way. Sisu has selected UTF-16 LE as its encoding. What do you expect to happen to the file size in the conversion UTF-16->UTF-8?
Linking the style finalizes the style. Where in the document should the external style file to be linked?
A+ presents the exercise submission form here.