Learn Enough Society
Certificate of Course CompletionThis page certifies that kartikmandar has completed Learn Enough HTML to Be Dangerous! 🎉
README.md
, taking care to use at least a few Markdown tags. What is the result at GitHub?
<username>.github.io/<repo_name>/README.md
in a browser? What does this imply about including sensitive information in a public website repo?
index.html
with the markup from Listing 1.2. Can you guess what the a
tag does?
</title>
from index.html
as shown in Listing 1.9 and verify that it breaks the page (Figure 1.25). This underscores the importance of closing your tags. Confirm using the HTML validator that the resulting code fails validation.
index.html
, confirm that the browser ignores the extra whitespace (including newlines) in the mailing address.
<br>
to the end of each of the first two lines of the address, obtain the nicely formatted address shown in Figure 1.26.
h1
down to h3
. By experimenting directly in index.html
, determine how many levels of headings HTML supports.
em
and strong
tags? Is it possible to make something both italic and bold?
target="_blank"
to each of the Twitter links from Listing 2.10. (For technical reasons, it’s important to add the rather obscure rel="noopener"
as well.) Does clicking on one of the links open in a new tab, as shown in Figure 2.8?
a
and img
tags, as shown in Listing 2.13. (Be sure to replace FILL_IN
with the right URL.)
How does this change the page’s (a) appearance and (b) behavior?
index.html
, let’s add a link to the Learn Enough Twitter account. First, download the Twitter logo as shown in Listing 2.14. Then, add a link to both the text and the logo image, as shown in Listing 2.15. Be sure to replace FILL_IN
with the right path to the image. Note that Listing 2.15 introduces inline styling, which is the subject of Chapter 4. Extra credit: Follow Learn Enough on Twitter here.
strong
, a
, and img
tags. Why does the img
tag example use the Bitly link shortener?
code
tag. Does the page validate?
header
, div
, and span
to the tables in tags.html
. Hint: Like div
, header
is a block element.
ol
, ul
, and li
tags to tags.html
. Which are block elements and which are inline?
color: red;
has the same effect as color: #ff0000;
. What are the advantages of each approach?
#cccccc
is? Temporarily modify the color of the span
in Listing 4.2 to check your guess. How does it differ from #ccc
?
float: left
to float: right
in Listing 4.4?
margin-right: 40px
?
padding: 10px;
to the td
elements for the first two block elements in the table in tags.html
. How annoying would it be to add them to every td
? How annoying is it to change 10px
to 20px
everywhere? (This is one reason why in real life you always use CSS.)
margin: 0 auto;
for the book cover image (together with display: block;
) without changing the float rule? What does this tell you about the precedence of the two rules?
padding
to margin
in Listing 4.9. What difference does this make in the appearance?
margin: 0 0 0 10px;
to margin-left: 10px;
in Listing 4.13. What, if anything, changes in the appearance?
text-decoration
. The result should look something like Figure 4.16.
html
, head
, body
, title
, and meta
.
tags.html
. (By our count there are five, after including the tags from the previous exercise.)
"image-link"
) and move the corresponding style rule into main.css
. Does the page remain unchanged as required?
main.css
and confirm that the appearance of the pages stays the same.
founders
to the “Founders” h2
tag, show that you can visit that section of the page directly by pasting the URL sample_website/index.html#founders into your browser’s address bar.
Get free access to all 10 Learn Enough courses (including the Ruby on Rails Tutorial) for 7 days!
We require a credit card for security purposes, but it will not be charged during the trial period. After 7 days, you will be enrolled automatically in the monthly All Access subscription.
BUT you can cancel any time and still get the rest of the 7 days for free!
All Learn Enough tutorials come with a 60-day 100% money-back guarantee.