How to Build a Website - By Logan E
Basic Tags
Now that you know just what a tag is, lets go through some examples of common tags.
Used in <body>
<p>
- P stands for PARAGRAPH
- Anything written between <p> and </p> will be displayed on the screen as regular text, with a bit of margins between other on-screen elements.
<h1>
- H stands for HEADER
- Number can be changed to anything from 1-6, with 1 beaing the largest header, and 6 being the smallest
- Make sure the closing statement uses the same number as the opening statement!
<b> or <strong>
- Bolds your text!
- <b> and <strong> can be used interchangeably, but the ending statement must use the same type as the opening statement.
<i>
<a>
- Adds a link!
- There is special formatting for adding a link. <a href="your-page-here.html">Your text here!</a>
<img>
- Does not have a closing statement, but uses special formatting.
- <img src="link or path your image here" alt="description or alt text here">
Used in <head>
<title>
- Changes the name of the tab. for example, the code for this webpage is <title>Basic Tags - How to build a website</title>
<link>
- Links other files to this page, such as CSS (will be talked about next)
- Does not need a closing statement, but uses special formatting.
- <link rel="type of file" href="file path or link">