HTML UNIT 1-Merged
HTML UNIT 1-Merged
5. WHAT IS HTML TAGS? The <i> tag is used to make the text italic. HTML NOTES
HTML tags are like keywords which defines that how web browser will
UNIT I Underline Tag UNIT II
format and display the content. With the help of tags, a web browser can
1. WHAT IS INTERNET? distinguish between an HTML content and a simple content. HTML tags The <u> tag is used to set the text underline. HTML Document Structure
contain three main parts: opening tag, content and closing tag. But some Bold_italic_underline Basic HTML Document Structure
The internet is defined as a global network of linked computers,
HTML tags are unclosed tags.
servers, phones, and smart appliances that communicate with each HTML, as previously said, is a markup language that uses multiple tags to structure the
other using the transmission control protocol (TCP) standard to output_page document. These tags are surrounded by angle braces <Tag Name>. Except for a few tags,
6. UNDERSTANTING TAGS?
enable the fast exchange of information and files, along with other the majority of tags contain matching closing tags. For example, a <head> tag has a closing
Basic HTML Tags Link Tag tag </head>, and a <body> tag has a closing tag </body> tag, and so on. The following
types of services.
template shows a basic structure of a HTML document.
Head Tag The <a> tag links one page to another page. The href attribute is used to
Internet infrastructure comprises optical fiber data transmission define
The head tag <head> contains all the elements describing the document.
cables or copper wires, as well as numerous additional networking
infrastructures, such as local area networks (LAN), wide area Title Tag Anchor_tag-html_tags
networks (WAN), metropolitan area networks (MAN), etc. Output_anchor_tag
The title tag <title> specifies the HTML page title, which is shown in the
Sometimes wireless services such as 4G and 5G or WiFi necessitate
browser’s title bar. List Tag
similar physical cable installations for internet access.
Body Tag The <li> tag is used if you want to enter the contents in the listed order.
2. WHAT IS WEB BROWSER? The body tag <body> is where you insert your web page’s content. There are two types of lists.
A web browser is a type of software that allows you to find and view Paragraph Tag Ordered list <ol>
websites on the Internet. Even if you didn't know it, you're using a web Unordered list <ul>
A paragraph tag <p> is used to define a paragraph on a web page.
browser right now to read this page! There are many different web list_tag-html_tags
browsers, but some of the most common ones include Google Chrome, Heading Tag
Safari, and Mozilla Firefox. Image Tag
The HTML heading tag is used to define the heading of the HTML
document. The <h1> tag defines the most important tag, and <h6> The <img> tag is used to embed an image in an HTML document. You
3. WHAT IS WEB SITE? defines the least. need to specify the source of the image inside the tag.
A website is a collection of publicly accessible, interlinked Web pages The center tag will center your content.
that share a single domain name. Websites can be created and maintained Let’s practice using these tags and create a web page with them:
by an individual, group, business or organization to serve a variety of The Table Tag
purposes. Together, all publicly accessible websites constitute the World Title_and_heading_tag-html Block-level Elements
The <table> tag is used to create a table in the HTML document. A block-level element always starts on a new line, and the browsers automatically add some
Wide Web. Formatting Tags space (a margin) before and after the element.
The table row (<tr>) tag is used to make the rows in the table, and the
4. WHAT IS WEB PAGE? Emphasis tag
table data (<td>) tag is used to enter the data in the table. A block-level element always takes up the full width available (stretches out to the left and
A web page is a document written in hypertext (also known as HTML) The HTML <em> tag is used to emphasize the particular text in a right as far as it can).
that you can see online, using a web browser. Most web pages include paragraph. The style (<style>) tag is used to add methods to the content by typing
text, photos or videos, and links to other web pages. A group of many Two commonly used block elements are: <p> and <div>.
the code in the HTML file itself.
web pages managed by one person or company is a website. Bold Tag
The <p> element defines a paragraph in an HTML document.
The <b> tag is used to make the text bold.
The <div> element defines a division or a section in an HTML document.
Italic Tag
As you can see, the italic element is delimited by the <I> and </I> tags. Text Alignment
Background Color
Small The CSS text-align property defines the horizontal text alignment for an HTML element:
The small element specifies that text should be rendered in a smaller size. Here's a sample The CSS background-color property defines the background color for an HTML element.
paragraph with the small element: Example
Example <h1 style="text-align:center;">Centered Heading</h1>
Don't forget to read the fine print before you sign anything. Set the background color for a page to powderblue: <p style="text-align:center;">Centered paragraph.</p>
HTML lists allow web developers to group a set of related items in lists. CREATING BASIC TABLE:
TYPES Define an HTML Table
ORDERED LISTS: A table in HTML consists of table cells inside rows and columns.
Syntax:
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. Table Cells
The list items will be marked with numbers by default: Each table cell is defined by a <td> and a </td> tag.
Example td stands for table data.
<html> HTML Images:
Everything between <td> and </td> are the content of the table cell.
<body> The HTML <img> tag is used to embed an image in a web page. Example:
<h2>An ordered HTML list</h2> Images are not technically inserted into a web page; images are linked to web
<ol>
pages. The <img> tag creates a holding space for the referenced image.
<li>Coffee</li>
The <img> tag is empty, it contains attributes only, and does not have a closing
<li>Tea</li>
<li>Milk</li> tag.
OTHER TAGS: The <img> tag has two required attributes:
</ol>
</body> MARQUEE TAG: src - Specifies the path to the image
</html> O/P Example alt - Specifies an alternate text for the image.
The <marquee> tag is a container tag of HTML that is implemented for creating
1. COFFEE Syntax
scrollable text or images within a web page from either left to right or vice
2. TEA <img src="url" alt="alternatetext">
versa, or top to bottom or vice versa. But this tag has been deprecated in the
3. MILK
new version of HTML.
UNORDERED LISTS
An unordered list starts with the <ul> tag. Each list item starts with the <li> HR TAG Table Elements:
tag. Table Cells
The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).
The list items will be marked with bullets (small black circles) by default: Each table cell is defined by a <td> and a </td> tag.
<!DOCTYPE html> The <hr> element is most often displayed as a horizontal rule that is used to
Td stands for table data.
<html> separate content (or define a change) in an HTML page.
Everything between <td> and </td> are the content of the table cell.
<body> Table Rows:
<h2>An unordered HTML list</h2> Table Rows
<ul> Each table row starts with a <tr> and ends with a </tr> tag.
<li>Coffee</li> Tr stands for table row.
<li>Tea</li> HTML Links - Hyperlinks
Table Headers:
<li>Milk</li> HTML links are hyperlinks.
Sometimes you want your cells to be table header cells. In those cases use the
</ul> You can click on a link and jump to another document.
<th> tag instead of the <td> tag:
</body> When you move the mouse over a link, the mouse arrow will turn into a little
th stands for table header.
</html> hand.
O/P EXAMPLE <a href="url">link text</a>
Coffee <a href="https://www.w3schools.com/">Visit W3Schools.com!</a>