Start of HTML coding

Everything HTML in here.
Post Reply
User avatar
ProjectX
Site Admin
Posts: 95
Joined: Thu Mar 14, 2024 10:56 pm
Location: UK, England
Contact:

Start of HTML coding

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>
BUILDING UP A PORTFOLIO FOR A BRIGHTER FUTURE!
Freelance Web development | Web Maintenance | Graphics Designer | Social Management
User avatar
ProjectX
Site Admin
Posts: 95
Joined: Thu Mar 14, 2024 10:56 pm
Location: UK, England
Contact:

Re: Start of HTML coding

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.
BUILDING UP A PORTFOLIO FOR A BRIGHTER FUTURE!
Freelance Web development | Web Maintenance | Graphics Designer | Social Management
User avatar
ProjectX
Site Admin
Posts: 95
Joined: Thu Mar 14, 2024 10:56 pm
Location: UK, England
Contact:

Re: Start of HTML coding

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>
BUILDING UP A PORTFOLIO FOR A BRIGHTER FUTURE!
Freelance Web development | Web Maintenance | Graphics Designer | Social Management
User avatar
ProjectX
Site Admin
Posts: 95
Joined: Thu Mar 14, 2024 10:56 pm
Location: UK, England
Contact:

Re: Start of HTML coding

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">
BUILDING UP A PORTFOLIO FOR A BRIGHTER FUTURE!
Freelance Web development | Web Maintenance | Graphics Designer | Social Management
Post Reply