












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
HTML attributes and styles. It covers the syntax of HTML attributes, the alt attribute, quote attribute values, and the meta tag. It also explains how to set the style of an HTML element using the style attribute and covers HTML fonts, text size, and text alignment. Additionally, it explains HTML text formatting using elements such as <b>, <i>, <mark>, <sub>, and <sup>. Finally, it explains the importance of adding comments to HTML source code and how to use them to hide content or place notifications and reminders.
Typology: Slides
1 / 52
This page cannot be seen from the preview
Don't miss anything!













































1
▪ The href Attribute
▪ The alt Attribute
You will learn more about images, links and the tag later in this tutorial.
What is the tag?
Attribute Value Description charset character_set Specifies the character encoding for the HTML document content text Specifies the value associated with the http-equiv or name attribute http-equiv content-security-policy content-type default-style refresh Provides an HTTP header for the information/value of the content attribute name application-name author description generator keywords viewport Specifies a name for the metadata
Extra: Setting the Viewport The viewport is the user's visible area of a web page. It varies with the device - it will be smaller on a mobile phone than on a computer screen. You should include the following **** element in all your web pages:
This gives the browser instructions on how to control the page's dimensions and scaling. The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device). The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.
W3C has an HTML code validation service where you can paste your code and make sure it is error free!
16
▪ HTML Text Color
This is a heading <p>This is a paragraph.</p> **This is a heading** This is a paragraph. ▪ HTML Fonts
This is a heading
This is a paragraph.
**This is a heading** This is a paragraph.