Page 1 of 1

Start of HTML coding

Posted: Thu Mar 14, 2024 10:56 pm
by ProjectX
Starting with HTML

HTML us always located in an Index.html file.
To create html it needs to be located instead <html> </html> Making sure you're finishing the tags off with a / for the html to not error. Within the html tags you'll find <body> </body> Which will be shown like this.

Code: Select all

1. <html>
2. <body>

> Inserting text within the html body such as 
> <h1>Hello There, Welcome to my website</h1>

59. </body>
60. </html>

Re: Start of HTML coding

Posted: Wed Mar 20, 2024 12:12 am
by ProjectX
H1 to H6 Header Texts

How it codes

Code: Select all

<h1>Main Header</h1>
<h2>Sub Header</h2>

All the way to <h6>Header</h6> These are the main headers within the webpage.
The h1 through h6 heading elements are used to signify the importance of content below them. The lower the number, the higher the importance, so h2 elements have less importance than h1 elements. Only use one h1 element per page and place lower importance headings below higher importance headings.

Re: Start of HTML coding

Posted: Thu Mar 21, 2024 11:41 pm
by ProjectX
Adding a main title header to the page (different to the sub-headers to H1 to H6)

The title element determines what browsers show in the title bar or tab for the page.

Add a title element within the head element using the text below:

CatPhotoApp
<head>
<title>CatPhotoApp</title>
</head>

Re: Start of HTML coding

Posted: Thu Mar 21, 2024 11:55 pm
by ProjectX
All pages should begin with <!DOCTYPE html>

All pages should begin with <!DOCTYPE html>. This special string is known as a declaration and ensures the browser tries to meet industry-wide specifications.

Add this declaration as the first line of the code.
<html>
<!DOCTYPE html>
<html lang="en">