+ 2

Quotation Marks

Are the quotation marks necessary when writing this code: <p align="center">

3rd Dec 2016, 3:56 PM
Lacey Riley
Lacey Riley - avatar
6 Respostas
+ 5
no in any attribute if it's a single word then these quotes are not required.
3rd Dec 2016, 4:27 PM
Sandeep Chatterjee
+ 3
No, they are not mandatory. This is more of an issue when considering different HTML and browser versions.
3rd Dec 2016, 4:01 PM
EgorL
+ 3
Regarding the center tags and the align property - in professional environment you would use CSS anyway.
4th Dec 2016, 12:46 AM
EgorL
+ 2
I woud recommend using these tags: <center>.... </center> because their much easier to keep track of :)
3rd Dec 2016, 5:02 PM
Aquarius
Aquarius - avatar
+ 1
remembering it is difficult. use <center> .... </center> instead of align="center" where using quotation Mark is also questionable.
10th Feb 2017, 2:11 PM
Farooq Qureshi
Farooq Qureshi - avatar
0
Quotation Marks are not necessary. But it is good practice to keep your attribute values in Quotation Marks.
17th Jan 2017, 4:38 PM
codeDEcode
codeDEcode - avatar