Professional Documents
Culture Documents
Lab1 HTML
Lab1 HTML
Load fast.
Robust – even if the styles and scripts fail to load, the content
will be available.
Backward compatible.
Future-proof.
HTML Editors
WYSIWYG Editors vs. Textual HTML
Best HTML Editors
name="value"
HTML Headings
• The browser will automatically remove any extra spaces and lines
when the page is displayed.
• Use <br> if you want a new line without starting a new paragraph.
• To use an image as a link, just put the <img> tag inside the <a> tag
<a href="default.asp">
<img src="smiley.gif" alt="HTML tutorial"
style="width:42px;height:42px;">< /a>
• Create a link that opens the user's email program (to let them
send a new email)
• The title attribute specifies a tooltip text when the mouse moves
over the Link.
HTML Head
• The <head> element is placed between the <html> tag and the
<body> tag
• The <title> element is required, and it defi nes the title of the
document
• The <base> element specifi es the base URL and /or target for all
relative URLs in a page
<base href="https://www.w3schools.com/" target="_blank">
HTML CSS
h1 {
color: blue;
font-family: verdana;
font-size: 300%;
padding: 30px;
margin: 50px;
}
HTML Images
style="width:500px;height:600px;">
width="500" height="600">
HTML Images
• Use the CSS fl oat property to let the image fl oat to the right or to
the left of a text:
<table id="t01"> }
<th>Lastname</th> }
<th>Age</th> #t01 th {
• Use the CSS list-style-type property to defi ne the list item marker
• you can use the start attribute to start counting from a specifi ed
number
• An inline element does not start on a new line and it only takes up
as much width as necessary
• The HTML <form> element is used to create an HTML form for user
input.
• <input> • <legend>
• <label> • <datalist>
• <select> • <output>
• <option> • <optgroup>
• <button> • <textarea>
• <fieldset>
HTML Iframes
</iframe>
W3Schools.com</a></p>
• https://www.w3schools.com /ht
ml /default.asp
References
• https://websitesetup.org /html-t
utorial-beginners /
• https://www.hostinger.com /tuto
rials /best-html-editors