HTML
Basic I
<!DOCTYPE html>
Always put <!DOCTYPE html>
on the first line. This tells the browser what language it’s reading (in this case, HTML).
<html>
and </html>
Always put <html>
and </html>
on the next line. Theses start and end the HTML document.
<head></head>
and <body></body>
There are always two parts to an HTML file: the head and the body. The head contains information about your HTML file, like its title.
<title></title>
belongs to HEAD tags
The content appeared in browser’s tab.
<p></p>
belongs to BODY tags
Paragraph, contains text and so on which you want to display.
<h1></h1>
belongs to BODY tags
The content between this tag will be the biggest according to how smaller the number after the letter ‘h’. From h1 to h6, there are 6 sizes heading you can choose.
Basic I Mid-Breath
- HTML is used to give websites structure.
- We open HTML files using a browser, and the browser renders (shows us) the file.
- HTML files have a < head> and a < body> (just like you!)
- In the head, we have the < title> tags, and we use these to specify the webpage’s name.
- How to make headings and paragraphs.
<a href="URL"></a>
First, there’s an opening < a> tag and that tag has an attribute called href. The href value tells your link where you want it to go, finally, you have your closing < /a> tag.
<img src="URL"/>
We use an image tag, like so: < img>. This tag is a bit different from the others. Instead of putting the content between the tags, you tell the tag where to get the picture using src. It’s also different because there is no ending tag. It has / in the tag to close it: < img src=”url” />.
<a href="URL"><img src="URL"/></a>
Combining the link and image tags, then we can get a image with available for access to another link.
Basic I Summery Instance
<!DOCTYPE html>
< html>
< head>
< title>TITLE < /title>
< /head>
< body>
< h1> H1 < /h1>
< p> PARAGRAPH < /p>
< a href="URL"> < img src="URL"/> < /a>
< /body>
< /html>