HTML Documentation Standards

 HTML Documentation Standards

<!-- So, first things first here, I have just learned to write comments with HTML lol -->

I learned 2 things in this lesson I really want to remember

<!-- Again though isn't it really cool that I have learned to write comments hahahahaha -->

1) Linking At Will

i.e. or when you use code to turn any object you want to e.g. an image into a link 

Sooo....

if I want a picture of a cat and I want to link it to Google... I could link it like this (note: the cat below is NOT linked to Google lol):


<a href="https:..www.google.com" target="_blank"><img rrc="https://images.unsplash.com/photo-1641895560697-d2edb3d34897?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80" alt="An orange cat lying down"></a>

Phewph!

2) Linking Within the Same Page

The name speaks for itself

Soooooooo... then if I wanted to link to somewhere within the same page... then how would I do that???!

There are two elements to this... firstly, the relevant section needs to have an id assigned to it.

e.g.

<p id="name">My name is Susanna!</p>
<br>
<p id="age">I am 28 years old!</p>
<br>
<p id="dream">I want to be a programmer!</p>

And then at the top I might add a list:

<ul>
  <li><a href="#name">Name</a></li>
  <li><a href="#age>Age</a></li>
  <li><a href="#dream">Dream<a></li>
</ul>

The bit I find it the hardest to understand is the hashtag (#)! Why so hard to remember! (lol)

P.S. 

1 PART I'M really struggling to understand... is this:

Why the <head> and <title> sections?

And also previously from before... WHAT IS PARSING?

AND WHAT IS METADATA...?

Thank you...



Comments

Popular posts from this blog

Hello World

Yosemite

Where To Hide A Star