Shoet Notes
Shoet Notes
• Tools for Editing. You'll get practice editing web pages using a text editor and
testing your work in a browser.
• HTML. You'll learn the fundamentals of HTML, the computer language we use
to structure and write webpages.
• URLs. You'll also learn about URLs, the addresses that we use to refer to
documents and sites on the web.
=HTML is written in text. The layout of a web page seen by the user is
put together by the web browser based on the code in the text file.
Review Notes
Make sure you're using a text editor and not a word processor. They can add
information to files on how to format text where as a text editor edits plain text
files.
When writing HTML, make sure to use the extension .html on your file name. An
example would be spiffy.html.
If you want to see a change in the browser that was made in the HTML file, you
need to save the HTML file and refresh the browser.
Every element starts and ends with a tag. HTML tags always start with
the < sign and end with a > tag. These are usually referred to as angle
brackets.
Important tags
<strong>: This tag is used to indicate that the text inside it should be
strongly emphasized, typically displayed in bold.
<em>: This tag is used for emphasis, making the text inside it appear in
italics.
Whitespace includes spaces, tabs, and line breaks. When the browser displays an
HTML file, it treats a run of whitespace as a single space character. In order to
create a line break that will show up in the browser, use the <br> tag. It doesn’t
require a closing tag,(-called void or empty element)
-<sup> makes text appears slightly higher than the surrounding text(like power) 2 10
-<sub> makes text appears slightly lower than the surrounding text H 2
<h1> can be used for headlines, or section headings. There are actually
six of these heading elements: h1 through h6.
<div> is short for division, because that's what this element is for—you
can use it to divide up the page into different sections.
<a>: This tag creates hyperlinks, allowing users to click and navigate to
other pages or resources.
<ul> and <ol>: These tags create unordered (bulleted) and ordered
(numbered) lists, respectively.
<li>: This tag defines a list item and is used within <ul> or <ol>.
<div>: This tag is a container that groups other HTML elements for
styling or layout purposes.
<span>: This tag is used to apply styles to a small section of text within
a block of text.